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
5e3ef3e250d642ce265c2b1a67dcdc19ecc43570
kmillar/cxxr
src/extra/testr/filtered-test-suite/ispairlist/tc_ispairlist_8.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(sec = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), min = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), hour = c(20L, 19L, 19...
1,406
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
kmillar/cxxr
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
jeffreyhorner/R-Judy-Arrays
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
skyguy94/R
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
5e3ef3e250d642ce265c2b1a67dcdc19ecc43570
kmillar/rho
src/extra/testr/filtered-test-suite/ispairlist/tc_ispairlist_8.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(sec = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), min = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), hour = c(20L, 19L, 19...
1,406
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
allr/timeR
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
patperry/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
LeifAndersen/R
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
mirror/r
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
reactorlabs/gnur
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
02e1c57e4efc64bcfd525bc3fb04230939fdc4be
vinash85/gwam
packrat/init.R
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (is.na(Sys.getenv("RSTUDIO_PACKRAT_BOOTSTRAP", unset = NA)) && suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check 'print.banner.on.startup' -- when NA and RStudio, don't print ...
6,583
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
kmillar/rho
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
glycerine/bigbird
r-3.0.2/src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
bsd-2-clause
02e1c57e4efc64bcfd525bc3fb04230939fdc4be
jitans/Finance
packrat/init.R
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (is.na(Sys.getenv("RSTUDIO_PACKRAT_BOOTSTRAP", unset = NA)) && suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check 'print.banner.on.startup' -- when NA and RStudio, don't print ...
6,583
gpl-3.0
6b9079321d46b6a4475add80d601030efa87e07e
jeroenooms/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
02e1c57e4efc64bcfd525bc3fb04230939fdc4be
PauloEduardoCardoso/RLandsat
packrat/init.R
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (is.na(Sys.getenv("RSTUDIO_PACKRAT_BOOTSTRAP", unset = NA)) && suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check 'print.banner.on.startup' -- when NA and RStudio, don't print ...
6,583
unlicense
6b9079321d46b6a4475add80d601030efa87e07e
kalibera/rexp
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
98bf784f5fefb9060e4a32301f4133ec93a4702a
DeskGen/dgcli
library_design/dgl/visualise_guides.R
args<-commandArgs(TRUE) #args[1]=guide_list #args[2]=bs_list #args[3]=cds_list #setwd('~/Documents/deskgen_projects/mouse_library') #args=c('cnio_all_guides_NGG_CDSpos.txt', 'cnio_blackswans_150507.txt', 'previous/cnio_genelist_exon_scores.txt', 'previous/cnio_genelist.txt') #bs_guides <- read.table(file='cnio_blacks...
2,510
gpl-2.0
5e3ef3e250d642ce265c2b1a67dcdc19ecc43570
cxxr-devel/cxxr
src/extra/testr/filtered-test-suite/ispairlist/tc_ispairlist_8.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(sec = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), min = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), hour = c(20L, 19L, 19...
1,406
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
WelkinGuan/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
cxxr-devel/cxxr
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
02e1c57e4efc64bcfd525bc3fb04230939fdc4be
keyuan/bitphyloR
packrat/init.R
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (is.na(Sys.getenv("RSTUDIO_PACKRAT_BOOTSTRAP", unset = NA)) && suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check 'print.banner.on.startup' -- when NA and RStudio, don't print ...
6,583
gpl-3.0
6b9079321d46b6a4475add80d601030efa87e07e
nathan-russell/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
5e3ef3e250d642ce265c2b1a67dcdc19ecc43570
krlmlr/cxxr
src/extra/testr/filtered-test-suite/ispairlist/tc_ispairlist_8.R
expected <- eval(parse(text="FALSE")); test(id=0, code={ argv <- eval(parse(text="list(structure(list(sec = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), min = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), hour = c(20L, 19L, 19...
1,406
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
lajus/customr
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
johngarvin/R-2.1.1rcc
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
krlmlr/cxxr
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
cxxr-devel/cxxr-svn-mirror
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
aviralg/R-dyntrace
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
mathematicalcoffee/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
hadley/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
ArunChauhan/cxxr
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
limeng12/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
SensePlatform/R
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
6b9079321d46b6a4475add80d601030efa87e07e
hlin09/renjin
packages/datasets/src/main/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-3.0
6b9079321d46b6a4475add80d601030efa87e07e
andy-thomason/r-source
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
02e1c57e4efc64bcfd525bc3fb04230939fdc4be
jitans/Finance
packrat/lib/x86_64-pc-linux-gnu/3.1.1/packrat/resources/init.R
local({ libDir <- file.path('packrat', 'lib', R.version$platform, getRversion()) if (is.na(Sys.getenv("RSTUDIO_PACKRAT_BOOTSTRAP", unset = NA)) && suppressWarnings(requireNamespace("packrat", quietly = TRUE, lib.loc = libDir))) { # Check 'print.banner.on.startup' -- when NA and RStudio, don't print ...
6,583
gpl-3.0
6b9079321d46b6a4475add80d601030efa87e07e
radfordneal/pqR
src/library/datasets/data/presidents.R
"presidents" <- structure(c(NA, 87, 82, 75, 63, 50, 43, 32, 35, 60, 54, 55, 36, 39, NA, NA, 69, 57, 57, 51, 45, 37, 46, 39, 36, 24, 32, 23, 25, 32, NA, 32, 59, 74, 75, 60, 71, 61, 71, 57, 71, 68, 79, 73, 76, 71, 67, 75, 79, 62, 63, 57, 60, 49, 48, 52, 57, 62, 61, 66, 71, 62, 61, 57, 72, 83, 71, 78, 79, 71, 62, 74, ...
557
gpl-2.0
15605b1abc63553ae65421907019d4e7af63f37f
datashield/dsStatsClient
R/ds.cov.R
#' #' @title Computes covariance between two or more vectors #' @description This is similar to the R base function 'cov'. #' @details In addition to computing covariances; this function, unlike #' the R base function 'cov', produces a table outlining the number of complete cases #' to allow for the user to make a de...
3,841
gpl-3.0
cc267570e5ed39aa5b6b0f8ef869d179cf0a11ca
manlius/muxViz
examples-scripts/example_plot_edgecolored.R
library("muxViz") #Or build by specifying layers Layers <- 3 Nodes <- 100 NodeTensor <- list() #Generate an edge-colored network g <- barabasi.game(Nodes, m=1, directed=F) g.list <- list() for(l in 1:Layers){ g.list[[l]] <- delete_edges(g, sample( E(g), floor(0.2*length(E(g))) ) ) NodeTensor[[l]] <- get.adja...
1,717
gpl-3.0
b0ddd2ae8b452fc5a2be6c40617f7794a7fbed22
gomezlab/exit
src/postProcessAlignment.R
## ## ## Author: doreper ## ## After clusterDistribute has finished, call this script to assemble all the generated ## bam files into a dataframe, and then write the data frame out in various forms to file: ## ## Among the output files: ## output/eventsPerPosPerJackpot.csv ## output/eventsPerGenePerDist.csv ## output...
4,660
lgpl-3.0
3e00905bf55285fc46af6aafb746fe4dbbee539e
wibeasley/readr
R/collectors.R
collector <- function(type, ...) { structure(list(...), class = c(paste0("collector_", type), "collector")) } is.collector <- function(x) inherits(x, "collector") #' @export print.collector <- function(x, ...) { cat("<", class(x)[1], ">\n", sep = "") } collector_find <- function(name) { if (is.na(name)) { ...
14,322
gpl-2.0
94e26b43a37b324852ed4ed827fd7008e4c97d32
chihlinwei/faodosimeeting
R/cimp5_2041_2060_sd.R
#' Model-Averaging Standard Deviation of Seafloor Climatic Data during 2041 to 2060 #' #' Standard deviation of projected (RCP8.5) export POC flux to seafloor, bottom dissolved oxygen concentration, hydrogen ion concentration #' and temperature were calculated from the Geophysical Fluid Dynamics Laboratory’s ESM 2G ...
1,748
gpl-3.0
441ac6456788cf61aa5cb20f2e373974d22f15c3
wenching/HiTC
R/AllGenerics.R
##Generics setGeneric(name="intdata", def=function(x) standardGeneric("intdata")) setGeneric(name="intdata<-", def=function(x,value) standardGeneric("intdata<-")) #setGeneric(name="isSymmetric", def=function(x) standardGeneric("isSymmetric")) setGeneric(name="id", def=function(x) standardGeneric("id")) setGeneric(nam...
1,753
artistic-2.0
2df49fa6c6eb1231d49a59a38971a8860603e33c
bdanalytics/PM_Lectures
PM_Lectures_27.R
rm(list=ls()) setwd("~/Documents/Work/Courses/Coursera/process-mining/Projects/PM_Lectures") source("~/Dropbox/datascience/R/mypetrinet.R") #page4 page4_traces_df <- data.frame(trace=c( rep("a,b,d,e,h", 1), rep("a,d,c,e,g", 1), rep("a,c,d,e,f,b,d,e,g", 1), rep("a,d,b,e,h", 1), rep("a,c,d,e,f,d,c,e,...
16,220
gpl-2.0
10384254b1c39aacf4bb1658ed79a03ae249f2cf
xieguigang/spectrum
Rscript/R/mzkit/test/centroidTest.R
ions <- read.mgf("D:/MassSpectrum-toolkits/DATA/test/HCD_profiles.txt"); profile <- ions[[1]]$ms2; ms2 <- centroid.2(profile, angle.threshold = 0.1); write.csv(ms2, file ="D:/MassSpectrum-toolkits/Rscript/demo/mz_centroid.csv", row.names = FALSE);
249
mit
e2dfd4e35065819e5de6c276d4dc52cbf85e41ae
adoroszlai/DataProductsAssignment
ui.R
library(shiny) shinyUI(fluidPage( titlePanel("Ball Motion"), sidebarLayout( sidebarPanel( sliderInput("initial_speed", "Initial speed (m/s):", min = 1, max = 10, value = 5), sliderInput("angle", "Angle (degr...
1,056
mit
67886b437a763f56d1ac09544770369e2c64d77e
ecjbosu/fSEAL
PerformanceAnalytics/R/PortfolioRisk.R
############################################################################### # Functions to peRform component risk calculations on portfolios of assets. # # Copyright (c) 2007-2009 Kris Boudt and Brian G. Peterson # This R package is distributed under the terms of the GNU Public License (GPL) # for full details...
18,902
gpl-2.0
7c3f71f5cffe862277fce3dc5581e338d4916fd6
streampulse/model
runmods_phase2.R
# rm(list=ls()); cat('\014') # install.packages('devtools') # library(devtools) # install_github('streampulse/StreamPULSE', ref='master', dependencies=TRUE) # install.packages('streamMetabolizer', dependencies=TRUE, # repos=c('https://owi.usgs.gov/R','https://cran.rstudio.com')) library(StreamPULSE) ...
4,170
mit
6c0d9438c74146bac3994c4ab2df7ed266f733fc
kenmcgarry/UKCI-2014-code
UKCI2014_hdn.R
## UKCI2014_hdn.r 2/06/14 ## load in files for disease and gene lists ## The deadline is 8th June 2014 library(igraph) library(linkcomm) library(bipartite) library(NetIndices) library(NCBI2R) #library(networksis) #library(network) #----------------- GENE CARDS: diabetes and diseases related to diabetes -----------...
11,235
mit
0c3479d794bd39f4c2cacea2e63e32f6812bf965
SCCWRP/CSCI
R/extent.R
###### #' Sample extents #' #' Sample extents #' #' @format A \code{data.frame} #' #' @details The object is used internally #' #' @examples #' data(extent) "extent"
170
lgpl-3.0
ed1f269e60b9fbe0f2f59a9b6e151ef46f6fc73f
ColinFay/rgeoapi
R/RegByName.R
#'Get Region by Name #' #'Get informations about a French region by its name. Please note that this package works only with French regions. #' #'Takes a name, returns a data.frame with the available values. #'@param nom a character string with the name of the department. Partial matches are possible. In that case, typo...
1,771
gpl-3.0
50a211028ee1b011d5cbcc644ac0a96c452ff082
sebkopf/shinyApps
nitrogen_cycle_dynamics/server.R
library(shiny) library(DT) library(readxl) library(ggplot2) library(scales) library(grid) library(gridExtra) library(RColorBrewer) library(latex2exp) library(magrittr) library(plyr) library(reshape2) library(knitr) # PARAMETERS and PROCESSES ======= params <<- read_excel("nox_isotope_dynamics.xlsx", sheet = "variables...
7,304
gpl-3.0
57592eee5ec966615e3fcc728c9e18434b0caed3
rloudon/rloudon.github.io
assets/R/renderRscript2markdown_sample.R
#' --- #' title: Sample HTML report generated from R script #' author: Andrew Brooks #' date: March 4, 2015 #' output: #' html_document: #' toc: true #' highlight: zenburn #' --- #' ## Generate document body from comments #' All the features from markdown and markdown supported within .Rmd documents, I wa...
8,211
mit
64ed87e824260eb3955b20ced8ae214a2ff1547d
vnminin/SISMID_MCMC_I
2015/code/SIRaugmentation_reduced.R
# This source code contains the main program (sampleSIR.R) and # all required subroutines. # Last updated July 12, 2015/KA ###################### # (1) Program readdata ###################### readdata = function(){ # July 16, 2012/KA # # This function outputs the Abakaliki smallpox data. # The data points a...
16,093
gpl-2.0
f61e4c2e000d6cd2371cbeab928a63d214f3073b
tsackton/ratite-genomics
06_protein_coding_analysis/paml_branch/run_rerConverge.R
#use RERconverge library(tidyverse) library(devtools) #using my fork of RERconverge that fixes a few small bugs #install_github("tsackton/RERconverge") library(RERconverge) setwd("~/Projects/birds/ratite_compgen/ratite-genomics/06_protein_coding_analysis/paml_branch/") ## INITIAL SET UP ## #get hog to gene id hog_...
15,645
gpl-3.0
57592eee5ec966615e3fcc728c9e18434b0caed3
brooksandrew/simpleblog
assets/R/renderRscript2markdown_sample.R
#' --- #' title: Sample HTML report generated from R script #' author: Andrew Brooks #' date: March 4, 2015 #' output: #' html_document: #' toc: true #' highlight: zenburn #' --- #' ## Generate document body from comments #' All the features from markdown and markdown supported within .Rmd documents, I wa...
8,211
mit
64ed87e824260eb3955b20ced8ae214a2ff1547d
vnminin/SISMID_MCMC_I
2016/code/SIRaugmentation_reduced.R
# This source code contains the main program (sampleSIR.R) and # all required subroutines. # Last updated July 12, 2015/KA ###################### # (1) Program readdata ###################### readdata = function(){ # July 16, 2012/KA # # This function outputs the Abakaliki smallpox data. # The data points a...
16,093
gpl-2.0
8b615a5996285b49b57ec15babb99d8e559314e9
NMFS-toolbox/AMAK
examples/atka/2019/am2019.R
R rm(list=ls()) ls() source("R/prelims.R") .THEME=mytheme #------------------------------------------------------------------------------- # Visual compare runs #------------------------------------------------------------------------------- library(ggridges) source("R/compareRuns.r") # Read in the output of t...
29,578
mit
9ca4c63f9ee9292e53e4bc11cdc62737f17e9ebf
ganna10/Meteorology_and_Ozone
Analytical_Model/Contours_new_MEGAN.R
# Plot contours, facet run ~ mechanism # Version 0: Jane Coates 08/12/2015 setwd("~/Documents//Analysis//2015_Meteorology_and_Ozone//Analytical_Model/") # mechanisms <- c("MCMv3.2", "CRIv2", "MOZART-4", "CB05", "RADM2") mechanisms <- c("CB05") spc <- "O3" data.list <- lapply(mechanisms, get_analytical_model_data, Ru...
1,786
gpl-2.0
5074dce02b7ad1c20da09f7879a578a8d25393c0
droglenc/WiDNR_Statewide_2015
Day1_IntroR_FMData/03_MutateData.R
# 03_MutateData.Rmd # load needed packages library(fishWiDNR) # for setDBClasses(), changeDBNames() library(dplyr) # for filter(), select(), mutate(), rename() library(lubridate) # for month() library(FSA) # for expandCounts(), capFirst(), filterD() # load FM data and expand lengths ... mostly copied ...
1,822
gpl-2.0
c5fa491988ebd91b4ebdb2ff910f600a12d37eef
steve-the-bayesian/BOOM
Interfaces/R/Boom/R/format.R
## A collection of utilities for formatting error messages. ToString <- function(object, ...) { ## Args: ## object: An R object to be printed. ## ...: extra arguments passed to 'print' ## Returns: ## A character string, suitable for passing to an error message, containing ## the value of the objec...
1,359
lgpl-2.1
b1c4aae21f711e0748d338f9ed3a8db512ecf8ef
tzerk/gammaSpec
R/methods.R
#################################################################################################### # methods for generic: plot() # ################################################################################################## #' Internal methods for base S3 generics #' #' Methods for S3-generics implemented for ...
3,532
gpl-3.0
c5fa491988ebd91b4ebdb2ff910f600a12d37eef
cran/Boom
R/format.R
## A collection of utilities for formatting error messages. ToString <- function(object, ...) { ## Args: ## object: An R object to be printed. ## ...: extra arguments passed to 'print' ## Returns: ## A character string, suitable for passing to an error message, containing ## the value of the objec...
1,359
lgpl-2.1
5074dce02b7ad1c20da09f7879a578a8d25393c0
droglenc/RcourseWiDNR2015
Day1_IntroR_FMData/03_MutateData.R
# 03_MutateData.Rmd # load needed packages library(fishWiDNR) # for setDBClasses(), changeDBNames() library(dplyr) # for filter(), select(), mutate(), rename() library(lubridate) # for month() library(FSA) # for expandCounts(), capFirst(), filterD() # load FM data and expand lengths ... mostly copied ...
1,822
gpl-2.0
ab6fcb9d59ac92a4bc1c789b3056e445593060f9
JakeRuss/code-demos
press_release_scraper/Crapo_release_scraper.R
########################### # File: Crapo_release_scraper.R # Description: # (1) Loop through Senator Mike Crapo's website and compile a list of all the # press release urls. # (2) Run a second loop through the release urls and download an html copy of # each individual press release. Save these html...
4,073
mit
fef268a67a5c82a7d6721abf1d6a3413b7f298a4
johndharrison/webpagetestr
man-roxygen/requestId.R
#' @param requestId request ID, useful to track asynchronous requests
70
mit
48b0b9f80b7fbd9c389c3cb5ed215b6c2d162dbe
vankesteren/jasp-desktop
JASP-Tests/R/tests/testthat/test-confirmatoryfactoranalysis.R
context("Confirmatory Factor Analysis") # 3-factor run options <- jasptools::analysisOptions("ConfirmatoryFactorAnalysis") options$groupvar <- "" options$invariance <- "configural" options$mimic <- "lavaan" options$se <- "standard" options$estimator <- "default" options$std <- "none" options$factors <- list( list(in...
12,140
agpl-3.0
61d498d6b3d3605157ed60828cf3f38001183193
leppott/ContDataQC
vignettes/Vignette_Lakes.R
## ----FormatHobo, eval=FALSE--------------------------------------------------- # # Packages # library(ContDataQC) # # # Parameters # # Selection.Operation <- c("GetGageData","QCRaw", "Aggregate", "SummaryStats") # # Selection.Type <- c("Air","Water","AW","Gage","AWG","AG","WG") # # Selection.SUB <- c("Da...
3,982
mit
1e6130a56ad9af51afab9b73acd96bb5a3dcbfb2
virtualstaticvoid/heroku-buildpack-r
test/package_tests/test.R
# # Run package tests # # run from the temp directory, as tests output a bunch of files... testdir <- tempdir() setwd(testdir) sapply(installed.packages()[,"Package"], tools::testInstalledPackage) warnings() list.files() cat("\nSuccess\n")
246
mit
a4d830c7894c068eea853251b9e9e3a27f14a5d1
danielecook/rdatastore
tests/testthat.R
library(testthat) library(rdatastore) test_check("rdatastore")
64
mit
2f035f6d30e3bb2ddaece372616e4a52fa504b22
IALSA/ialsa-2015-portland-stencil
reports/effects-random/effects-random.R
rm(list=ls(all=TRUE)) #Clear the memory of variables from previous run. This is not called by knitr, because it's above the first chunk. # ---- load-sources ------------------------------------------------------------ #Load any source files that contain/define functions, but that don't load any other types of variable...
9,737
gpl-2.0
1f3432363fe420f36009424be99cfb90de537ed6
icexelloss/arrow
r/tests/testthat/test-compute-arith.R
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
7,585
apache-2.0
1f3432363fe420f36009424be99cfb90de537ed6
wesm/arrow
r/tests/testthat/test-compute-arith.R
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
7,585
apache-2.0
3b7346203bfffc9dc98595beaa6b44c6db203738
wch/r-source
src/library/base/R/sample.R
# File src/library/base/R/sample.R # Part of the R package, https://www.R-project.org # # Copyright (C) 1995-2022 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 v...
1,470
gpl-2.0
1f3432363fe420f36009424be99cfb90de537ed6
kou/arrow
r/tests/testthat/test-compute-arith.R
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
7,585
apache-2.0
1f3432363fe420f36009424be99cfb90de537ed6
apache/arrow
r/tests/testthat/test-compute-arith.R
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
7,585
apache-2.0
b5f7ccf8b612101a9e9829f03767d0d7d3c72abd
fingerhuth/NG-resistance-spread
scripts/f_mixing.R
# Mixing matrix mixing <- function(epsilon, noG, c, N) { cN <- sum(c*N) f <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) { if(i == j) f[i,j] <- epsilon else f[i,j] <- 0 } rho <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) rho[i,j] <- f[i,j] + (1.-epsilon)*c[j]*N...
334
mit
f08e7697d7863e9e95a69f2ff1f33e87019a8cc4
ronkeizer/PopED
R/line_search_uc.R
line_search_uc <- function(x0, f0, g0, d, f_handle,f_options,exp_index, ls_stepmax=1, #max step length for line search ls_delta_alpha=1e-4, #convergence criterion on alpha ls_fdecreas=1e-4, #sufficent decrease for line search ...
2,170
lgpl-3.0
f08e7697d7863e9e95a69f2ff1f33e87019a8cc4
andrewhooker/PopED
R/line_search_uc.R
line_search_uc <- function(x0, f0, g0, d, f_handle,f_options,exp_index, ls_stepmax=1, #max step length for line search ls_delta_alpha=1e-4, #convergence criterion on alpha ls_fdecreas=1e-4, #sufficent decrease for line search ...
2,170
lgpl-3.0
b5f7ccf8b612101a9e9829f03767d0d7d3c72abd
fingerhuth/NG-resistance-spread
sensitivity/mu/f_mixing.R
# Mixing matrix mixing <- function(epsilon, noG, c, N) { cN <- sum(c*N) f <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) { if(i == j) f[i,j] <- epsilon else f[i,j] <- 0 } rho <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) rho[i,j] <- f[i,j] + (1.-epsilon)*c[j]*N...
334
mit
f1d5becfafc606c5afcf978e09030f11a43ff65c
MizSta14/DataAnalysis3
rlab8.R
# Chapter 8 Lab: Decision Trees # Fitting Classification Trees library(tree) library(ISLR) attach(Carseats) High=ifelse(Sales<=8,"No","Yes") Carseats=data.frame(Carseats,High) tree.carseats=tree(High~.-Sales,Carseats) summary(tree.carseats) plot(tree.carseats) text(tree.carseats,pretty=0) tree.carseats set.seed(2) tr...
2,931
mit
f08e7697d7863e9e95a69f2ff1f33e87019a8cc4
rikardn/PopED
R/line_search_uc.R
line_search_uc <- function(x0, f0, g0, d, f_handle,f_options,exp_index, ls_stepmax=1, #max step length for line search ls_delta_alpha=1e-4, #convergence criterion on alpha ls_fdecreas=1e-4, #sufficent decrease for line search ...
2,170
lgpl-3.0
b5f7ccf8b612101a9e9829f03767d0d7d3c72abd
fingerhuth/NG-resistance-spread
sensitivity/fitness_costs/f_mixing.R
# Mixing matrix mixing <- function(epsilon, noG, c, N) { cN <- sum(c*N) f <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) { if(i == j) f[i,j] <- epsilon else f[i,j] <- 0 } rho <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) rho[i,j] <- f[i,j] + (1.-epsilon)*c[j]*N...
334
mit
b5f7ccf8b612101a9e9829f03767d0d7d3c72abd
fingerhuth/NG-POC-resistance
scripts/f_mixing.R
# Mixing matrix mixing <- function(epsilon, noG, c, N) { cN <- sum(c*N) f <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) { if(i == j) f[i,j] <- epsilon else f[i,j] <- 0 } rho <- matrix(nrow=noG,ncol=noG) for(i in 1:noG) for(j in 1:noG) rho[i,j] <- f[i,j] + (1.-epsilon)*c[j]*N...
334
mit
c6cb9837fbf15c24ebb5c273cae5094aea8a7cce
savvasjconstantinou/tRinityanalysis
Tp NS analysis and plot.R
#script to create plot for normal segmentation in Thamnocephalus platyurus. Want to visualize the differences # in engrailed number by age and demonstrate the number of points collected. #load required libraries library(data.table) library(Hmisc) library(extrafont) loadfonts() #read in data TpNS<- fread("C...
2,010
mpl-2.0
718b8739dbdd618d90d4374d0784875cc5ffd6ce
jukiewiczm/renjin
tests/src/test/R/test.NextMethod.R
library(hamcrest) library(stats) test.many <- function() { x <- ts(1:10, frequency = 4, start = c(1959, 2)) y <- x - x assertThat(y, identicalTo(structure(c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), .Tsp = c(1959.25, 1961.5, 4), class = 'ts'))) }
294
gpl-3.0
af225764704a50959d0a626d1d03a822bc06b30c
bird-team/brisbane-birds
code/functions/grid_summary_table.R
#' Grid summary table #' #' This function creates a summary table describing a grid cell. #' #' @param x \code{integer} grid cell identifier. #' #' @param species_data \code{data.frame} containing the scientific name and #' threat status information about the species. The argument to \code{data} #' must have the co...
7,901
gpl-3.0
eb54a1a53bb6fe1dab0938cf537fd7b865dadc37
langcog/alignment
models/R/www2016_simulation_eta_crossiter.R
library(ggplot2) library(data.table) library(dplyr) library(langcog) library(readr) library(tidyr) library(stringr) library(magrittr) library(directlabels) library(lubridate) library(lme4) library(rstan) rstan_options(auto_write = TRUE) options(mc.cores = parallel::detectCores()) #options(mc.cores = 1) invlogit <- fu...
23,096
gpl-2.0
e48f9ef9393908448f3950fe8faf26d4178550ae
Pipe-line/dataScience
03_preparacion_datos/src/04_transformacion_dplyr.R
################# # Luz Frias # 2016-10-25 # dplyr # Basado en las vignettes de dplyr ################# # dplyr es una evolución de plyr, con una gran mejora en rendimiento library(dplyr) library(nycflights13) # Los datos: flights. Más info en ?flights dim(flights) head(flights) sapply(flights, class) flights # sin ...
2,602
mit
a0fd11e2927d99ca5bd97ee977a8e32c42363f57
jameshay218/vaxedemic
scripts/summary_plots_allocate_by_pop_size_ada.R
library(ggplot2) library(magrittr) postprocess <- function(n_countries) { paste0("outputs_vax_by_pop_size/by_pop_size_coverage_data_", n_countries, "_incidence.rds") %>% readRDS %>% vnapply(., sum) %>% data.frame(n_countries = n_countries, attack_rate = .) } n_countries <- c(seq_len(5), seq(...
6,918
gpl-3.0
4cca877b40520245ac8c4a03ffa528545cc1df1c
NCIP/stats-analysis-server
R_source/getSubmatrix.R
######################## # File: getSubmatrix.R # Author: Huaitian Liu # Date: September 2005 ######################## # Generate submatrix based on sample IDs getSubmatrix.twogrps <- function(datmat, grp1ids, grp2ids) { allids <- dimnames(datmat)[[2]] if (length(dimnames(datmat)[[1]])==1) { Submatrix <- t(as.matr...
1,775
bsd-3-clause
e819605394c0130813d64a7ed096ab9c8fc46244
erikriverson/spyre
spyre/R/get_current_objects.R
#' @export getCurrentObjects <- function(a, b, c, d, ws_list) { express <- as.character(a) if(grepl(".ess_|.ess.", express)) { cat("\nreturning early!\n", file = "/home/erik/testing.txt", append = TRUE) return(TRUE) } env <- get_selected_env() objects <- objects(env) objects_lis...
912
mit
289a902d8e8c611f1fa3b04c9d2f9e1c6bf120f4
mllg/batchtools
tests/testthat/test_resetJobs.R
test_that("resetJobs", { reg = makeTestRegistry() f = function(x, .job) if (x == 2) stop(2) else .job$external.dir batchMap(f, 1:3, reg = reg) before = list( status = copy(reg$status), defs = copy(reg$defs) ) submitAndWait(reg, 1:3) expect_file_exists(getLogFiles(reg, 3)) expect_false(identical...
1,699
lgpl-3.0
9014eb65ba0e045e5684ffb29306faf3a819e29a
mingkaijiang/quasi_equil_analytical
Plots/Figure7.R
#### To plot Figure 7 #### comparison of analytical run 8.1 and 8.2 #### Plant N uptake: GDAY vs. OCN #### Program gday_vs_ocn_plot <- function() { ######## GDAY approach source("Parameters/Analytical_Run8_1_Parameters.R") # N:C ratios for x-axis nfseq <- seq(0.001,0.1,by=0.001) # need a...
7,316
gpl-3.0
a64eab315ff4602b3fe32bec90c47c24ce313332
IALSA/wave-inclusion
scripts/reports/R_starter.R
rm(list=ls(all=TRUE)) #Clear the memory of variables from previous run. This is not called by knitr, because it's above the first chunk. cat("\f") # clear console ## @knitr load_packages library(dplyr) # for data manipulation library(tidyr) # for data handling library(ggplot2) # for graphing library(scales) #for for...
663
gpl-2.0
4ffd79808d58f75001ac83522ecfc26a903a56e0
bedatadriven/renjin
packages/methods/R/NextMethod.R
# File src/library/methods/R/NextMethod.R # Part of the R package, https://www.R-project.org # # Copyright (C) 1995-2016 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; e...
6,559
gpl-2.0
73351c323ab00bfd581121c4015370d2cf483f30
kongdd/Ipaper
tests/testthat/test-mktrend.R
test_that("multiplication works", { x <- c(4.81, 4.17, 4.41, 3.59, 5.87, 3.83, 6.03, 4.89, 4.32, 4.69) r <- mkTrend(x, IsPlot = FALSE) r_cpp <- mkTrend_rcpp(x, IsPlot = FALSE) expect_equal(r, r_cpp) })
223
gpl-3.0
5fdcc3a17b1892b1aa6bc2c498f8e6031cce12f8
redmode/RStackExchange
code/APIQuery.R
############################################################################### # # RStackExchange / John Horton # oDesk Contract #13552832 # # Authors: # Alexander Gedranovich # John Horton # Created: 2014-11-03 # # Code style follows 'Google R Style Guide' # https://google-styleguide.googlecode.com/svn/trunk/Rguide....
1,648
gpl-3.0
c92052342eb849c473fea81b3a977d29ad275a61
rstudio/sparklyr
R/tbl_spark.R
#' @export dim.tbl_spark <- function(x) { c(NA_real_, sdf_ncol(x)) } #' @export type_sum.spark_jobj <- function(x) { paste0(jobj_info(x)$repr) }
150
apache-2.0