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
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
patperry/r-source
src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
skyguy94/R
src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
jagdeesh109/RRO
R-src/src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
limeng12/r-source
src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
ChiWang/r-source
src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
hadley/r-source
src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
7a78e7b0cc413ff2895b199a5134e92e45f21fb4
mirror/r
src/library/base/R/cut.R
# File src/library/base/R/cut.R # Part of the R package, http://www.R-project.org # # Copyright (C) 1995-2014 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...
2,897
gpl-2.0
78f89547c91dc0499f66c6ea62197000d2e99645
CodeGit/SequenceImp
dependencies-bin/windows/bin/R/library/Matrix/tests/Simple.R
#### Currently a collection of simple tests ## (since 'Matrix' takes long to load, rather have fewer source files!) ##-------- *BEFORE* attaching Matrix: -------------------------------- str(Matrix::Matrix)# -> load the namespace T <- new("ngTMatrix", i=0L, j=2L, Dim = c(2L,6L)) T as(T, "CsparseMatrix") ## gave Error ...
31,290
gpl-3.0
31e4122fe9fa2091ff1854ee2d0fec3cb5612d41
meren/oligotyping
bin/o-heatmap.R
#!/usr/bin/env Rscript # # generates heatmaps. # suppressPackageStartupMessages(library(vegan)) suppressPackageStartupMessages(library(gtools)) suppressPackageStartupMessages(library(pheatmap)) suppressPackageStartupMessages(library(RColorBrewer)) suppressPackageStartupMessages(library(optparse)) # command line optio...
4,002
gpl-2.0
cc85d939893c2fb50242785a35cc475567bb686b
jeremymcrae/recessiveStats
tests/testthat/test_vep_parsing.R
# unit testing for the recessiveStats functions library(recessiveStats) library(testthat) context("VEP parsing checks") test_that("parse_vep_output output is correct", { # check a variant where none of the alleleic or transcript consequences # are for the required gene hgnc = "SAMD11" csq = past...
4,119
gpl-2.0
de3bae3bc358b309aadf7d0b41ffffc250e32bbe
vervacity/ggr-project
R/bioinformatics.go.gProfileR.R
#!/usr/bin/env Rscript # run gProfiler # requires gene set and background gene set library(gProfileR) # folders files etc args <- commandArgs(trailingOnly=TRUE) gene_list_file <- args[1] background_list_file <- args[2] out_dir <- args[3] header <- as.numeric(args[4]) == 1 ordered <- as.numeric(args[5]) == 1 # read ...
1,205
mit
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
spennihana/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
nilbody/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
h2oai/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
h2oai/h2o-dev
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
YzPaul3/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
mathemage/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
michalkurka/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
6cf7246e3d5d5042fdd0cb627b61cc11514986f0
jangorecki/h2o-3
h2o-r/tests/testdir_algos/glrm/runit_glrm_iris.R
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") test.glrm.iris <- function() { Log.info("Importing iris_wheader.csv data...") irisH2O <- h2o.uploadFile(locate("smalldata/iris/iris_wheader.csv"), destination_frame = "irisH2O") print(summary(i...
1,438
apache-2.0
2d707e1b7b54811b01236e7c526c819ee9e2ba47
zedoul/coder
inst/probsets/00_basic/01_helloworld/00_test_system.R
library(testthat) test_that("testcase", { formulas <- rbind(c(Name = "Length", Formula = "Sepal.Length + Petal.Length"), c(Name = "Width", Formula = "Sepal.Width + Petal.Width")) res <- refnr(iris, formulas) expect_equal(res[1,1], 6.5) })
310
mit
2d707e1b7b54811b01236e7c526c819ee9e2ba47
zedoul/coder
inst/probsets/00_basic/02_pyramid/00_test_system.R
library(testthat) test_that("testcase", { formulas <- rbind(c(Name = "Length", Formula = "Sepal.Length + Petal.Length"), c(Name = "Width", Formula = "Sepal.Width + Petal.Width")) res <- refnr(iris, formulas) expect_equal(res[1,1], 6.5) })
310
mit
2d707e1b7b54811b01236e7c526c819ee9e2ba47
zedoul/coder
inst/probsets/00_basic/03_return_error_to_win/00_test_system.R
library(testthat) test_that("testcase", { formulas <- rbind(c(Name = "Length", Formula = "Sepal.Length + Petal.Length"), c(Name = "Width", Formula = "Sepal.Width + Petal.Width")) res <- refnr(iris, formulas) expect_equal(res[1,1], 6.5) })
310
mit
e36038dff355f228092241ce4746849e26d756f6
wch/r-source
src/library/base/R/kappa.R
# File src/library/base/R/kappa.R # Part of the R package, https://www.R-project.org # # Copyright (C) 1998-2020 The R Core Team # Copyright (C) 1998 B. D. Ripley # # 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 ...
3,617
gpl-2.0
23099a441e426a1d580bf2d8ce4ad8c223385ffe
Tychobra/shiny-insurance-examples
freq-sev-claims-sim/global.R
library(shiny) library(highcharter) library(shinythemes) library(actuar) library(DT) library(dplyr) library(rintrojs) library(shinycssloaders) library(tychobratools) # turn off scientific notation options(scipen=999) freq_choices <- c("Poisson" = "poisson", "Binomial" = "binomial", ...
568
mit
8413c5b480089031f1e8a6c6ef3c15643317be46
kiranhsgithub/r_intro
r_class1.R
1+1 plot(1:10,1:10) a=1 a sqrt(10) b=3 c="asdf" c x<-c(2,3,5,2,7,1) class(x) vec <- c(1,2,3) vec x1<-c(2,3,5,2,7,1) x2<-c(0,0,0) x.joint = c(x1,x2) x <- c(3,111,8,15,12) x x[2] x[4] x[x>10] x.joint*2 lox(x) log(x) exp(x) sum(x) mean(x) var(x) sd(x) vv <- rnorm(1000) vv[1:100] class(vv) length(vv) summary(vv) k<-seq...
929
mit
dc94d30314bb38e6e309eba91e8bb9043f79526f
AmritPatel/NCAAB-Win-Prediction
NCAA 2015 Bracket Challenge.R
library(caret) library(XML) library(httr) library(dplyr) # set_config(use_proxy(url="148.184.186.50",port=80,username="LANID",password="")) # only needed if at work # dir <- "C:/Users/axp13/Dropbox/NCAA Bracket Challenge" # dir <- "~/Dropbox/NCAA Bracket Challenge" dir <- "/home/ubuntu/NCAAB-Win-Prediction" setwd(dir...
11,564
mit
cec7844eda46fb11987c02497de3d532ace1e6b4
h2oai/h2o
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
elkingtonmcb/h2o-2
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
h2oai/h2o-2
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
rowhit/h2o-2
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
vbelakov/h2o
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
eg-zhang/h2o-2
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
1fb69d1e07785cccef817a7dec56d24dfca535c5
renesugar/arrow
r/tests/testthat/test-parquet.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...
3,869
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
calvingit21/h2o-2
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
cec7844eda46fb11987c02497de3d532ace1e6b4
111t8e/h2o-2
R/tests/testdir_jira/runit_hex_2025_priors.R
############################################################### ######## Test Priors Probability for a Class for GLM ######### ############################################################### #setwd("/Users/amy/h2o/R/tests/testdir_jira") setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('.....
2,820
apache-2.0
80acee6838caf1ccf2999eba52fcbfef6d0d498b
tcspears/gitwords
R/weekly_stats.R
#' Function for calculating weekly statistics #' @param Data.frame of word counts for each date (produced by collapse_date) #' @return Matrix of weekly statistics weekly_stats <- function(words.table){ Weekday <- weekdays(as.POSIXlt(words.table$Date)) Weekday <- factor(Weekday,levels=c("Monday","Tuesday","Wednesda...
594
mit
47698f1287dc135d1d03658f43fd5390a280aac7
fuzzylite/jfuzzylite
examples/mamdani/matlab/tank2.R
#Code automatically generated with jfuzzylite 6.0. library(ggplot2); engine.name = "tank2" engine.fll = "Engine: tank2 InputVariable: level enabled: true range: -1.000 1.000 lock-range: false term: high Trapezoid -2.000 -1.000 -0.800 -0.001 term: good Triangle -0.150 0.000 0.500 term: low Trapezoid 0.001 ...
2,291
gpl-3.0
f219a1c8a64f102a337e7854ce47f8b7a75ce87b
kingaa/pomp
examples/probe_match.R
\donttest{ gompertz() -> po ## A list of probes: plist <- list( mean=probe.mean("Y",trim=0.1,transform=sqrt), sd=probe.sd("Y",transform=sqrt), probe.marginal("Y",ref=obs(po)), probe.acf("Y",lags=c(1,3,5),type="correlation",transform=sqrt), probe.quantile("Y",prob=c(0.25,0.75),na.rm=TRUE) ...
1,313
gpl-3.0
c00748510bd16cb32bf9a2964f18abbffb1bcfbe
appling/unitted
tests/testthat/test-inspect.R
context("inspect") knownbug <- function(expr, notes) invisible(NULL) #### is_a(unitted), is.unitted, class(unitted) #### test_that("Objects are recognized as unitted IFF the outer object is unitted", { units <- "mg dm^-3 sec^-1 dm^4 sec" # vectors expect_that(is.unitted(u(101:106, "dalmatians")), is_true()) ...
9,203
cc0-1.0
5a507208fc51f6dcf56144a45d99a600f3ecbef3
mikblacklab/R-Heatmap-Functions
heatmap-mik-mod.R
heatmap.mik.mod<-function (x, Rowv = TRUE, Colv = if (symm) "Rowv" else TRUE, distfun = dist, hclustfun = hclust, dendrogram = c("both", "row", "column", "none"), symm = FALSE, scale = c("none", "row", "column"), na.rm = TRUE, revC = identical(Colv, "Rowv"), add.expr, breaks, col = "heat...
13,460
gpl-2.0
5a507208fc51f6dcf56144a45d99a600f3ecbef3
TomKellyGenetics/R-Heatmap-Functions
heatmap-mik-mod.R
heatmap.mik.mod<-function (x, Rowv = TRUE, Colv = if (symm) "Rowv" else TRUE, distfun = dist, hclustfun = hclust, dendrogram = c("both", "row", "column", "none"), symm = FALSE, scale = c("none", "row", "column"), na.rm = TRUE, revC = identical(Colv, "Rowv"), add.expr, breaks, col = "heat...
13,460
gpl-2.0
ff9ce42f711c1afa33aea8dc19fc6b7c71449835
dvera/gyro
R/bcftoolsCall.R
bcftoolsCall <- function( bcfFiles , outputType="v" , consensusCaller=TRUE , multiAllelicCaller=FALSE , variantsOnly=TRUE, insertMissed=FALSE, regions=NULL, threads=getOption("threads",1L) ){ if(multiAllelicCaller & consensusCaller){ stop("must choose consensusCaller OR multiAllelicCaller")} if(!(outputType %in% ...
1,605
mit
db161c85a6e837cbe89faab2e2650799ab6ebf3a
andrewdefries/andrewdefries.github.io
FDA_Pesticide_Glossary/Oxytetracycline.R
library("knitr") library("rgl") #knit("Oxytetracycline.Rmd") #markdownToHTML('Oxytetracycline.md', 'Oxytetracycline.html', options=c("use_xhml")) #system("pandoc -s Oxytetracycline.html -o Oxytetracycline.pdf") knit2html('Oxytetracycline.Rmd')
246
mit
77cf8696c0c4fe5c8f32bee9769161c812c9ccf1
eddelbuettel/rcppredis
demo/simpleBenchmark.R
library(RcppRedis) library(rredis) # use install.packages("rredis", repos=c("https://ghrr.github.io/drat", getOption("repos"))) library(rbenchmark) data(trees) fit <- lm(log(Volume) ~ log(Girth) + log(Height), data=trees) rawfit <- rawToChar(serialize(fit,NULL,ascii=TRUE)) redis <- new(Redis) rredis::redisConnect...
1,469
gpl-2.0
690e69691e4cd122271c16e42f81ddc16e577b31
HajkD/seqreadr
tests/testthat/test-write.bed.R
context("Test: write.bed()")
28
gpl-3.0
deec4573dd0f5b380eaaa0bca31e818cb9598cd3
ffivaz/grasp-R
R/grasp.exp.cormat.R
"grasp.exp.cormat" <- function(gr.Yi, cols = gr.selX, thin = OPTIONS$CORTHIN, corplot = TRUE) { Yname <- names(YYY)[gr.Yi] if(OPTIONS$SINK) { # if TRUE save results to a text file path <- paste(OPTIONS$PATHLOG, "log_", Yname, ".txt", sep = "") sink(path, append = TRUE) } cat("#", "\n") cat("# FUNCTION...
2,377
gpl-3.0
ea3e1365d6bc005b07c705e28be2b34861d7c4c4
icexelloss/arrow
r/tests/testthat/test-dataset.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...
40,550
apache-2.0
49013208615da1b922243957f8c54c1c13cf548b
BinRoot/GaussianGraphicalModel
RLang/test_CNJGL.R
library(R.matlab) library(matrixStats) library(rbenchmark) source('problem_parameters.R') source('data_parameters.R') source('ADMM_CNJGL/ADM_CNJGL.R') source('ADMM_CNJGL/expand_ni.R') source('ADMM_CNJGL/soft_scal.R') source('ADMM_CNJGL/ADM_parameters.R') source('ADMM_CNJGL/nodiag_construction.R') source('ADMM_CNJGL/so...
1,049
gpl-2.0
7ddad7e9dfc7b82090d9a20171d9f6e01178be66
davidavdav/ROC
R/print.roc.R
print.roc <- function(x, full=FALSE, ...) { cat("Receiver Operating Characteristic, call = ", paste(deparse(attr(x, "call")), sep="\n", collapse="\n"), "\n") cat("ROC table:\n") if (nrow(x)<100 || full) print.data.frame(x, ...) else { cat(sprintf(" %d entries, head():\n", nrow(x))) print.data.frame...
431
gpl-2.0
76fb0c124a1823c8b6c245968da7c2905478e187
Imamachi-n/NGS-Tutorial
BRIC-seq_Tutorial/BridgeR_analysis_mRNA.R
library(bridger2) library(data.table) dirname <- commandArgs(trailingOnly=TRUE)[1] inputFile <- strsplit(commandArgs(trailingOnly=TRUE)[2], ',')[[1]] group <- c("siCTRL", "siSTAU1") # Required hour <- c(0, 1, 2, 4, 8, 12) # Required input_matrix <- NULL for (file in inputFile) { if (is.null(input_matri...
1,445
mit
c1b1fe68963f303a3562401c2063a389a4eb2067
uciMetropolitanFutures/relocations
ui.R
library(shiny) library(leaflet) library(maptools) sub <- readShapePoly("SoCal_place_2010_all") dfsub <- data.frame(sub) names = as.character(unique(unlist(dfsub$NAME10[dfsub$oall>9 & dfsub$iall>9 & dfsub$CLASSFP10=='C1']))) shinyUI(navbarPage("Business Relocations in Southern California, 2010-2014", id="nav",...
4,014
lgpl-3.0
35f4497f11290944b4d2a69ac448375b7d055ea2
ezagheni/IUSSP-Social-Media-Workshop-at-ALAP-ABEP
Collect_Tweets/functions_by_pablobarbera.R
## function to find the N most common hashtags in a string vector getCommonHashtags <- function(text, n=20){ hashtags <- regmatches(text,gregexpr("#(\\d|\\w)+",text)) hashtags <- unlist(hashtags) tab <- table(hashtags) return(head(sort(tab, dec=TRUE), n=n)) } ## function to obatin the timeline...
2,161
gpl-3.0
3b8b68bf1554ac38836a7e46aac44f74c1238262
charles-plessy/smallCAGEqc
R/mapStats.R
#' mapStats #' #' Process mapping statistics #' #' Using a data frame containing mapping statistics in counts, transform the data in #' percentages that can be used for stacked barplots. #' #' See http://stackoverflow.com/questions/10417003/stacked-barplot-with-errorbars-using-ggplot2 about stacked barplot. #' #' T...
6,498
cc0-1.0
36660729ddd5468b647faf1a4d137643ce6ebe84
tj8901nm/ADAGEpath-dev
R/marginal_activity.R
#' Marginal activity calculation #' #' Calculates the marginal activities between every two combinations of the input #' signatures. Marginal activity is defined as the activity of a signature #' after removing genes that it overlaps with another signature. #' #' @param input_data a data.frame with gene IDs in the firs...
10,887
bsd-3-clause
29356231dda2d5bfefa7f042b69dc4e870bcc69c
DoktorMike/datrader
datrader/tests/testthat/test_fetch.R
context("Data presence") library(datrader) fbpath <- system.file("extdata", "FB.csv", package = "datrader", mustWork = TRUE) mspath <- system.file("extdata", "MSFT.csv", package = "datrader", mustWork = TRUE) nfpath <- system.file("extdata", "NFLX.csv", package = "datrader", mustWork = TRUE) test_that("installed data...
470
mit
6f48cd66396ea2345fb9ba88996d5630c852b43a
myfleetingtime/spark2.11_bingo
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
6f48cd66396ea2345fb9ba88996d5630c852b43a
metamx/spark
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
6f48cd66396ea2345fb9ba88996d5630c852b43a
Panos-Bletsos/spark-cost-model-optimizer
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
6f48cd66396ea2345fb9ba88996d5630c852b43a
ZxlAaron/mypros
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
6e037eb541ab20743ad05c94495d8ab69e9bad93
ox-it/Live-Data_Case-Studies
2016/Oxford-Roman-Economy-Project/Deploy_OxRep_Apps.R
### Deploy apps library(shiny) library(rsconnect) deployApp(appDir = "OxRep_charts/OxRep_charts_mines", appName = "OxRep_charts_mines", launch.browser = FALSE) deployApp(appDir = "OxRep_charts/OxRep_charts_shipwrecks", appName = "OxRep_charts_shipwrecks", launch.browser = FALS...
584
mit
b0204e28e5a8c5ebe70c62d59f7c8ad97ebdfb27
randall-romero/CompEconR
R/gridmake.R
# % GRIDMAKE Forms grid points # % USAGE # % X=gridmake(x); # % X=gridmake(x1,x2,x3,...); # % [X1,X2,...]=gridmake(x1,x2,x3,...); # % X=gridmake({y11,y12},x2,{y21,y22,y23}); # % # % Expands matrices into the associated grid points. # % If N is the dx2 matrix that indexes the size of the inputs # % GRIDMAKE re...
2,763
mit
6f48cd66396ea2345fb9ba88996d5630c852b43a
kimoonkim/spark
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
6f48cd66396ea2345fb9ba88996d5630c852b43a
javalovelinux/SparkGroovyScript
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
6f48cd66396ea2345fb9ba88996d5630c852b43a
ibm-research-ireland/sparkoscope
R/pkg/R/SQLContext.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 us...
28,851
apache-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
MouseGenomics/R
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
2ba1847ab3b5db383f89aae103555196eaed36a8
diegovalle/Assault-Weapons
tests/test-1.R
expect_that(cleanNames(data.frame(State="Michoacan de Ocampo")), equals("Michoacan")) expect_that(cleanNames(data.frame(State="Querétaro de Arteaga")), equals("Querétaro")) expect_that(convertToDate(0), equals(as.Date("2000-01-15"))) expect_that(convertToDate(10), equals(as.Date("2000-11-...
443
mit
309ad2760b0804d13b01b6f73a57d14c736c2bb7
rho-devel/rho
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
cxxr-devel/cxxr
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
reactorlabs/gnur
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
268d07c9b907f0d70b410147ee673af484763de0
gjm112/AUCCI
R/CI-4 AUCCI_boot(Incomplete).R
### Part I. CI functions ## 1-4 [CI] AUCCI_boot(Incomplete): 1.4.1 AUCCI.boot(verification bias) ## 1.4.1 AUCCI.boot ##################################################################### ### Bootstrap CI for AUC with verification bias # norm.inter from the package boot norm.inter <- function (t, alpha) { if (is.li...
4,383
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
Mouseomics/R
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
kmillar/rho
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
5c0c98a90830258b61f1948e8da6f3bfceaf37ad
oldweather/IMMA
R/IMMA/tests/testthat/test-decode.R
context("DecodeAttachment") test_that("String versions of Attachments correctly converted to data frames", { # core a.string<-"1919 2142099 5040 -420 0103 310Nw_Zealnd 1355 26 10004 100 89 " a.df<-data.frame(1919,2,14,20.99,50.4,-4.2,0,1,0,3,NA,NA,3,10,'Nw_Zealnd...
3,625
apache-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
mathematicalcoffee/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
abiyug/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
jimhester/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
andy-thomason/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
SensePlatform/R
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
ArunChauhan/cxxr
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
kmillar/cxxr
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
LeifAndersen/R
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
aviralg/R-dyntrace
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
allr/r-instrumented
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
RevolutionAnalytics/RRO
R-src/src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
krlmlr/cxxr
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
SurajGupta/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
krlmlr/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
WelkinGuan/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
allr/timeR
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
bedatadriven/renjin
packages/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
3030451793d8e7833db182ea83ee5ed6fc19a535
sooheang/kaps
R/kaps.perm.R
############################################################ # Fit KAPS with Permutation test by test estimates approach # This algorithm select best subgroups by permutation test # in which the data is randomly divided into # learning and validation set kaps.perm <- function(fit, newdata, permute = TRUE){ #if(!inhe...
5,485
gpl-3.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
nathan-russell/r-source
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
309ad2760b0804d13b01b6f73a57d14c736c2bb7
minux/R
src/library/graphics/R/cdplot.R
# File src/library/graphics/R/cdplot.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; eith...
4,981
gpl-2.0
f82ceddab1fbcd74a1c6ca0f9f3c166b081acf06
kbrannan/BigElkHydroCal201506
StormSelection.R
## USGS DVstats package ## to install package from GitHub use this command: ## install.packages(c("DVstats"),repos=c("http://usgs-r.github.com","http://cran.us.r-project.org"), dependencies=TRUE) library(DVstats) library(ggplot2) ## seperate hydrograph ## using "hysep" because the "part" function is not documented eno...
2,104
gpl-2.0
5e4390e7f1413442c6ea6d2d2ea12aaeba51b8d4
mikimaus78/basketball-public
bbref/sos/lmer.R
sink("diagnostics/lmer.txt") library(lme4) library(nortest) library(RPostgreSQL) drv <- dbDriver("PostgreSQL") con <- dbConnect(drv, dbname="basketball") query <- dbSendQuery(con, " select r.game_id, r.year, r.field as field, r.team_id as team, r.opponent_id as opponent, --r.team_previous as team_previous, --r.oppo...
3,002
mit
424ab43f4e46e7e55d2dcada05156963ab0e661d
vankesteren/jasp-desktop
Dynamic Modules/TestModule/R/testHtml.R
testHtmlFunc <- function(jaspResults, dataset, options) { elementType <- 'p' if(options$checkbox_error) elementType <- 'errorMsg' jaspResults[["errorMsg"]] <- createJaspHtml(text='<p>hallo wereld!</p>', elementType=elementType) jaspResults[['boodschap']] <- createJaspHtml(text=paste0('state contains: ', jaspR...
348
agpl-3.0
d05c2e1fbd90e4152b2a01a60ce0e8663f5e2cc0
tgjc/ExData_Plotting2
plot3.R
# load required packages packages <- c("RMySQL", "ggplot2") sapply(packages, require, character.only = TRUE, quietly = TRUE) # Set working directory setwd("~/Dropbox/Coursera/ExData_Plotting2/") # Check if data directory exists and if not, create one if(!file.exists("data")){ dir.create("data") } # Loading p...
1,535
mit
4a1afba159656e7ee0adf368af300e56ab98ba42
andeek/deep-learning
code/degeneracy/kaiser_method_grid.R
#libraries ----------------------- library(dplyr) library(tidyr) library(ggplot2) source("functions.R") #load sample params --------------------------------------------- n <- 100 load("written/results_grid.RData") indep_params <- function(samp, H, V) { samp[, (H + V + 1):ncol(samp)] <- 0 samp } res %>% group_b...
2,050
mit
4a1afba159656e7ee0adf368af300e56ab98ba42
andeek/rbm
code/degeneracy/kaiser_method_grid.R
#libraries ----------------------- library(dplyr) library(tidyr) library(ggplot2) source("functions.R") #load sample params --------------------------------------------- n <- 100 load("written/results_grid.RData") indep_params <- function(samp, H, V) { samp[, (H + V + 1):ncol(samp)] <- 0 samp } res %>% group_b...
2,050
gpl-3.0
9bc97bfbf4abbe37558b0939ef3401178a42f46f
kmillar/rho
src/extra/testr/filtered-test-suite/isatomic/tc_isatomic_11.R
expected <- eval(parse(text="TRUE")); test(id=0, code={ argv <- eval(parse(text="list(structure(c(0, -0.0555555555555556, 0.02, 0.0625, 0.0625, 0.04, 0, 0), .Dim = c(8L, 1L), .Dimnames = list(c(\"2\", \"3\", \"6\", \"7\", \"8\", \"9\", \"14\", \"17\"), \"x\")))")); do.cal...
391
gpl-2.0