id stringlengths 40 40 | repo_name stringlengths 5 110 | path stringlengths 2 233 | content stringlengths 0 1.03M ⌀ | size int32 0 60M ⌀ | license stringclasses 15
values |
|---|---|---|---|---|---|
0fce1c5c95263417af2ad3c66c1fb7baaea90eb4 | corybrunson/cloud | R/distances.R | #' Distances between pairs of points.
#'
#' This function calculates the Euclidean distances between pairs of points.
#' @param x An m-by-n matrix of the n coordinates of m first points.
#' @param y An m-by-n matrix of the n coordinates of m second points.
#' @export
distances <-
function(x, y, ...) {
... | 460 | gpl-2.0 |
3436fd1a08fef37585c83531c0a5df555ba096e6 | mirror/r | src/library/base/R/dataframe.R | # File src/library/base/R/dataframe.R
# Part of the R package, http://www.R-project.org
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your opt... | 55,543 | gpl-2.0 |
d4d0fafae8ffe547be9dc0522fa27bd5bd6d1e15 | aknight1-uva/jasp-desktop | JASP-Tests/run_tests.R | #
# Copyright (C) 2017 University of Amsterdam
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is dis... | 1,240 | agpl-3.0 |
615e37283e62f1d4f0ffcbe086e2cf7c88b58822 | eclee25/flu-SDI-exploratory-age | scripts/create_fluseverity_figs_v5/F_allfigs_v5.R |
## Name: Elizabeth Lee
## Date: 11/2/14
## Function: draw figure 1 for manuscript
### 10-year time series panels: SDI ILI % of total visits (outpatient only) & ILINet ILI % of total visits, positive lab test percentages, cumulative season hospital rate for children, cumulative season hospital rate for adults, pediatri... | 10,327 | mit |
6b04b9d2751bd3b37f7e11ebf61047279296dba4 | stijnmasschelein/simcompl | R/run_regressions.R | nr_columns <- 4
#' Perform the traditional single equation regression approach under the
#' assumption that \code{x1, x2} are optimally chosen.
#'
#' @export
#' @family tests
#' @param dat A simulated dataset with 5 columns.
#' @seealso interaction_reg run_regression format_reg
#' @return A list with the regression ob... | 8,340 | bsd-3-clause |
1ccd1052837f22258e507e0fc5ad3fb4a08801eb | david-salgado/StQ | R/ExtractNames.R | #' @title Extract the root name of compound variable names
#'
#' @description \code{ExtractNames} returns a \code{character} vector with the root names of the
#' input parameter.
#'
#' This function is thought to be applied on those variable names with suffixes containing
#' underscores (_) and qualifier values. It t... | 1,719 | lgpl-3.0 |
145e243594cd5ac0eba7d80b16ba69efe36cca7b | mertnuhoglu/study | r/shiny/ex/study_shiny_navlist_tabset/ex01/e01.R | library(shiny)
ui = fluidPage(
titlePanel("Navlist panel example"),
navlistPanel(
"Header",
tabPanel("First",
h3("This is the first panel")
),
tabPanel("Second",
h3("This is the second panel")
)
)
)
server = function(input, output) {}
app = shinyApp(ui = ui, server = server)
runApp... | 326 | apache-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | krlmlr/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | rho-devel/rho | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | abiyug/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
1ad3d57501a7a5b926b129d8a72bc672735a3929 | anilcs13m/Exploratory-Data-Analysis | CourseProject2/plot3.R | NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
# Of the four types of sources indicated by the type (point, nonpoint, onroad, nonroad) variable,
# which of these four sources have seen decreases in emissions from 1999–2008 for Baltimore City?
# Which have seen increases in em... | 846 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | cxxr-devel/cxxr | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | Mouseomics/R | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | wch/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | RevolutionAnalytics/RRO | R-src/src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
741fef6390e60c29231a7ed81e367f15a71fd2e3 | dterror/minutiaer | tests/testthat.R | library(testthat)
library(minutiaer)
test_check("minutiaer")
| 62 | mit |
e68424e78f97e902f9c4fea6245f2a5b089023fb | reactorlabs/gnur | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | SurajGupta/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | jeroenooms/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | SensePlatform/R | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | WelkinGuan/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | kmillar/cxxr | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | MouseGenomics/R | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | kmillar/rho | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | ArunChauhan/cxxr | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | allr/timeR | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | mathematicalcoffee/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | allr/r-instrumented | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | jimhester/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | bedatadriven/renjin | core/src/main/R/base/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | krlmlr/cxxr | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | aviralg/R-dyntrace | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | LeifAndersen/R | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | andy-thomason/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | nathan-russell/r-source | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
e68424e78f97e902f9c4fea6245f2a5b089023fb | minux/R | src/library/base/R/rm.R | # File src/library/base/R/rm.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2015 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | 1,268 | gpl-2.0 |
af3ba30592da4a3c19a4c7680a542523cf910e26 | famuvie/breedR | R/binaries.R | ### Functions to download and install binary dependencies ###
#' Checks installation of PROGSF90 binaries
#'
#' Checks whether the binary dependencies are installed in the right directory.
#' If not, allows calling the installer
#'
#' This function does not check whether the binaries are for the right platform
#'... | 7,247 | gpl-3.0 |
ec01a25228213751235bed453366dccbd29548f6 | meejah/torperf | metrics/timematrix.R | # Load ggplot library without printing out stupid warnings.
options(warn = -1)
suppressPackageStartupMessages(library("ggplot2"))
# Read in filtered data.
data <- read.csv("filtered.csv", stringsAsFactors = FALSE)
# Remove NA's
data <- na.omit(data)
# Remove "outliers"
data <- data[(data$filesize == "50kb" & data$co... | 1,190 | bsd-3-clause |
c1a525b592bbde803fc953796280094da64dab67 | adomingues/NGSpipe2go | tools/encodeChIPqc/phantompeak.R | ###################################
##
## Shortened version of the spp.R QC to report only the phantompeak profile
## Based on the SPP tutorial from http://compbio.med.harvard.edu/Supplements/ChIP-seq/tutorial.html
##
## Who : Sergi Sayols
## When: 11 nov 2014
##
## Types of analysis:
## *Calculate binding characteri... | 5,329 | gpl-3.0 |
ed1c7088acabf5a61783ff4cd6df39ea1ba9433b | clarkfitzg/ddR | sparkapi.ddR/R/zzz.R | .onAttach <- function(libname, pkgname) {
ddR::register_driver(name = "spark", initfunc = init_spark)
}
| 108 | gpl-2.0 |
79b5352a8cf68feed0b57bbb5bb4740b7622c7fb | mrcodeninja/coursera-exploratory-data-analysis | plot6.R | create_data_directory <- function() {
if (!file.exists("data")) {
dir.create(path = "data")
}
}
download_and_unzip <- function(url, destfile) {
if (!file.exists(destfile)) {
download.file(url = url, destfile = destfile, method = "curl")
}
unzip(zipfile = destfile, exdir = "data")
}... | 2,333 | mit |
79b5352a8cf68feed0b57bbb5bb4740b7622c7fb | dataethos/coursera-exploratory-data-analysis | plot6.R | create_data_directory <- function() {
if (!file.exists("data")) {
dir.create(path = "data")
}
}
download_and_unzip <- function(url, destfile) {
if (!file.exists(destfile)) {
download.file(url = url, destfile = destfile, method = "curl")
}
unzip(zipfile = destfile, exdir = "data")
}... | 2,333 | mit |
9e6ece3db9daf30db5b1fe68ec1cd39ede251b7a | junwucs/h2o-3 | h2o-r/tests/testdir_demos/runit_demo_chicago_crime.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
# Connect to a cluster
# Set this to True if you want to fetch the data directly from S3.
# This is useful if your cluster is running in EC2.
data_source_is_s3 = FALSE
locate_source <- function(s) {
if (data_source_is_s3... | 6,770 | apache-2.0 |
9e6ece3db9daf30db5b1fe68ec1cd39ede251b7a | datachand/h2o-3 | h2o-r/tests/testdir_demos/runit_demo_chicago_crime.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
# Connect to a cluster
# Set this to True if you want to fetch the data directly from S3.
# This is useful if your cluster is running in EC2.
data_source_is_s3 = FALSE
locate_source <- function(s) {
if (data_source_is_s3... | 6,770 | apache-2.0 |
9e6ece3db9daf30db5b1fe68ec1cd39ede251b7a | brightchen/h2o-3 | h2o-r/tests/testdir_demos/runit_demo_chicago_crime.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
# Connect to a cluster
# Set this to True if you want to fetch the data directly from S3.
# This is useful if your cluster is running in EC2.
data_source_is_s3 = FALSE
locate_source <- function(s) {
if (data_source_is_s3... | 6,770 | apache-2.0 |
9e6ece3db9daf30db5b1fe68ec1cd39ede251b7a | printedheart/h2o-3 | h2o-r/tests/testdir_demos/runit_demo_chicago_crime.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source('../h2o-runit.R')
# Connect to a cluster
# Set this to True if you want to fetch the data directly from S3.
# This is useful if your cluster is running in EC2.
data_source_is_s3 = FALSE
locate_source <- function(s) {
if (data_source_is_s3... | 6,770 | apache-2.0 |
96d8f4170c92e841ebb3f587ff9f3df185e88f4d | e3bo/pomp | R/pomp.R | ## This file defines 'pomp', the basic constructor of the pomp class
pomp.internal <- function (data, times, t0, rprocess, dprocess,
rmeasure, dmeasure,
skeleton, skeleton.type, skelmap.delta.t,
initializer, rprior, dprior,
... | 23,390 | gpl-3.0 |
0bc00954492412be2d6e222285393ae9ceee2a31 | distributions-io/laplace-quantile | test/fixtures/test.number.R | options( digits = 16 );
library( jsonlite );
library( bda )
mu = 0
b = 1
probs = c( 0, 0.25, 0.5, 0.75, 1 )
y = qlap( probs, mu, 1/b )
cat( y, sep = ",\n" )
data = list(
mu = mu,
b = b,
data = probs,
expected = y
)
write( toJSON( data, digits = 16, auto_unbox = TRUE ), "./test/fixtures/number.json" )
| 310 | mit |
3e75d680acdc86c1e0157fe23400ead3ad9d3dd1 | jacobbogers/libRmath.js | src/lib/distributions/student-t/__test__/fixture-generation/dt3.R | #
#> x=seq(0,8,0.2);
#> y=dt(x,1e9,4)
#> data.frame(x,y)
# x y
1 0.00000000000000000 0.00013383022576488537
2 0.20000000000000001 0.00029194692579146027
3 0.40000000000000002 0.00061190193011377190
4 0.60000000000000009 0.00123221916847301993
5 0.80000000000000004 ... | 2,034 | gpl-3.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | hxfeng/R-3.1.2 | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | kalibera/rexp | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | skyguy94/R | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | mirror/r | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
06faeb5b88cb572930a84e59f78f5d7992f80f4a | USGS-VIZLAB/gages-through-ages | scripts/process/process_map.R |
#' take map arguments and return a projected sp object
#'
#' @param \dots arguments passed to \code{\link[maps]{map}} excluding \code{fill} and \code{plot}
#'
library(maps)
library(sp)
proj.string <- "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs"
to_sp <- function(...){
li... | 3,501 | cc0-1.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | hadley/r-source | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | lajus/customr | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | o-/Rexperiments | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | cxxr-devel/cxxr-svn-mirror | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
67699de1df077050e764d10ea9f1b163badf8385 | meisamhe/GPLshared | ChoiceModels/R/cgetC.R | cgetC = function(e,k)
{
# purpose: get a list of cutoffs for use with scale usage problems
#
# arguments:
# e: the "e" parameter from the paper
# k: the point scale, eg. items are rated from 1,2,...k
# output:
# vector of grid points
temp = (1:(k-1))+.5
m1 = sum(temp)
m2 = sum(temp^2)
return(.C('getC',as.double(... | 387 | gpl-3.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | jagdeesh109/RRO | R-src/src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
06faeb5b88cb572930a84e59f78f5d7992f80f4a | jread-usgs/gages-through-ages | scripts/process/process_map.R |
#' take map arguments and return a projected sp object
#'
#' @param \dots arguments passed to \code{\link[maps]{map}} excluding \code{fill} and \code{plot}
#'
library(maps)
library(sp)
proj.string <- "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs"
to_sp <- function(...){
li... | 3,501 | cc0-1.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | limeng12/r-source | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | glycerine/bigbird | r-3.0.2/src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | bsd-2-clause |
5fef0a5f20240a374e23403bb9a2710275111e83 | jeffreyhorner/R-Array-Hash | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | cmosetick/RRO | R-src/src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | patperry/r-source | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
a3968b9da29ef7162e242940c383a3a405cba9f5 | lehoangha/GSOE9712_S115_RA | packrat/lib/x86_64-pc-linux-gnu/3.2.1/XLConnect/unitTests/runit.arefidx.R | #############################################################################
#
# XLConnect
# Copyright (C) 2010-2013 Mirai Solutions GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | 1,763 | apache-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | jeffreyhorner/R-Judy-Arrays | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
5fef0a5f20240a374e23403bb9a2710275111e83 | ChiWang/r-source | src/library/graphics/R/lines.R | # File src/library/graphics/R/lines.R
# Part of the R package, http://www.R-project.org
#
# Copyright (C) 1995-2012 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either... | 1,286 | gpl-2.0 |
06faeb5b88cb572930a84e59f78f5d7992f80f4a | ldecicco-USGS/gages-through-ages | scripts/process/process_map.R |
#' take map arguments and return a projected sp object
#'
#' @param \dots arguments passed to \code{\link[maps]{map}} excluding \code{fill} and \code{plot}
#'
library(maps)
library(sp)
proj.string <- "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs"
to_sp <- function(...){
li... | 3,501 | cc0-1.0 |
b016ca9a34a9a6be70c77e63aebbc6d6620ed06f | kevin-bensema/rcv | R/builtInStuff.R |
defaultFrontalFaceClassifier <- function()
{
front = system.file("trained_data", "haarcascade_frontalface_alt2.xml",
package = "rcv")
cc = new(cvCascadeClassifier, front)
return(cc)
}
| 215 | bsd-3-clause |
64a36edcd308c21d14ef11cbac30028078e0f045 | srz-zumix/wandbox-api | samples/command/src/r/test2.R | test2 <- function() {
print("Test2")
}
| 43 | mit |
65eab09961d09df3291a27911496aae37a1a2664 | sdopoku/growing_gold | datasets/cleaning_code/ghana_fertilizer_import.R | # Load libraries
library(tidyr)
library(readr)
library(dplyr)
# Set Working Directory
setwd(".")
# Get Data
dirty_fertilizer <- read_csv("../dirty_data/ghana_fertilizer_import_2002_2012_dirty.csv")
# View data
glimpse(dirty_fertilizer)
View(dirty_fertilizer)
# make dataset a data frame
dirty_fertilizer <- data.fra... | 2,209 | mit |
2eb71e27d281117f42d91546b4470be2df20678a | Defenders-ESC/section7_explorer | pages/data_page.R | # Page for users to get the selected data.
# Copyright (C) 2015 Defenders of Wildlife, jmalcom@defenders.org
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
... | 2,768 | gpl-2.0 |
597d5c9d68a13e64283e0b6c3eadd9e5a81293e5 | zero323/r-snippets | tests/testthat/test_replace_emails.R |
testthat::expect_equal(
replace_emails("This is an email from root@localhost"),
"This is an email from __EMAIL__"
) | 124 | mit |
380af46a2de04120813dcfa6a88132d95563876b | NKI-CCB/RUBIC | tests/testthat/test_focal.events.R | library(R.matlab, quietly=T, warn.conflict=F)
context("Focal Events - Case 0")
test_that("read.genes.info.tsv has the same output as the model", {
mat.out <- readMat('../referenceio/0/getGeneInfoFromTxt.out.mat')
r.out <- read.genes.info.tsv('../referenceio/hg19.tsv')
expect_equal(r.out, read.rub... | 6,411 | apache-2.0 |
1df784264796db532fa52b63f23d18dabefeed71 | deniederhut/Psych-101-Fall-2014 | clean_class_survey.R | clean_class_survey <- function(file){
#Cleans and formats the class survey data from the bcourses site
#Call during an R session with the 'source' command
#
#Args:
# file: the path to the survey file, expected to be a csv
#
#Returns: three versions of the data set: one that is only formatted, one that is... | 1,924 | mit |
9a6a7445179cb27623b1d0036b8fe8a23daa2820 | NGSchool2016/ngschool2016-materials | chip_seq/.R_library/3.3/BiocParallel/snow/RSOCKnode.R | local({
master <- "localhost"
port <- ""
snowlib <- Sys.getenv("R_SNOW_LIB")
outfile <- Sys.getenv("R_SNOW_OUTFILE") ##**** defaults to ""; document
args <- commandArgs()
pos <- match("--args", args)
args <- args[-(1 : pos)]
for (a in args) {
pos <- regexpr("=", a)
name ... | 930 | gpl-3.0 |
477b02c390a5071e591acb2020d4f067b484bbb3 | jasenfinch/OrbiFIEmisc | R/listsPrepSig.R | #' return lists of explanatory masses for each pairwise
#' @export
listsPrepSig <-
function(fs.res,meth,cut,sel=NULL){
stats <- lapply(fs.res,as.data.frame,stringsAsFactors=F)
stats <- lapply(stats,function(x,m){x[grep(m,names(x))]},m=meth)
if(length(sel)>0){
stats <- lapply(stats,listsSpec,sel=sel)
}
stats <... | 624 | gpl-2.0 |
6918353c489e6e3a9f1c175f207060948e1b47ab | kapelner/sequential_matching_simulations_2 | simulation_code_and_results/rand_type_efron_ttest.R | source("common_efron.R")
source("common_ttest.R") | 49 | mit |
2ee37eb8a0dad70497e08b7f3c25188076df96a0 | IALSA/ialsa-2015-portland-stencil | manipulation/translator.R | # ## This script declares the functions that generate Mplus .inp file used in model fitting.
# prototype = "sandbox/01-univariate-linear/prototype-map-wide.inp"
# saved_location = "sandbox/01-univariate-linear/example"
# process_a_name = 'numbercomp'# measure name
# process_a_mplus = 'cts_nccrtd'# Mplus variable
# sub... | 7,385 | gpl-2.0 |
7aa7b7000949167491d1abcf30ca4c0f54767642 | harryprince/R-Tutor | R&Excel/R&中文操作.R | R中的中文操作;
字符个数<-nchar("这是几个字")
字符个数
## 提取求导函数的函数值
f<-expression(x^2+x^3)
求导<-D(f,"x")
求导
第一<-substr(求导[1:2],start=1,stop=10)
第一
第二<-substr(求导[2:3],start=1,stop=10)
第二
as.numeric(substr(第一[2],start=1,stop=2))
as.numeric(substr(第二[2],start=1,stop=2))
| 355 | unlicense |
5a4d2a2366aa6368ceb6090274e7c2b165e93622 | jmp75/carsales | R/web-retrieve.R | #' Extract useful car sales information from a web page
#'
#' Extract useful car sales information from a web page. This function takes care to dispose properly of the transient XML document created.
#'
#' @param uri the URI (usually URL, i.e. the address of the web page of interest)
#' @param ... additional arguments ... | 13,052 | gpl-3.0 |
7aa7b7000949167491d1abcf30ca4c0f54767642 | leontius/R-Tutor | R&Excel/R&中文操作.R | R中的中文操作;
字符个数<-nchar("这是几个字")
字符个数
## 提取求导函数的函数值
f<-expression(x^2+x^3)
求导<-D(f,"x")
求导
第一<-substr(求导[1:2],start=1,stop=10)
第一
第二<-substr(求导[2:3],start=1,stop=10)
第二
as.numeric(substr(第一[2],start=1,stop=2))
as.numeric(substr(第二[2],start=1,stop=2))
| 355 | unlicense |
06a62459631e2b7ddac0cad461fa53b175a8a412 | CampagneLaboratory/bdval | src/rscripts/rank_features.R | #
# Copyright (C) 2008-2010 Institute for Computational Biomedicine,
# Weill Medical College of Cornell University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; ei... | 1,548 | gpl-3.0 |
722ff49734ad62c857eb6587433fc4cf6db26783 | andrewhooker/PopED | R/LinMatrixL_occ.R | #' Model linearization with respect to occasion variability parameters.
#'
#' The function performs a linearization of the model with respect to the occasion variability parameter..
#' Derivative of model w.r.t. eta_occ, evaluated bocc_ind.
#'
#' @inheritParams mftot
#' @inheritParams LinMatrixH
#' @param iCurrentOc... | 1,175 | lgpl-3.0 |
fac807850543aa2b850d5eab58c845f84fe4387e | bflammers/ANN2 | tests/testthat/test-plotting.R |
context("Plotting")
n_epochs <- 100
X <- iris[,1:4]
y <- iris$Species
NN_dims <- c(10,10)
AE_dims <- c(10,2,10)
NN <- neuralnetwork(X = X,
y = y,
hidden.layers = NN_dims,
n.epochs = n_epochs,
val.prop = 0.5,
verbos... | 2,296 | lgpl-3.0 |
ada051fe8d56ded5e340c89f89ee6a6090a62860 | mllg/batchtools | R/Logs.R | #' @useDynLib batchtools fill_gaps
readLog = function(id, missing.as.empty = FALSE, reg = getDefaultRegistry()) {
log.file = getLogFiles(reg, id)
if (is.na(log.file) || !waitForFile(log.file, timeout = reg$cluster.functions$fs.latency, must.work = FALSE)) {
if (missing.as.empty)
return(data.table(job.id =... | 4,084 | lgpl-3.0 |
bc14a11fc473c4467b339ce42fae9aafc46cc153 | CentreForHydrology/Reanalysis | R/WATCHcreateWFDEIobs.R | #' Creates a CRHM .obs file of 3-hourly values from WATCH reanalysis data WFDEI files
#'
#' @description Extracts data from WATCH WDFEI netCDF files and builds a CRHM .obs file of 3-hour data containing \code{t}, \code{ea}, \code{u10}, and \code{p} values. The output values can be interpolated to hourly using the funct... | 6,273 | gpl-3.0 |
3264bf9cc1d16ed3d1abfef44dc0177fdf749ec5 | lindsaycarr/repgen | tests/testthat/test-utils-gaps.R | context("utils-gaps tests")
context("splitDataGapsList")
set.seed(53)
timezone <- "Etc/GMT+5"
flagZeroNeg <- FALSE
pointsDf <- data.frame(time = seq(as.POSIXct("2015-10-01 00:00:00", tz=timezone),
as.POSIXct("2015-10-03 11:00:00", tz=timezone), by = "hour"),
... | 30,363 | cc0-1.0 |
3264bf9cc1d16ed3d1abfef44dc0177fdf749ec5 | zmoore-usgs/repgen | tests/testthat/test-utils-gaps.R | context("utils-gaps tests")
context("splitDataGapsList")
set.seed(53)
timezone <- "Etc/GMT+5"
flagZeroNeg <- FALSE
pointsDf <- data.frame(time = seq(as.POSIXct("2015-10-01 00:00:00", tz=timezone),
as.POSIXct("2015-10-03 11:00:00", tz=timezone), by = "hour"),
... | 30,363 | cc0-1.0 |
3264bf9cc1d16ed3d1abfef44dc0177fdf749ec5 | mhines-usgs/repgen | tests/testthat/test-utils-gaps.R | context("utils-gaps tests")
context("splitDataGapsList")
set.seed(53)
timezone <- "Etc/GMT+5"
flagZeroNeg <- FALSE
pointsDf <- data.frame(time = seq(as.POSIXct("2015-10-01 00:00:00", tz=timezone),
as.POSIXct("2015-10-03 11:00:00", tz=timezone), by = "hour"),
... | 30,363 | cc0-1.0 |
3264bf9cc1d16ed3d1abfef44dc0177fdf749ec5 | dpattermann-usgs/repgen | tests/testthat/test-utils-gaps.R | context("utils-gaps tests")
context("splitDataGapsList")
set.seed(53)
timezone <- "Etc/GMT+5"
flagZeroNeg <- FALSE
pointsDf <- data.frame(time = seq(as.POSIXct("2015-10-01 00:00:00", tz=timezone),
as.POSIXct("2015-10-03 11:00:00", tz=timezone), by = "hour"),
... | 30,363 | cc0-1.0 |
3264bf9cc1d16ed3d1abfef44dc0177fdf749ec5 | USGS-R/repgen | tests/testthat/test-utils-gaps.R | context("utils-gaps tests")
context("splitDataGapsList")
set.seed(53)
timezone <- "Etc/GMT+5"
flagZeroNeg <- FALSE
pointsDf <- data.frame(time = seq(as.POSIXct("2015-10-01 00:00:00", tz=timezone),
as.POSIXct("2015-10-03 11:00:00", tz=timezone), by = "hour"),
... | 30,363 | cc0-1.0 |
3264bf9cc1d16ed3d1abfef44dc0177fdf749ec5 | thongsav-usgs/repgen | tests/testthat/test-utils-gaps.R | context("utils-gaps tests")
context("splitDataGapsList")
set.seed(53)
timezone <- "Etc/GMT+5"
flagZeroNeg <- FALSE
pointsDf <- data.frame(time = seq(as.POSIXct("2015-10-01 00:00:00", tz=timezone),
as.POSIXct("2015-10-03 11:00:00", tz=timezone), by = "hour"),
... | 30,363 | cc0-1.0 |
9622ace2a646fa29b9686f5b393a174987039301 | h2oai/h2o-3 | h2o-r/tests/testdir_munging/strop/runit_lstrip.R | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
test.lstrip <- function() {
# load iris
iris.hex <- as.h2o(iris)
# test categorical char strip, should be no change
iris.hex$Species <- h2o.lstrip(iris.hex$Species)
expect_that(h2o.... | 2,696 | apache-2.0 |
31714b45741871360373d374b3a2455f98880e1f | mertnuhoglu/study | r/shiny/ex/study_shiny_navlist_tabset/ex01/e09e2.R | library(shiny)
t0 = do.call(tabsetPanel, list(tabPanel("Master")))
t0
##> <div class="tabbable">
##> <ul class="nav nav-tabs" data-tabsetid="9523">
##> <li class="active">
##> <a href="#tab-9523-1" data-toggle="tab" data-value="Master">Master</a>
##> </li>
##> </ul>
##> <div class="tab... | 1,527 | apache-2.0 |
ab1f5d8eee1738b59a516b4731e2c9c69d534ea4 | bwtian/geothermaR | demo/ge21_4dPlot.R | source("~/SparkleShare/Rprofile/R/Rsettings/phdRsettings.R")
uk <- readRDS("~/Share500sda/result/uk.df_141010_111357.Rds")
head(uk)
c <- cut(uk$Tuk,breaks=255)
cols <- rainbow(255)[as.numeric(c)]
library(ggplot2)
library(lattice)
levelplot(var1.pred ~ x+y | z,uk)
library(rgl)
open3d()
plot3d(uk$x, uk$y, uk... | 433 | gpl-3.0 |
1f83da1760858f094ad3d39ce316bad4150831f9 | vnminin/SISMID_MCMC_I | 2017/code/chain_hierarchical_reduced.R | #########################################################################
# This script provides routines to draw samples from the joint posterior
# distribution of the two parameters ('alpha' and 'beta') in the hierarchical
# chain binomial model of the measles outbreak data. The model unknowns
# also include t... | 7,190 | gpl-2.0 |
7d4b50e4796b7cb7cb9f7b3e504d152edddeca54 | jpritikin/OpenMx | R/MxAlgebraConvert.R | #
# Copyright 2007-2019 by the individuals mentioned in the source code history
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 13,937 | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.