content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
\name{vComp} \alias{vComp.lc} \alias{vComp.l} \alias{vComp} \title{ Amino Acid Disbutions by Position at Various Length/Charge} \description{ Generates the probability of each amino acid to appear in each position within a peptide of a specific length or length/charge combination. Can either be the raw probabil...
/man/vComp.Rd
no_license
cran/VDAP
R
false
false
2,244
rd
\name{vComp} \alias{vComp.lc} \alias{vComp.l} \alias{vComp} \title{ Amino Acid Disbutions by Position at Various Length/Charge} \description{ Generates the probability of each amino acid to appear in each position within a peptide of a specific length or length/charge combination. Can either be the raw probabil...
library(REEMtree) ### Name: tree ### Title: Extract the regression tree associated with a RE-EM tree ### Aliases: tree tree.REEMtree ### Keywords: models tree ### ** Examples data(simpleREEMdata) REEMresult<-REEMtree(Y~D+t+X, data=simpleREEMdata, random=~1|ID) tree.REEMtree(REEMresult) tree(REEMresult)
/data/genthat_extracted_code/REEMtree/examples/tree.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
311
r
library(REEMtree) ### Name: tree ### Title: Extract the regression tree associated with a RE-EM tree ### Aliases: tree tree.REEMtree ### Keywords: models tree ### ** Examples data(simpleREEMdata) REEMresult<-REEMtree(Y~D+t+X, data=simpleREEMdata, random=~1|ID) tree.REEMtree(REEMresult) tree(REEMresult)
### R code from vignette source 'prs.Rnw' ################################################### ### code chunk number 1: prs.Rnw:48-54 ################################################### library(gstat) cluster = read.table(system.file("external/cluster.txt", package="gstat"), header = TRUE) summary(cluster) library(sp)...
/inst/doc/prs.R
no_license
cran/gstat
R
false
false
1,571
r
### R code from vignette source 'prs.Rnw' ################################################### ### code chunk number 1: prs.Rnw:48-54 ################################################### library(gstat) cluster = read.table(system.file("external/cluster.txt", package="gstat"), header = TRUE) summary(cluster) library(sp)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datapackVsDatim.R \name{compareData_OpuDatapackVsDatim} \alias{compareData_OpuDatapackVsDatim} \title{compareData_OpuDatapackVsDatim} \usage{ compareData_OpuDatapackVsDatim( d, d2_session = dynGet("d2_default_session", inherits = TRUE) ) ...
/man/compareData_OpuDatapackVsDatim.Rd
permissive
jason-p-pickering/datapackr
R
false
true
774
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datapackVsDatim.R \name{compareData_OpuDatapackVsDatim} \alias{compareData_OpuDatapackVsDatim} \title{compareData_OpuDatapackVsDatim} \usage{ compareData_OpuDatapackVsDatim( d, d2_session = dynGet("d2_default_session", inherits = TRUE) ) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cmhc_tables.R \docType{data} \name{cmhc_table_list} \alias{cmhc_table_list} \title{table lookup} \format{An object of class \code{list} of length 44.} \usage{ cmhc_table_list } \description{ table lookup } \keyword{datasets}
/man/cmhc_table_list.Rd
permissive
cgauvi/cmhc
R
false
true
303
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cmhc_tables.R \docType{data} \name{cmhc_table_list} \alias{cmhc_table_list} \title{table lookup} \format{An object of class \code{list} of length 44.} \usage{ cmhc_table_list } \description{ table lookup } \keyword{datasets}
# Regression Template # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # training_...
/regression_template.R
no_license
alyssa-rose/Machine-Learning-R
R
false
false
1,402
r
# Regression Template # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Splitting the dataset into the Training set and Test set # # install.packages('caTools') # library(caTools) # set.seed(123) # split = sample.split(dataset$Salary, SplitRatio = 2/3) # training_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/groupby.R \name{groupbyInput} \alias{groupbyInput} \title{The UI function of the groupby module} \usage{ groupbyInput(id) } \arguments{ \item{id}{Submodule namespace} } \value{ output An HTML tag object that can be rendered as HTML using as....
/man/groupbyInput.Rd
permissive
freestatman/shinyngs
R
false
true
538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/groupby.R \name{groupbyInput} \alias{groupbyInput} \title{The UI function of the groupby module} \usage{ groupbyInput(id) } \arguments{ \item{id}{Submodule namespace} } \value{ output An HTML tag object that can be rendered as HTML using as....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{pH_crit} \alias{pH_crit} \title{pH criteria} \format{ A dataframe } \usage{ pH_crit } \description{ A dataframe of the pH criteria } \keyword{datasets}
/man/pH_crit.Rd
permissive
DEQrmichie/AWQMSdata
R
false
true
259
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{pH_crit} \alias{pH_crit} \title{pH criteria} \format{ A dataframe } \usage{ pH_crit } \description{ A dataframe of the pH criteria } \keyword{datasets}
mtd_aggregate_normals <- function(rast, mask = mcor::mt_state){ rast %>% mcor::mco_mask(mask) %>% raster::cellStats(mean) %>% as.vector() }
/R/mtd_aggregate_normals.R
no_license
mt-climate-office/mtdrought
R
false
false
189
r
mtd_aggregate_normals <- function(rast, mask = mcor::mt_state){ rast %>% mcor::mco_mask(mask) %>% raster::cellStats(mean) %>% as.vector() }
#문제1 mpg <- as.data.frame(ggplot2::mpg) mpg plot(mpg$cty, mpg$hwy, xlab = "도시연비", ylab = "고속도로연비", pch = 3) #문제2 a =table(mpg$drv) barplot(a) chtcols = c("red","green","blue") barplot(a, col=chtcols) #문제3 hwy = mpg$hwy manufacturer = mpg$manufacturer chtcols2 = boxplot(hwy~manufacturer, main = "제조사별 고속도로 연비", col.m...
/R_training/실습제출/김도연/3주차/2019.11.06/chartExam2.R
no_license
BaeYS-marketing/R
R
false
false
464
r
#문제1 mpg <- as.data.frame(ggplot2::mpg) mpg plot(mpg$cty, mpg$hwy, xlab = "도시연비", ylab = "고속도로연비", pch = 3) #문제2 a =table(mpg$drv) barplot(a) chtcols = c("red","green","blue") barplot(a, col=chtcols) #문제3 hwy = mpg$hwy manufacturer = mpg$manufacturer chtcols2 = boxplot(hwy~manufacturer, main = "제조사별 고속도로 연비", col.m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary_statistics.R \name{mean_with_confints_groups} \alias{mean_with_confints_groups} \title{Weighted means with confidence intervals for groups} \usage{ mean_with_confints_groups(dependent.var, independent.var, design) } \arguments{ \item{...
/man/mean_with_confints_groups.Rd
no_license
boukepieter/hypegrammaR
R
false
true
1,082
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/summary_statistics.R \name{mean_with_confints_groups} \alias{mean_with_confints_groups} \title{Weighted means with confidence intervals for groups} \usage{ mean_with_confints_groups(dependent.var, independent.var, design) } \arguments{ \item{...
#' @rdname weighted_sd #' @export weighted_se <- function(x, weights = NULL) { UseMethod("weighted_se") } #' @export weighted_se.data.frame <- function(x, weights = NULL) { se_result <- purrr::map_dbl(x, ~ weighted_se_helper(.x, weights = weights)) names(se_result) <- colnames(x) se_result } #' @export weig...
/R/wtd_se.R
no_license
strengejacke/sjstats
R
false
false
762
r
#' @rdname weighted_sd #' @export weighted_se <- function(x, weights = NULL) { UseMethod("weighted_se") } #' @export weighted_se.data.frame <- function(x, weights = NULL) { se_result <- purrr::map_dbl(x, ~ weighted_se_helper(.x, weights = weights)) names(se_result) <- colnames(x) se_result } #' @export weig...
library(rlist) library(VineCopula) library(magrittr) setwd('~/GitHub/multi-trawl-extremes/r_files/') # AIR POLLUTION tron_ap <- rlist::list.load('~/GitHub/multi-trawl-extremes/r_files/2019-5-4-10-48-17_tron.RData') vines_ap <- rlist::list.load('~/GitHub/multi-trawl-extremes/r_files/2019-5-4-10-48-17_vines.RData') dat...
/r_files/application_gof_tests.R
permissive
valcourgeau/multi-trawl-extremes
R
false
false
3,061
r
library(rlist) library(VineCopula) library(magrittr) setwd('~/GitHub/multi-trawl-extremes/r_files/') # AIR POLLUTION tron_ap <- rlist::list.load('~/GitHub/multi-trawl-extremes/r_files/2019-5-4-10-48-17_tron.RData') vines_ap <- rlist::list.load('~/GitHub/multi-trawl-extremes/r_files/2019-5-4-10-48-17_vines.RData') dat...
library(nbamodelR) context("Collecting Data from Basketball Reference") testHTML = xml2::read_html("https://www.basketball-reference.com/leagues/NBA_2017.html") test_that("getYear gives the correct year", { expect_equal(nbamodelR:::getYear(testHTML), "2016-17") }) test_that("getTeamWL gives the correct dimensions",...
/tests/testthat/test.BBRefScraping.R
no_license
kitliu5/nbamodelR
R
false
false
604
r
library(nbamodelR) context("Collecting Data from Basketball Reference") testHTML = xml2::read_html("https://www.basketball-reference.com/leagues/NBA_2017.html") test_that("getYear gives the correct year", { expect_equal(nbamodelR:::getYear(testHTML), "2016-17") }) test_that("getTeamWL gives the correct dimensions",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readRDS.lgb.Booster.R \name{readRDS.lgb.Booster} \alias{readRDS.lgb.Booster} \title{readRDS for \code{lgb.Booster} models} \usage{ readRDS.lgb.Booster(file = "", refhook = NULL) } \arguments{ \item{file}{a connection or the name of the file w...
/R-package/man/readRDS.lgb.Booster.Rd
permissive
gmaliar/LightGBM
R
false
true
1,140
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/readRDS.lgb.Booster.R \name{readRDS.lgb.Booster} \alias{readRDS.lgb.Booster} \title{readRDS for \code{lgb.Booster} models} \usage{ readRDS.lgb.Booster(file = "", refhook = NULL) } \arguments{ \item{file}{a connection or the name of the file w...
#Allen Phelps dat=read.csv("stt592dat.csv", header=T) attach(dat) dat=data.frame(ptsd,aa,da,aa*da) dat=dat[complete.cases(dat),] library(boot) library(MASS) #Logistic Regression LOO CV y=glm(ptsd~aa*da,data=dat,family=binomial) error=cv.glm(dat,y) lr1out=1-error$delta;lr1out #Logistic Regression K-fold CV set.seed(...
/5-Fold Cross Validation.R
no_license
dhbrand/Data-Mining-for-Reliability-and-Validity
R
false
false
4,493
r
#Allen Phelps dat=read.csv("stt592dat.csv", header=T) attach(dat) dat=data.frame(ptsd,aa,da,aa*da) dat=dat[complete.cases(dat),] library(boot) library(MASS) #Logistic Regression LOO CV y=glm(ptsd~aa*da,data=dat,family=binomial) error=cv.glm(dat,y) lr1out=1-error$delta;lr1out #Logistic Regression K-fold CV set.seed(...
################################################## ## This script was used to read the data exported ## for the Quantified Self (QS) report ################################################## ################################################## ## Author: Abhisek Gautam ## Version: 1.0 ## Email: abhisekgautam302@gmail.com...
/R Script.R
no_license
abhi1gautam/Quantified-Self
R
false
false
17,619
r
################################################## ## This script was used to read the data exported ## for the Quantified Self (QS) report ################################################## ################################################## ## Author: Abhisek Gautam ## Version: 1.0 ## Email: abhisekgautam302@gmail.com...
library(shiny) shinyUI(fluidPage( titlePanel("Cacao T10"), sidebarLayout( sidebarPanel( selectInput("egrafico","Escoger gráfico", list('Histograma'="gh", 'Polígono'="gp", 'Densidad'="gd", 'Boxplot'="gb") ...
/PerezCacao/t10/ui.R
no_license
henryperezgarcia/innovacion_cacao
R
false
false
571
r
library(shiny) shinyUI(fluidPage( titlePanel("Cacao T10"), sidebarLayout( sidebarPanel( selectInput("egrafico","Escoger gráfico", list('Histograma'="gh", 'Polígono'="gp", 'Densidad'="gd", 'Boxplot'="gb") ...
#' Run CeNetOmnibus App #' #' @param maxRequestSize Integer.The admitted file size for uploaded files. Unit MB. Default 1000MB. #' @param workpath Character. The dictionary for temp files. Default is return value of tempdir() #' @param projectName Character. The name of this analysis. Default is session token. #' @para...
/R/CeNet.R
no_license
GaoLabXDU/CeNetOmnibus
R
false
false
1,954
r
#' Run CeNetOmnibus App #' #' @param maxRequestSize Integer.The admitted file size for uploaded files. Unit MB. Default 1000MB. #' @param workpath Character. The dictionary for temp files. Default is return value of tempdir() #' @param projectName Character. The name of this analysis. Default is session token. #' @para...
library(ICtest) ### Name: components ### Title: Generic Components Extraction Function ### Aliases: components components.ictest components.ladle ### Keywords: methods ### ** Examples n <- 200 X <- cbind(rnorm(n, sd = 2), rnorm(n, sd = 1.5), rnorm(n), rnorm(n), rnorm(n)) TestCov <- PCAasymp(X, k = 2) head(componen...
/data/genthat_extracted_code/ICtest/examples/components.ictest.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
375
r
library(ICtest) ### Name: components ### Title: Generic Components Extraction Function ### Aliases: components components.ictest components.ladle ### Keywords: methods ### ** Examples n <- 200 X <- cbind(rnorm(n, sd = 2), rnorm(n, sd = 1.5), rnorm(n), rnorm(n), rnorm(n)) TestCov <- PCAasymp(X, k = 2) head(componen...
# there is a place in the heart that # will never be filled # # a space # # and even during the # best moments # and # the greatest times # times # # we will know it # # we will know it # more than # ever # # there is a place in the heart that # will never be filled # and # # we will wait # and # wait # # in th...
/R/createFoldersModule.R
no_license
sajjadasaf/addinit
R
false
false
3,337
r
# there is a place in the heart that # will never be filled # # a space # # and even during the # best moments # and # the greatest times # times # # we will know it # # we will know it # more than # ever # # there is a place in the heart that # will never be filled # and # # we will wait # and # wait # # in th...
library(tidyverse) library(ggtext) library(sf) library(scatterpie) setwd("021-meat_to_paris/") france <- st_read("../000-data/fra_shape/FRA_adm2.shp") france <- rmapshaper::ms_simplify(france,keep = 0.001) france$sent <- "no" france$sent[c(3:6,8,9,10,64,65,12:19,79:82,71:75,27:30,20:22,47,48,31:36,54:56,23:26,43,57:6...
/021-meat_to_paris/01_plot.R
no_license
training-datalab/minard
R
false
false
2,733
r
library(tidyverse) library(ggtext) library(sf) library(scatterpie) setwd("021-meat_to_paris/") france <- st_read("../000-data/fra_shape/FRA_adm2.shp") france <- rmapshaper::ms_simplify(france,keep = 0.001) france$sent <- "no" france$sent[c(3:6,8,9,10,64,65,12:19,79:82,71:75,27:30,20:22,47,48,31:36,54:56,23:26,43,57:6...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/brendaDb.R \docType{package} \name{brendaDb-package} \alias{brendaDb} \alias{brendaDb-package} \title{brendaDb: the BRENDA enzyme database.} \description{ brendaDb provides an R interface to download, clean and extract enzyme information from...
/man/brendaDb-package.Rd
permissive
y1zhou/brendaDb
R
false
true
1,051
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/brendaDb.R \docType{package} \name{brendaDb-package} \alias{brendaDb} \alias{brendaDb-package} \title{brendaDb: the BRENDA enzyme database.} \description{ brendaDb provides an R interface to download, clean and extract enzyme information from...
pnganswers <- function(qsection, qlocs, ngrps, cc_dir) { require(PerformanceAnalytics) root <- paste(cc_dir, 'output/', sep="") if(!file.exists(root)) dir.create(root) locs <- c(qlocs, length(qsection)+1) for(i in 1:ngrps) { for(j in 1:(length(locs)-1)) { basecharperline <- 75; basenlines <- 25; cex...
/R/camcon_png.r
no_license
mfrmn/camcon
R
false
false
1,770
r
pnganswers <- function(qsection, qlocs, ngrps, cc_dir) { require(PerformanceAnalytics) root <- paste(cc_dir, 'output/', sep="") if(!file.exists(root)) dir.create(root) locs <- c(qlocs, length(qsection)+1) for(i in 1:ngrps) { for(j in 1:(length(locs)-1)) { basecharperline <- 75; basenlines <- 25; cex...
DDD=function(comm,geo,nrepet){ DeltaD = function(abun, struc) { ## Chao et al, 2017 n = sum(abun) N = ncol(abun) ga = rowSums(abun) gp = ga[ga > 0]/n G = sum(-gp * log(gp)) H = nrow(struc) A = numeric(H - 1) W = numeric(H - 1) Diff = numeric(H - 1) wi = ...
/Distancebydecay.R
no_license
xinghuq/SGDCs
R
false
false
2,372
r
DDD=function(comm,geo,nrepet){ DeltaD = function(abun, struc) { ## Chao et al, 2017 n = sum(abun) N = ncol(abun) ga = rowSums(abun) gp = ga[ga > 0]/n G = sum(-gp * log(gp)) H = nrow(struc) A = numeric(H - 1) W = numeric(H - 1) Diff = numeric(H - 1) wi = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vector_control_parameters.R \name{set_bednets} \alias{set_bednets} \title{Parameterise a bed net strategy} \usage{ set_bednets(parameters, timesteps, coverages, retention, dn0, rn, rnm, gamman) } \arguments{ \item{parameters}{a list of parame...
/man/set_bednets.Rd
permissive
mrc-ide/malariasimulation
R
false
true
1,718
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vector_control_parameters.R \name{set_bednets} \alias{set_bednets} \title{Parameterise a bed net strategy} \usage{ set_bednets(parameters, timesteps, coverages, retention, dn0, rn, rnm, gamman) } \arguments{ \item{parameters}{a list of parame...
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://www.rstudio.com/shiny/ # # #install.packages("RColorBrewer") library(shiny) source("Make3DPlotFunctions.R") shinyServer(function(input, output) { observe({ if (input$cle...
/server.R
no_license
jwildenhain/CheckerBoardR.shiny
R
false
false
9,377
r
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://www.rstudio.com/shiny/ # # #install.packages("RColorBrewer") library(shiny) source("Make3DPlotFunctions.R") shinyServer(function(input, output) { observe({ if (input$cle...
## The below makeCacheMatrix and cacheSolve functions are used together too ## to take the inverse of a matrix and cache the results ## makeCacheMatrix - creates a list with the following capabilities ## set or get the value of the matrix ## set or get the inversion of the matrix makeCacheMatrix <- function(x = matri...
/cachematrix.R
no_license
coursegit9999/ProgrammingAssignment2
R
false
false
1,014
r
## The below makeCacheMatrix and cacheSolve functions are used together too ## to take the inverse of a matrix and cache the results ## makeCacheMatrix - creates a list with the following capabilities ## set or get the value of the matrix ## set or get the inversion of the matrix makeCacheMatrix <- function(x = matri...
as.matrix.FLQuant <- function(v){ require(FLCore) d <- dim(v@.Data) dn <- dimnames(v@.Data) xx <- t(matrix(v@.Data, d[1],d[2])) colnames(xx) <- dn[[1]] rownames(xx) <- dn[[2]] xx } as.FLStock.sam <- function(fit, unit.w = "kg", name = "", desc = "", predicted = FALSE){ require(FLCore) ...
/stockassessment/inst/flr_convenience.R
no_license
fishfollower/SAM
R
false
false
10,937
r
as.matrix.FLQuant <- function(v){ require(FLCore) d <- dim(v@.Data) dn <- dimnames(v@.Data) xx <- t(matrix(v@.Data, d[1],d[2])) colnames(xx) <- dn[[1]] rownames(xx) <- dn[[2]] xx } as.FLStock.sam <- function(fit, unit.w = "kg", name = "", desc = "", predicted = FALSE){ require(FLCore) ...
FunctionPointer = function(funDef, alias = character(), ans = new("FunctionPointer")) { #XXX typename ans@name = funDef@name ans@returnType = funDef@returnType parms = funDef@parameters i = grep("^[0-9]+$", names(parms)) if(length(i) == length(parms)) names(parms) = NULL else names(parms)[i] = "...
/R/FunctionPointers.R
no_license
kashenfelter/RGCCTranslationUnit
R
false
false
4,796
r
FunctionPointer = function(funDef, alias = character(), ans = new("FunctionPointer")) { #XXX typename ans@name = funDef@name ans@returnType = funDef@returnType parms = funDef@parameters i = grep("^[0-9]+$", names(parms)) if(length(i) == length(parms)) names(parms) = NULL else names(parms)[i] = "...
\name{impliedR} \alias{impliedR} \alias{rimpliedR} \title{Create or Generate the Model Implied Correlation or Covariance Matrices } \description{It creates or generates the model implied correlation or covariance matrices based on the RAM model specification. } \usage{ impliedR(Amatrix, Smatrix, Fmatrix, corr=TRUE, l...
/man/impliedR.Rd
no_license
arinbasu/metasem
R
false
false
5,720
rd
\name{impliedR} \alias{impliedR} \alias{rimpliedR} \title{Create or Generate the Model Implied Correlation or Covariance Matrices } \description{It creates or generates the model implied correlation or covariance matrices based on the RAM model specification. } \usage{ impliedR(Amatrix, Smatrix, Fmatrix, corr=TRUE, l...
##' convertId ##' ##' A function to convert ID based on the biomaRt package. ##' ##' A function to convert ID based on the biomaRt package.. ##' ##' @param keepMultipleId Logical. Indicate keep the multiple target IDs related to one source ID or not. ##' @param keepNoId Logical. Indicate keep the source IDs without ...
/R/convertId.R
no_license
slzhao/FunTFPair
R
false
false
5,530
r
##' convertId ##' ##' A function to convert ID based on the biomaRt package. ##' ##' A function to convert ID based on the biomaRt package.. ##' ##' @param keepMultipleId Logical. Indicate keep the multiple target IDs related to one source ID or not. ##' @param keepNoId Logical. Indicate keep the source IDs without ...
enumerate_collections <- function(site_dir, site_config, site_collections) { lapply(site_collections, function(collection) { enumerate_collection(site_dir, site_config, collection) }) } enumerate_collection <- function(site_dir, site_config, collection) { # collection_dir collection_dir <- ...
/R/collections.R
no_license
cran/distill
R
false
false
32,132
r
enumerate_collections <- function(site_dir, site_config, site_collections) { lapply(site_collections, function(collection) { enumerate_collection(site_dir, site_config, collection) }) } enumerate_collection <- function(site_dir, site_config, collection) { # collection_dir collection_dir <- ...
#' Calculate geometric mean #' #' @param x A numberic vector #' @param na.rm Whether remove NA #' @param zero.propagate 666 #' #' @return NULL #' @export #' gm_mean = function(x, na.rm=TRUE, zero.propagate = FALSE){ if(any(x < 0, na.rm = TRUE)){ return(NaN) } if(zero.propagate){ if(any(x == 0, na.rm = TRU...
/R/cal_gm_mean.R
permissive
limbo1996/NeoEnrichment
R
false
false
454
r
#' Calculate geometric mean #' #' @param x A numberic vector #' @param na.rm Whether remove NA #' @param zero.propagate 666 #' #' @return NULL #' @export #' gm_mean = function(x, na.rm=TRUE, zero.propagate = FALSE){ if(any(x < 0, na.rm = TRUE)){ return(NaN) } if(zero.propagate){ if(any(x == 0, na.rm = TRU...
#' Distance to center #' #' Distances to frequently used areas. `distance_to_center` calculates the #' distance to the home-range center (i.e., the centroid of the `x` and `y` #' coordinates). `distance_to_centers` calculates the distance to `top_n` most #' frequently used cells. Note, that the results of `distance_to_...
/amt/R/distance_to_center.R
no_license
akhikolla/InformationHouse
R
false
false
2,326
r
#' Distance to center #' #' Distances to frequently used areas. `distance_to_center` calculates the #' distance to the home-range center (i.e., the centroid of the `x` and `y` #' coordinates). `distance_to_centers` calculates the distance to `top_n` most #' frequently used cells. Note, that the results of `distance_to_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VPROD_module.R \name{VPRODmodule} \alias{VPRODmodule} \title{Calculates tree volume (inside bark) based on taper equations for different products according to specifications} \usage{ VPRODmodule( tree.list = NA, ZONE = NA, prod.list = N...
/man/VPRODmodule.Rd
no_license
wcalcagno/Nothopack
R
false
true
2,502
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VPROD_module.R \name{VPRODmodule} \alias{VPRODmodule} \title{Calculates tree volume (inside bark) based on taper equations for different products according to specifications} \usage{ VPRODmodule( tree.list = NA, ZONE = NA, prod.list = N...
library(rube) library(R2jags) library(plyr) library(reshape2) get_name <- function(filename){ return(unlist(strsplit(as.character(filename), '\\.'))[1]) } gold_data <- read.table('/Users/cmaclell/Projects/pairwise/ranker/gold_data_complete.csv', header=T, sep=",", quote="\"", check.names=F) gold_data <- subset(gold...
/ranker/MCMCjagsModel.R
permissive
cmaclell/humanranker
R
false
false
8,016
r
library(rube) library(R2jags) library(plyr) library(reshape2) get_name <- function(filename){ return(unlist(strsplit(as.character(filename), '\\.'))[1]) } gold_data <- read.table('/Users/cmaclell/Projects/pairwise/ranker/gold_data_complete.csv', header=T, sep=",", quote="\"", check.names=F) gold_data <- subset(gold...
if (!require("pacman")) install.packages("pacman") ; require("pacman") p_load(rtweet, httr,tidyverse) # Create token_one token_one <- create_token( app = '', consumer_key = '', consumer_secret = '', access_token = '', access_secret = '', set_renv = FALSE) # Create token_two token_two <- create_token( ap...
/tokensandkeys.R
no_license
stanpauw/Clusterz
R
false
false
778
r
if (!require("pacman")) install.packages("pacman") ; require("pacman") p_load(rtweet, httr,tidyverse) # Create token_one token_one <- create_token( app = '', consumer_key = '', consumer_secret = '', access_token = '', access_secret = '', set_renv = FALSE) # Create token_two token_two <- create_token( ap...
pollutantmean <- function(directory, pollutant, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'pollutant' is a character vector of length 1 indicating ## the name of the pollutant for which we will calculate the ## mean; either "sulfate" or "n...
/pollutantmean.R
no_license
jayashkoshal/r_programming
R
false
false
863
r
pollutantmean <- function(directory, pollutant, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'pollutant' is a character vector of length 1 indicating ## the name of the pollutant for which we will calculate the ## mean; either "sulfate" or "n...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fpca.lfda.R \name{fpca.lfda} \alias{fpca.lfda} \title{Longitudinal Functional Data Analysis using FPCA} \usage{ fpca.lfda(Y, subject.index, visit.index, obsT = NULL, funcArg = NULL, numTEvalPoints = 41, newdata = NULL, fbps.knots = c(5, 10)...
/man/fpca.lfda.Rd
no_license
clbwvr/refund
R
false
true
14,658
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fpca.lfda.R \name{fpca.lfda} \alias{fpca.lfda} \title{Longitudinal Functional Data Analysis using FPCA} \usage{ fpca.lfda(Y, subject.index, visit.index, obsT = NULL, funcArg = NULL, numTEvalPoints = 41, newdata = NULL, fbps.knots = c(5, 10)...
fes.tides <- function(loc, t_range, t_res) { Sys.setenv(HDF5_DISABLE_VERSION_CHECK = "2") # prepare ORIGIN <- ymd("1950-01-01") T_RANGE <- (t_range + c(0, t_res)) %>% julian(origin = ORIGIN) %>% as.numeric %>% formatC(format = "f") T_RES <- t_res / 60 CALL <- str_c("fes_slev", loc$lat, loc$lon, T_RANGE[1]...
/functions.R
no_license
ruiseabra/lsm_improve
R
false
false
11,092
r
fes.tides <- function(loc, t_range, t_res) { Sys.setenv(HDF5_DISABLE_VERSION_CHECK = "2") # prepare ORIGIN <- ymd("1950-01-01") T_RANGE <- (t_range + c(0, t_res)) %>% julian(origin = ORIGIN) %>% as.numeric %>% formatC(format = "f") T_RES <- t_res / 60 CALL <- str_c("fes_slev", loc$lat, loc$lon, T_RANGE[1]...
#' @title Ball Divergence based Equality of Distributions Test #' #' @description Performs the nonparametric two-sample or \eqn{K}-sample Ball Divergence test for #' equality of multivariate distributions #' #' @aliases bd.test #' #' @author Wenliang Pan, Yuan Tian, Xueqin Wang, Heping Zhang, Jin Zhu #' #' @param x...
/R-package/R/bd.R
no_license
Mamba413/Ball
R
false
false
18,591
r
#' @title Ball Divergence based Equality of Distributions Test #' #' @description Performs the nonparametric two-sample or \eqn{K}-sample Ball Divergence test for #' equality of multivariate distributions #' #' @aliases bd.test #' #' @author Wenliang Pan, Yuan Tian, Xueqin Wang, Heping Zhang, Jin Zhu #' #' @param x...
# # vers. 1.0.0 # last modified: 23.05.16 # author: Lorenzo Milazzo # # # Generation of a 3D multifractal lattice (3D grayscale image) # by using a random multiplicative process (Meakin method) # # # -- References -- # # P. Meakin, "Random walks on multifractal lattices", # J. Phys. A: Math. Gen. 20, L771-L777 (1...
/mf_image_gen_rmp3D.R
no_license
lormitech/mf_image_gen
R
false
false
4,413
r
# # vers. 1.0.0 # last modified: 23.05.16 # author: Lorenzo Milazzo # # # Generation of a 3D multifractal lattice (3D grayscale image) # by using a random multiplicative process (Meakin method) # # # -- References -- # # P. Meakin, "Random walks on multifractal lattices", # J. Phys. A: Math. Gen. 20, L771-L777 (1...
#drafted by Jeremy VanDerWal ( jjvanderwal@gmail.com ... www.jjvanderwal.com ) #GNU General Public License .. feel free to use / distribute ... no warranties ################################################################################ ############################################################################...
/JJV.conversion/netcdf.2.dataframe.R
no_license
web1mhz/species-modeling
R
false
false
2,375
r
#drafted by Jeremy VanDerWal ( jjvanderwal@gmail.com ... www.jjvanderwal.com ) #GNU General Public License .. feel free to use / distribute ... no warranties ################################################################################ ############################################################################...
findPeaks<-function (x, thresh = 0) { pks <- which(diff(sign(diff(x, na.pad = FALSE)), na.pad = FALSE) < 0) + 2 if (!missing(thresh)) { if (sign(thresh) < 0) thresh <- -thresh pks[x[pks - 1] - coredata(x[pks]) > thresh] } else pks }
/anna_code/simband_local/findPeaks.R
no_license
AshleyLab/myheartcounts
R
false
false
287
r
findPeaks<-function (x, thresh = 0) { pks <- which(diff(sign(diff(x, na.pad = FALSE)), na.pad = FALSE) < 0) + 2 if (!missing(thresh)) { if (sign(thresh) < 0) thresh <- -thresh pks[x[pks - 1] - coredata(x[pks]) > thresh] } else pks }
\name{ScalingDS} \alias{ScalingDS} \title{ Produce a scaled or centered data frame. } \description{ ScalingDS produces a transformed data frame (centering, scaling, etc.). } \usage{ ScalingDS(ds,s=1,c=1,fDet=FALSE,outFileName="ds4.scaled.csv") } \arguments{ \item{ds}{a matrix or data frame. The first column correspond...
/RRegrs/man/ScalingDS.Rd
permissive
enanomapper/RRegrs
R
false
false
1,188
rd
\name{ScalingDS} \alias{ScalingDS} \title{ Produce a scaled or centered data frame. } \description{ ScalingDS produces a transformed data frame (centering, scaling, etc.). } \usage{ ScalingDS(ds,s=1,c=1,fDet=FALSE,outFileName="ds4.scaled.csv") } \arguments{ \item{ds}{a matrix or data frame. The first column correspond...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/firewalls.R \name{firewall_add_droplets} \alias{firewall_add_droplets} \alias{firewall_remove_droplets} \title{Add/remove droplets to a firewall} \usage{ firewall_add_droplets(id, droplet_ids, ...) firewall_remove_droplets(id, droplet_ids, ....
/man/firewall_add_droplets.Rd
permissive
pachadotdev/analogsea
R
false
true
1,087
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/firewalls.R \name{firewall_add_droplets} \alias{firewall_add_droplets} \alias{firewall_remove_droplets} \title{Add/remove droplets to a firewall} \usage{ firewall_add_droplets(id, droplet_ids, ...) firewall_remove_droplets(id, droplet_ids, ....
# Purpose: Supporting statistical tests that determine accuracy/bias of particular CMIP6 models used in 6A and 6B scripts. # Load Modules library(ggplot2) library(stringr) library(gridExtra) ################################# ########## PREP WORK ############ ################################# # Define Variables ct = 1...
/6C_AccompanyingStats.R
no_license
alexcrawford0927/seaicephenology
R
false
false
11,501
r
# Purpose: Supporting statistical tests that determine accuracy/bias of particular CMIP6 models used in 6A and 6B scripts. # Load Modules library(ggplot2) library(stringr) library(gridExtra) ################################# ########## PREP WORK ############ ################################# # Define Variables ct = 1...
#Libraries for R: library(sparql) #subset selection library(leaps) #shrinkage library(glmnet) #Dimension Reduction library(pls) #disable scientific notation options(scipen=999) #enable cientific notation options(scipen=1) #Before any attempt we will need to clear out rows that might missing values. sum(is.n...
/Research Projects/Educational Material/Machine Learning with R/Supervised Learning/Feature Selection/Commands_Linear_Selection.r
no_license
kokovidis/portfolio_temp
R
false
false
8,127
r
#Libraries for R: library(sparql) #subset selection library(leaps) #shrinkage library(glmnet) #Dimension Reduction library(pls) #disable scientific notation options(scipen=999) #enable cientific notation options(scipen=1) #Before any attempt we will need to clear out rows that might missing values. sum(is.n...
#' @title SangerRead #' #' @description An S4 class extending sangerseq S4 class which corresponds to a single ABIF file in Sanger sequencing. #' #' @slot inputSource The input source of the raw file. It must be \code{"ABIF"} or \code{"FASTA"}. The default value is \code{"ABIF"}. #' @slot readFeature The direction of ...
/R/ClassSangerRead.R
permissive
ukaraoz/sangeranalyseR
R
false
false
18,637
r
#' @title SangerRead #' #' @description An S4 class extending sangerseq S4 class which corresponds to a single ABIF file in Sanger sequencing. #' #' @slot inputSource The input source of the raw file. It must be \code{"ABIF"} or \code{"FASTA"}. The default value is \code{"ABIF"}. #' @slot readFeature The direction of ...
library(lubridate) library(dplyr) library(graphics) library(grDevices) #the file was download in "exdata%2Fdata%2Fhousehold_power_consumption" in the working directory sub<-read.table("exdata%2Fdata%2Fhousehold_power_consumption\\household_power_consumption.txt",stringsAsFactors = FALSE, header = TRUE,sep = ";")...
/plot3.R
no_license
gypsyaqp/ExData_Plotting1
R
false
false
1,254
r
library(lubridate) library(dplyr) library(graphics) library(grDevices) #the file was download in "exdata%2Fdata%2Fhousehold_power_consumption" in the working directory sub<-read.table("exdata%2Fdata%2Fhousehold_power_consumption\\household_power_consumption.txt",stringsAsFactors = FALSE, header = TRUE,sep = ";")...
peaksInput("CTCF.ECC-1.bed") png("CTCF.ECC-1.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("ESR1.ECC-1.bed") png("ESR1.ECC-1.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("FOXA1.ECC-1.bed") png("FOXA1.ECC-1.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("NR3C1.ECC-1.bed") png("NR3C1.E...
/output/sorted/ECC-1/ECC-1.R
permissive
Bohdan-Khomtchouk/ENCODE_TF_geneXtendeR_analysis
R
false
false
468
r
peaksInput("CTCF.ECC-1.bed") png("CTCF.ECC-1.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("ESR1.ECC-1.bed") png("ESR1.ECC-1.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("FOXA1.ECC-1.bed") png("FOXA1.ECC-1.png") linePlot(human, 0, 10000, 500) dev.off() peaksInput("NR3C1.ECC-1.bed") png("NR3C1.E...
# # data-plot.R, 9 Jan 16 # # Modified version of... # #Title: An example of the correlation of x and y for various distributions of (x,y) pairs #Tags: Mathematics; Statistics; Correlation #Author: Denis Boigelot #Packets needed : mvtnorm (rmvnorm), RSVGTipsDevice (devSVGTips) #How to use: output() # #This is a transl...
/communicating/data-plot.R
no_license
gopinathsubbegowda/ESEUR-code-data
R
false
false
2,444
r
# # data-plot.R, 9 Jan 16 # # Modified version of... # #Title: An example of the correlation of x and y for various distributions of (x,y) pairs #Tags: Mathematics; Statistics; Correlation #Author: Denis Boigelot #Packets needed : mvtnorm (rmvnorm), RSVGTipsDevice (devSVGTips) #How to use: output() # #This is a transl...
Sys.setenv(RSTUDIO_PANDOC='/Applications/RStudio.app/Contents/MacOS/pandoc') for (i in unique(coloradoRentAll$subregion)) { rmarkdown::render('rmd/subregionAnalysis.Rmd', "github_document", paste("../analysis/", tolower(gsub("[^0-9a-zA-Z]", "", i)), ".md", sep = "")) }
/code/subregionAnalysis.R
no_license
chipoglesby/coloradoRent
R
false
false
276
r
Sys.setenv(RSTUDIO_PANDOC='/Applications/RStudio.app/Contents/MacOS/pandoc') for (i in unique(coloradoRentAll$subregion)) { rmarkdown::render('rmd/subregionAnalysis.Rmd', "github_document", paste("../analysis/", tolower(gsub("[^0-9a-zA-Z]", "", i)), ".md", sep = "")) }
\name{term_matrix} \alias{term_frame} \alias{term_matrix} \title{Term Frequency Tabulation} \description{ Tokenize a set of texts and compute a term frequency matrix or data frame. } \usage{ term_matrix(x, filter = token_filter(), weights = NULL, ngrams = NULL, select = NULL, group = NULL, ...
/man/term_matrix.Rd
permissive
conjugateprior/r-corpus
R
false
false
4,638
rd
\name{term_matrix} \alias{term_frame} \alias{term_matrix} \title{Term Frequency Tabulation} \description{ Tokenize a set of texts and compute a term frequency matrix or data frame. } \usage{ term_matrix(x, filter = token_filter(), weights = NULL, ngrams = NULL, select = NULL, group = NULL, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/arrange.R \name{arrange.corpus} \alias{arrange.corpus} \title{Arrange the document order of a corpus by variables} \usage{ \method{arrange}{corpus}(.data, ...) } \arguments{ \item{.data}{a corpus object whose documents will be sorted} \item{...
/man/arrange.corpus.Rd
no_license
quanteda/quanteda.tidy
R
false
true
753
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/arrange.R \name{arrange.corpus} \alias{arrange.corpus} \title{Arrange the document order of a corpus by variables} \usage{ \method{arrange}{corpus}(.data, ...) } \arguments{ \item{.data}{a corpus object whose documents will be sorted} \item{...
#require(ggraph) #require(tidygraph) #require(patchwork) require(qgraph) setwd("\\\\filestore.soton.ac.uk\\users\\ch19g17\\mydocuments\\Dogs\\Related Dogs") potRel<-read.csv("potentiallyRelated.csv",stringsAsFactors = FALSE) # ## graph the data nicely # ggraphData<-function(dataset,title){ # gGraph<-as_tbl_graph(da...
/Chapter_8/Cleaning/RelatednessInvestigation.R
no_license
chorscroft/PhD-Thesis
R
false
false
8,746
r
#require(ggraph) #require(tidygraph) #require(patchwork) require(qgraph) setwd("\\\\filestore.soton.ac.uk\\users\\ch19g17\\mydocuments\\Dogs\\Related Dogs") potRel<-read.csv("potentiallyRelated.csv",stringsAsFactors = FALSE) # ## graph the data nicely # ggraphData<-function(dataset,title){ # gGraph<-as_tbl_graph(da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getDLLRegisteredRoutines.R \name{getDLLRegisteredRoutines} \alias{getDLLRegisteredRoutines} \title{fun_name} \usage{ getDLLRegisteredRoutines(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona }
/man/getDLLRegisteredRoutines.Rd
no_license
granatb/RapeR
R
false
true
311
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getDLLRegisteredRoutines.R \name{getDLLRegisteredRoutines} \alias{getDLLRegisteredRoutines} \title{fun_name} \usage{ getDLLRegisteredRoutines(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona }
initPherGrid <- function(n){ # function to initialize the pherGrid utils::globalVariables(c("MAXPHER")) Grid = matrix(rep(0,(n+2)*(n+2)), n+2) mid = ceiling((n+2)/2) for(i in 1:n){ Grid[mid,i+1]<-i/n*MAXPHER } return(Grid) }
/products/Introduction_to_Computational_Science_Modules/02_System_Dynamics/R/R_Computational_Toolbox_Files/Ants_R/initPherGrid.R
no_license
wmmurrah/computationalScience
R
false
false
248
r
initPherGrid <- function(n){ # function to initialize the pherGrid utils::globalVariables(c("MAXPHER")) Grid = matrix(rep(0,(n+2)*(n+2)), n+2) mid = ceiling((n+2)/2) for(i in 1:n){ Grid[mid,i+1]<-i/n*MAXPHER } return(Grid) }
library(data.table) n <- 10000000 DT <- data.table(chunk=rep(0:1, c(n/2,n/2)), x1=rep(c(paste(rep(strrep("X",20),5), collapse=" "), paste(rep(strrep("Y",20),5), collapse=" ")), c(n/2,n/2))) DT2 <- rbindlist(lapply(split(DT, by="chunk", keep.by=FALSE), function(x) ...
/split-rbind-large-data-table-demo.R
no_license
mauriciocramos/dsscapstone
R
false
false
486
r
library(data.table) n <- 10000000 DT <- data.table(chunk=rep(0:1, c(n/2,n/2)), x1=rep(c(paste(rep(strrep("X",20),5), collapse=" "), paste(rep(strrep("Y",20),5), collapse=" ")), c(n/2,n/2))) DT2 <- rbindlist(lapply(split(DT, by="chunk", keep.by=FALSE), function(x) ...
##### Histogram #### df <- DMCs.PAH_vs_con qplot(df$dist.to.feature, geom="histogram", binwidth = 10000, main = "Distribution of DMCs relative to TSS", col="Green", xlab="distToTSS") + theme(plot.title= element_text(size= 14, face= "bold"), axis.text= element_text(size= 14), legend.text= el...
/R Code/Histogram.R
no_license
jchap14/R
R
false
false
523
r
##### Histogram #### df <- DMCs.PAH_vs_con qplot(df$dist.to.feature, geom="histogram", binwidth = 10000, main = "Distribution of DMCs relative to TSS", col="Green", xlab="distToTSS") + theme(plot.title= element_text(size= 14, face= "bold"), axis.text= element_text(size= 14), legend.text= el...
\name{binmat} \alias{binmat} \title{Create a matrix of all binary combinations} \description{ Create a matrix of all binary combinations for use with the hyperdirichlet distribution } \usage{ binmat(n, alternatives = NULL, pnames=NULL) } \arguments{ \item{n}{Number of binary digits} \item{alternatives}{The alternat...
/man/binmat.Rd
no_license
cran/hyperdirichlet
R
false
false
930
rd
\name{binmat} \alias{binmat} \title{Create a matrix of all binary combinations} \description{ Create a matrix of all binary combinations for use with the hyperdirichlet distribution } \usage{ binmat(n, alternatives = NULL, pnames=NULL) } \arguments{ \item{n}{Number of binary digits} \item{alternatives}{The alternat...
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(1179010630L, 1177234219L, 724249387L, 724249387L, 724249387L, 724249387L, -350214640L, -1L, 1258291199L, -1L, -1L, -16121686L, 1051377666L, -15663175L, -1183008511L, 0L, 11145217L, 0L, 7763574L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1...
/dexterMST/inst/testfiles/mutate_booklet_score/libFuzzer_mutate_booklet_score/mutate_booklet_score_valgrind_files/1612727927-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
1,357
r
testlist <- list(id = NULL, score = NULL, id = NULL, booklet_id = c(1179010630L, 1177234219L, 724249387L, 724249387L, 724249387L, 724249387L, -350214640L, -1L, 1258291199L, -1L, -1L, -16121686L, 1051377666L, -15663175L, -1183008511L, 0L, 11145217L, 0L, 7763574L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datalake.R \name{get_bucket_version_df} \alias{get_bucket_version_df} \title{List bucket contents with versions} \usage{ get_bucket_version_df(bucket_name, key_marker = "", prefix = "") } \arguments{ \item{bucket_name}{Name of the bucket to c...
/man/get_bucket_version_df.Rd
permissive
StatisticsNZ/er.helpers
R
false
true
930
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datalake.R \name{get_bucket_version_df} \alias{get_bucket_version_df} \title{List bucket contents with versions} \usage{ get_bucket_version_df(bucket_name, key_marker = "", prefix = "") } \arguments{ \item{bucket_name}{Name of the bucket to c...
\name{depth.simplicial} \alias{depth.simplicial} \title{ Calculate Simplicial Depth } \description{ Calculates the simplicial depth of points w.r.t. a multivariate data set. } \usage{ depth.simplicial(x, data, exact = F, k = 0.05, seed = 0) } \arguments{ \item{x}{ Matrix of objects (numerical vector as one object) wh...
/fuzzedpackages/ddalpha/man/depth.simplicial.Rd
no_license
akhikolla/testpackages
R
false
false
3,121
rd
\name{depth.simplicial} \alias{depth.simplicial} \title{ Calculate Simplicial Depth } \description{ Calculates the simplicial depth of points w.r.t. a multivariate data set. } \usage{ depth.simplicial(x, data, exact = F, k = 0.05, seed = 0) } \arguments{ \item{x}{ Matrix of objects (numerical vector as one object) wh...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/skin.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.55,family="gaussian",standardize=FALSE) sink('./skin_062.txt',append=TRUE) print(...
/Model/EN/AvgRank/skin/skin_062.R
no_license
esbgkannan/QSMART
R
false
false
343
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/AvgRank/skin.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.55,family="gaussian",standardize=FALSE) sink('./skin_062.txt',append=TRUE) print(...
#' Timing_general.R #' #' Functions that assess or convert timing variables. #' #' TODO: Check and merge back in to palsR #' #' @export #' findStartTime <- function(start){ # Find starting date / time: sday <- as.numeric(format(start, format="%d")) smonth <- as.numeric(format(start, format="%m")) syear <...
/R/Timing_general.R
no_license
yfq2009/FluxnetLSM
R
false
false
1,408
r
#' Timing_general.R #' #' Functions that assess or convert timing variables. #' #' TODO: Check and merge back in to palsR #' #' @export #' findStartTime <- function(start){ # Find starting date / time: sday <- as.numeric(format(start, format="%d")) smonth <- as.numeric(format(start, format="%m")) syear <...
## ----chunk_options, echo=FALSE, message=FALSE---------------------------- opts_chunk$set(fig.width=6, fig.height=5, out.width='.8\\linewidth', fig.align='center', size='tiny') #################################### # L6 - Bayesian hypothesis testing # #################################### library(reshape2) library(plyr...
/Lecture7-hierarchical.R
no_license
goodrich4185/Stat544
R
false
false
6,195
r
## ----chunk_options, echo=FALSE, message=FALSE---------------------------- opts_chunk$set(fig.width=6, fig.height=5, out.width='.8\\linewidth', fig.align='center', size='tiny') #################################### # L6 - Bayesian hypothesis testing # #################################### library(reshape2) library(plyr...
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53822150295944e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist) str(result...
/multivariance/inst/testfiles/doubleCenterBiasCorrected/AFL_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1613140845-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
321
r
testlist <- list(x = structure(c(2.31584307392677e+77, 9.53822150295944e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance:::doubleCenterBiasCorrected,testlist) str(result...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weight.R \name{weight} \alias{weight} \title{Weight in correlation} \usage{ weight(t, lag, C) } \arguments{ \item{t}{a vector of timepoints} \item{lag}{a integer value of the lag used} \item{C}{a numeric of the constant used in the penalty ...
/man/weight.Rd
permissive
gitter-lab/LPWC
R
false
true
717
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weight.R \name{weight} \alias{weight} \title{Weight in correlation} \usage{ weight(t, lag, C) } \arguments{ \item{t}{a vector of timepoints} \item{lag}{a integer value of the lag used} \item{C}{a numeric of the constant used in the penalty ...
x <- '2022-01-01' obj <- as.Date(x) + 15 # matrix mat1 <- matrix(c(1,2,3,4)) mat2 <- matrix(c(1,2,3,4), nrow = 2) # 열 우선! 열 먼저 채움 mat3 <- matrix(c(1,2,3,4), nrow=2, byrow=T) # 원래 행렬 모양 그대로 출력하면 반드시 byrow=T => 행 우선 mat4 <- matrix(c(1,2,3 ,4,5,6 ,7,8,9),nrow=3, byrow=T) mat4 <- rbi...
/Concept Study/2. 자료구조.R
no_license
haeinyy/Study-R
R
false
false
1,368
r
x <- '2022-01-01' obj <- as.Date(x) + 15 # matrix mat1 <- matrix(c(1,2,3,4)) mat2 <- matrix(c(1,2,3,4), nrow = 2) # 열 우선! 열 먼저 채움 mat3 <- matrix(c(1,2,3,4), nrow=2, byrow=T) # 원래 행렬 모양 그대로 출력하면 반드시 byrow=T => 행 우선 mat4 <- matrix(c(1,2,3 ,4,5,6 ,7,8,9),nrow=3, byrow=T) mat4 <- rbi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{predict.ggmix_gic} \alias{predict.ggmix_gic} \alias{coef.ggmix_gic} \title{Make predictions from a \code{ggmix_gic} object} \usage{ \method{predict}{ggmix_gic}(object, newx, s = c("lambda.min"), ...) \method{coef}{ggmix_gic}(...
/man/predict.ggmix_gic.Rd
permissive
sahirbhatnagar/ggmix
R
false
true
2,199
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/methods.R \name{predict.ggmix_gic} \alias{predict.ggmix_gic} \alias{coef.ggmix_gic} \title{Make predictions from a \code{ggmix_gic} object} \usage{ \method{predict}{ggmix_gic}(object, newx, s = c("lambda.min"), ...) \method{coef}{ggmix_gic}(...
############################################################################ # Getting and Cleaning Data Analisys # # Project script # # # only! # # delivers t...
/run_analysis-Alternativa2.R
no_license
juxba/Get_Clean_Data_Proj
R
false
false
2,603
r
############################################################################ # Getting and Cleaning Data Analisys # # Project script # # # only! # # delivers t...
# Set the working directory to point to your input folder setwd("/Users/au152367/Documents/QDev/UniSim2/input") source("papers/2021-saccharina/analysis/setup.R") source("papers/2021-saccharina/analysis/saccharina-SA-complete.part.R") load( "papers/2021-saccharina/analysis/saccharina-SA-complete.Rdata") plot_all(sim)...
/src/resources/data/input/papers/2021-saccharina(0)/analysis/saccharina-SA-complete.R
no_license
NielsHolst/UniSim2
R
false
false
321
r
# Set the working directory to point to your input folder setwd("/Users/au152367/Documents/QDev/UniSim2/input") source("papers/2021-saccharina/analysis/setup.R") source("papers/2021-saccharina/analysis/saccharina-SA-complete.part.R") load( "papers/2021-saccharina/analysis/saccharina-SA-complete.Rdata") plot_all(sim)...
EurostatBaseUrl <- 'https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/' CssStyle <- ' <!DOCTYPE html> <html> <head> <style type="text/css"> table.gridtable { font-family: verdana,arial,sans-serif; font-size:11px; color:#...
/R/const.R
no_license
alekrutkowski/eurodata
R
false
false
1,094
r
EurostatBaseUrl <- 'https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/' CssStyle <- ' <!DOCTYPE html> <html> <head> <style type="text/css"> table.gridtable { font-family: verdana,arial,sans-serif; font-size:11px; color:#...
fact <- function(n) { if ( n <= 1 ) 1 else n * fact(n-1) } for(i in 0:1000000000) { fact(10) }
/scripts/newTask/factorial/r/factorial.r
no_license
stefanos1316/Rosetta_Code_Research_MSR
R
false
false
101
r
fact <- function(n) { if ( n <= 1 ) 1 else n * fact(n-1) } for(i in 0:1000000000) { fact(10) }
\name{zorder} \alias{zorder} \title{Index locations on the 2D plane} \description{ Index a set of locations of the 2D plane with a Z-curve, when they are scaled into the unit square. The goal of this function is to make locations close in geometry also close in the index. When partitioned into clusters, the i...
/fuzzedpackages/tlrmvnmvt/man/zorder.Rd
no_license
akhikolla/testpackages
R
false
false
994
rd
\name{zorder} \alias{zorder} \title{Index locations on the 2D plane} \description{ Index a set of locations of the 2D plane with a Z-curve, when they are scaled into the unit square. The goal of this function is to make locations close in geometry also close in the index. When partitioned into clusters, the i...
## Module to allow matrix inversion caching. ## Creates a structure containing a matrix and its inverse (if computed), ## and methods to set/get the matrix and its inverse makeCacheMatrix <- function(mx = matrix()) { s <- NULL set <- function(my) { mx <<- my solve <<- NULL } get <- fun...
/cachematrix.R
no_license
sygour/ProgrammingAssignment2
R
false
false
753
r
## Module to allow matrix inversion caching. ## Creates a structure containing a matrix and its inverse (if computed), ## and methods to set/get the matrix and its inverse makeCacheMatrix <- function(mx = matrix()) { s <- NULL set <- function(my) { mx <<- my solve <<- NULL } get <- fun...
#loading a file using read.table load_file <- function (file){ return (read.table(file)) } #load data set (train or test) load_data <- function(features, activities, train_or_test){ #loads datasets x <- load_file(paste("./UCI HAR Dataset/",train_or_test,"/x_",train_or_test,".txt", sep = "")) y <- load_file(...
/run_analysis.R
no_license
tomashaber/getting-and-cleaning-data
R
false
false
1,583
r
#loading a file using read.table load_file <- function (file){ return (read.table(file)) } #load data set (train or test) load_data <- function(features, activities, train_or_test){ #loads datasets x <- load_file(paste("./UCI HAR Dataset/",train_or_test,"/x_",train_or_test,".txt", sep = "")) y <- load_file(...
# exploratory data analysis # Assignment: Course Project 1 # Markus Pleier, Germany # # 5 May 2016 # #This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets. In particular, we will be using the “Individual household electric power consumption Data Se...
/plot3.R
no_license
deponere/ExData_Plotting1
R
false
false
3,543
r
# exploratory data analysis # Assignment: Course Project 1 # Markus Pleier, Germany # # 5 May 2016 # #This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets. In particular, we will be using the “Individual household electric power consumption Data Se...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mm_generate_mcmc_file.R \name{mm_generate_mcmc_file} \alias{mm_generate_mcmc_file} \title{Generate the models in inst/models/bayes} \usage{ mm_generate_mcmc_file(type = "bayes", pooling = "none", err_obs_iid = c(TRUE, FALSE), err_pr...
/man/mm_generate_mcmc_file.Rd
permissive
cyack/streamMetabolizer
R
false
false
1,652
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/mm_generate_mcmc_file.R \name{mm_generate_mcmc_file} \alias{mm_generate_mcmc_file} \title{Generate the models in inst/models/bayes} \usage{ mm_generate_mcmc_file(type = "bayes", pooling = "none", err_obs_iid = c(TRUE, FALSE), err_pr...
# Creates list of binaries based on factors from the DataFrame # Where: # V = column from the data frame with the different factors create_binary_list <- function(V,rootName) { L = list() # creating empty list allLevels <- levels(factor(unlist(V))) colnames = allLevels for (ii in 1:length(allLevels)) { L[[i...
/auxfuncs.R
no_license
licurgoalmeida/insight
R
false
false
1,609
r
# Creates list of binaries based on factors from the DataFrame # Where: # V = column from the data frame with the different factors create_binary_list <- function(V,rootName) { L = list() # creating empty list allLevels <- levels(factor(unlist(V))) colnames = allLevels for (ii in 1:length(allLevels)) { L[[i...
#' Import and register Raleway #' #' \code{bbd_font_install} tests to see if default fonts imported and registered. If Raleway are not imported and registered, then \code{bbd_font_install} imports and registers Raleway with \href{https://github.com/wch/extrafont}{library(extrafont)}. #' #' Note: Raleway must be install...
/R/bbd_font_install.R
no_license
connorrothschild/bbdata
R
false
false
1,188
r
#' Import and register Raleway #' #' \code{bbd_font_install} tests to see if default fonts imported and registered. If Raleway are not imported and registered, then \code{bbd_font_install} imports and registers Raleway with \href{https://github.com/wch/extrafont}{library(extrafont)}. #' #' Note: Raleway must be install...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dependencies.r \name{inline.dependencies} \alias{inline.dependencies} \title{Inline dependencies with local file references} \usage{ inline.dependencies(deps, mustWork = TRUE) } \description{ Inline dependencies with local file references }
/man/inline.dependencies.Rd
no_license
jimsforks/rmdtools
R
false
true
320
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dependencies.r \name{inline.dependencies} \alias{inline.dependencies} \title{Inline dependencies with local file references} \usage{ inline.dependencies(deps, mustWork = TRUE) } \description{ Inline dependencies with local file references }
path <- "~/Documents/Coursera Data Science/04 Exploratory Data Analysis/ExData_Plotting1/" # Read the data file. data <- read.csv(file = paste(path, "data/household_power_consumption.txt", sep = ""), sep = ";", na.strings = "?", colClasses = c("character", "character...
/plot2.R
no_license
TylerChenhall/ExData_Plotting1
R
false
false
914
r
path <- "~/Documents/Coursera Data Science/04 Exploratory Data Analysis/ExData_Plotting1/" # Read the data file. data <- read.csv(file = paste(path, "data/household_power_consumption.txt", sep = ""), sep = ";", na.strings = "?", colClasses = c("character", "character...
#' This function performs a default analysis by calling, in order, the functions: #' \code{\link{normalized}}, #' \code{\link{estimatePara}}, #' \code{\link{GPTest}}. #' #' The differential expression analysis uses a generalized generalized Poisson model of the form: #' \deqn{ GP(D=k|\lambda,\theta)=(\lambda/(1+\lambda...
/R/functions.R
no_license
yang099/ABSSeq
R
false
false
12,207
r
#' This function performs a default analysis by calling, in order, the functions: #' \code{\link{normalized}}, #' \code{\link{estimatePara}}, #' \code{\link{GPTest}}. #' #' The differential expression analysis uses a generalized generalized Poisson model of the form: #' \deqn{ GP(D=k|\lambda,\theta)=(\lambda/(1+\lambda...
/shumi/zemi/perceptron/Check-Of-Linear-Separability.R
no_license
jecht1014/book
R
false
false
721
r
#!/usr/bin/env Rscript args <- commandArgs (trailingOnly = TRUE) # args <- "Outputs/WGCNA_MergeModules/All_genes_modules_Power8MinModuleSize15deepSplit2CutHeight0.2.csv" # Preparing environmet and loading required packages suppressPackageStartupMessages ({ library (dplyr) }) Genes_Modules <- read.csv (args [ 1 ...
/Scripts/3.5.CoexpressedPairs.R
no_license
madhulika-EBI/AnalysisFrameworkSimilarTissues
R
false
false
2,141
r
#!/usr/bin/env Rscript args <- commandArgs (trailingOnly = TRUE) # args <- "Outputs/WGCNA_MergeModules/All_genes_modules_Power8MinModuleSize15deepSplit2CutHeight0.2.csv" # Preparing environmet and loading required packages suppressPackageStartupMessages ({ library (dplyr) }) Genes_Modules <- read.csv (args [ 1 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/infer_multittree_share_param.R \name{infer_multittree_share_param} \alias{infer_multittree_share_param} \title{Simultaneously infer transmission trees given phylogenetic trees User can specify any subset of parameters that will be shared by ...
/man/infer_multittree_share_param.Rd
no_license
gouldmatt/TransPhylo
R
false
true
3,498
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/infer_multittree_share_param.R \name{infer_multittree_share_param} \alias{infer_multittree_share_param} \title{Simultaneously infer transmission trees given phylogenetic trees User can specify any subset of parameters that will be shared by ...
rankall <- function(outcome, num = "best"){ ## Read outcome data data <- read.csv("programming_assignment3/outcome-of-care-measures.csv", colClasses = "character") fd <- as.data.frame(cbind(data[, 2], # hospital data[, 7], # state data[, 11], # hear...
/R Programming/programming_assignment3/test2.R
no_license
kdenny25/datasciencecoursera
R
false
false
2,518
r
rankall <- function(outcome, num = "best"){ ## Read outcome data data <- read.csv("programming_assignment3/outcome-of-care-measures.csv", colClasses = "character") fd <- as.data.frame(cbind(data[, 2], # hospital data[, 7], # state data[, 11], # hear...
#---------------------------------------------------------------------------------------------------------------------------------- #------------------------------------------------------------ Functions ----------------------------------------------------------- #-------------------------------------------------------...
/challenge_reproducibility.R
no_license
mschecht/qbio5_reproducibility
R
false
false
5,592
r
#---------------------------------------------------------------------------------------------------------------------------------- #------------------------------------------------------------ Functions ----------------------------------------------------------- #-------------------------------------------------------...
library(MASS) timepoints <- c(0,2,4,6) rar_columns <- c('coverage.F9.WT.panRAR.1','coverage.F9.ATRA.panRAR.1', 'coverage.F9.ATRA24.panRAR.1','coverage.F9.ATRA48.panRAR.1') data <- read.table('results/chipseq/annotations/PanRAR_regions_chipseq_annotation.tsv',header=TRUE,sep='\t') data <- data[ data$pvalue...
/misc/R/chipseq_clustering_kmeans.R
no_license
pveber/rar-scripts
R
false
false
2,278
r
library(MASS) timepoints <- c(0,2,4,6) rar_columns <- c('coverage.F9.WT.panRAR.1','coverage.F9.ATRA.panRAR.1', 'coverage.F9.ATRA24.panRAR.1','coverage.F9.ATRA48.panRAR.1') data <- read.table('results/chipseq/annotations/PanRAR_regions_chipseq_annotation.tsv',header=TRUE,sep='\t') data <- data[ data$pvalue...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysis.R \name{copy.attributes} \alias{copy.attributes} \alias{copy.attributes<-} \title{Copy Attributes} \usage{ copy.attributes( from, to, delete = c("names", "row.names", "class", "dim", "dimnames"), delete2 = NULL ) ...
/man/copy.attributes.Rd
no_license
pinusm/Mmisc
R
false
true
1,115
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysis.R \name{copy.attributes} \alias{copy.attributes} \alias{copy.attributes<-} \title{Copy Attributes} \usage{ copy.attributes( from, to, delete = c("names", "row.names", "class", "dim", "dimnames"), delete2 = NULL ) ...
#' Net present value of drainage for proportional crop rotation #' #' @param y1np1 Net profit for crop 1 in year 1. Unit is $/ha. #' @param y1np2 Net profit for crop 2 in year 1. Unit is $/ha. #' @param y1np3 Net profit for crop 3 in year 1. Unit is $/ha. #' @param y1np4 Net profit for crop 4 in year 1. Unit is $/ha....
/R/prop_rotation.R
permissive
ericasare1/WetlandEconsRPackage
R
false
false
7,459
r
#' Net present value of drainage for proportional crop rotation #' #' @param y1np1 Net profit for crop 1 in year 1. Unit is $/ha. #' @param y1np2 Net profit for crop 2 in year 1. Unit is $/ha. #' @param y1np3 Net profit for crop 3 in year 1. Unit is $/ha. #' @param y1np4 Net profit for crop 4 in year 1. Unit is $/ha....
#--------------------------------- # Solutions to R problems from 18.05 Studio 2 #--------------------------------- # CLASS EXERCISE 1---- # 1. Run a simulat ion with 1000 trials to estimate # P(Y=6) and P(Y<=6) for a Y \sim binomial(8,.6) ntosses = 8 ntrials = 5000 phead = .6 trials = rbinom(ntrials, ntosses,...
/studio2/studio2-solutions.r
no_license
lbadams2/prob-stats-r
R
false
false
3,488
r
#--------------------------------- # Solutions to R problems from 18.05 Studio 2 #--------------------------------- # CLASS EXERCISE 1---- # 1. Run a simulat ion with 1000 trials to estimate # P(Y=6) and P(Y<=6) for a Y \sim binomial(8,.6) ntosses = 8 ntrials = 5000 phead = .6 trials = rbinom(ntrials, ntosses,...
make.crossprod.array <- function(rect.cube){ Sks <- array(NA,dim=c(nrow(rect.cube),nrow(rect.cube),dim(rect.cube)[3])) for(i in 1:dim(Sks)[3]){ Sks[,,i] <- tcrossprod(rect.cube[,,i]) } return(Sks) } compute.alphas <- function(crossprod.cube){ Zmat <- apply(crossprod.cube,3,c) ## aha, I see the conn...
/STATIS/STATIS_and_Friends.R
no_license
derekbeaton/Misc
R
false
false
4,781
r
make.crossprod.array <- function(rect.cube){ Sks <- array(NA,dim=c(nrow(rect.cube),nrow(rect.cube),dim(rect.cube)[3])) for(i in 1:dim(Sks)[3]){ Sks[,,i] <- tcrossprod(rect.cube[,,i]) } return(Sks) } compute.alphas <- function(crossprod.cube){ Zmat <- apply(crossprod.cube,3,c) ## aha, I see the conn...
# HINCP: household income (past 12 months) # NOC: number of own children in the household # Households with no children are not included in the datatable load("/Users/jiwenyou/Desktop/Fall2016-proj1-grp14/data/data.RData") library(dplyr) library(sqldf) library(data.table) library(ggplot2) library(plotly) hus <- na.om...
/lib/HINCP and NOC by Jiwen You.R
no_license
TZstatsADS/Fall2016-proj1-grp14
R
false
false
3,504
r
# HINCP: household income (past 12 months) # NOC: number of own children in the household # Households with no children are not included in the datatable load("/Users/jiwenyou/Desktop/Fall2016-proj1-grp14/data/data.RData") library(dplyr) library(sqldf) library(data.table) library(ggplot2) library(plotly) hus <- na.om...
# Author : Duncan P. # Shiny globals file for voting interface. library(shinythemes) library(synapseClient) synapseLogin() tableId <- 'syn5260108' synTable <- synTableQuery('Select * from syn5260108') geneList <- as.vector(as.matrix(synTable@values[[1]]))
/global.r
no_license
duncan-palmer/voteGene
R
false
false
268
r
# Author : Duncan P. # Shiny globals file for voting interface. library(shinythemes) library(synapseClient) synapseLogin() tableId <- 'syn5260108' synTable <- synTableQuery('Select * from syn5260108') geneList <- as.vector(as.matrix(synTable@values[[1]]))
# 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 distributed in the hope that it will be useful,...
/R/momentEstim.R
no_license
cran/gmm
R
false
false
46,268
r
# 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 distributed in the hope that it will be useful,...
library(CompareCausalNetworks) library(testthat) context("All supported methods") data("simDataInv") X <- simDataInv$X environment <- simDataInv$environment interventions <- simDataInv$interventions mode <- "isAncestor" methods <- c( "arges", "backShift", "bivariateANM", "bivariateCAM", "CAM", ...
/tests/testthat/test_getParents_defaults_all_methods.R
no_license
cran/CompareCausalNetworks
R
false
false
1,319
r
library(CompareCausalNetworks) library(testthat) context("All supported methods") data("simDataInv") X <- simDataInv$X environment <- simDataInv$environment interventions <- simDataInv$interventions mode <- "isAncestor" methods <- c( "arges", "backShift", "bivariateANM", "bivariateCAM", "CAM", ...