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
## function to convert intern values to a dataframe fun.int2df <- function(x){ x1 <- t(as.data.frame(strsplit(x, ","))) row.names (x1) <- NULL colnames (x1) <- x1[1,] x1 <- x1[-1,] return(as.data.frame(x1)) } ##---- Chunk 2 - import data in to PERMANENT and create masks execGRASS("g.mapset", parameters=list(...
/BasinDel/defunct_BasinExtract.R
no_license
feralindia/CWC
R
false
false
11,716
r
## function to convert intern values to a dataframe fun.int2df <- function(x){ x1 <- t(as.data.frame(strsplit(x, ","))) row.names (x1) <- NULL colnames (x1) <- x1[1,] x1 <- x1[-1,] return(as.data.frame(x1)) } ##---- Chunk 2 - import data in to PERMANENT and create masks execGRASS("g.mapset", parameters=list(...
# Preliminary analysis of the Porto taxi data set # This script preprocesses the original data by # 1. Making sure all the columns have the correct types # 2. Transforming the UNIX timestamp to a GMT timestamp # 3. Adding the travel time for each trip # 4. Removing the entries for which MISSING_DATA = TRUE # 5. Removin...
/Analyses/01 Preliminary analysis.R
no_license
starrrr1/MSc-thesis
R
false
false
9,574
r
# Preliminary analysis of the Porto taxi data set # This script preprocesses the original data by # 1. Making sure all the columns have the correct types # 2. Transforming the UNIX timestamp to a GMT timestamp # 3. Adding the travel time for each trip # 4. Removing the entries for which MISSING_DATA = TRUE # 5. Removin...
#' scr7_9 #' @description #' The solution to the exercise 7_9 for Rizzo's Book. #' #'Refer to Exercise 7.7. Compute 95% percentile and BCa confidence intervals for ˆθ. #' #' @references Maria L. Rizzo. (2016). Statistical computing with r. #' #' @param B number of replicates. Defaults to 200 #' #' @import bootstrap #'...
/SCR/R/scr7_9.R
no_license
Creatran/SCR
R
false
false
728
r
#' scr7_9 #' @description #' The solution to the exercise 7_9 for Rizzo's Book. #' #'Refer to Exercise 7.7. Compute 95% percentile and BCa confidence intervals for ˆθ. #' #' @references Maria L. Rizzo. (2016). Statistical computing with r. #' #' @param B number of replicates. Defaults to 200 #' #' @import bootstrap #'...
library(timetree) ### Name: timetree ### Title: Lockup divergence time from TIME TREE ### Aliases: timetree ### ** Examples # timetree(taxa=c("Boletales", "Agaricales"))
/data/genthat_extracted_code/timetree/examples/timetree.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
179
r
library(timetree) ### Name: timetree ### Title: Lockup divergence time from TIME TREE ### Aliases: timetree ### ** Examples # timetree(taxa=c("Boletales", "Agaricales"))
devtools::load_all() library(here) files_path <- here("analysis/optimize_experiment/optims/overweight_msm_lik/") state <<- 'LA' load.start() trace.burn.thin <- trace.burn <- trace <- readRDS(paste0(files_path, 'la_25_best_pars.rds')) trace <- rbind.data.frame(theta_la, theta_la, theta_la, theta_la, theta_la) colnames...
/analysis/optimize_experiment/plot_best_optimizers.R
no_license
PPML/syphilis
R
false
false
917
r
devtools::load_all() library(here) files_path <- here("analysis/optimize_experiment/optims/overweight_msm_lik/") state <<- 'LA' load.start() trace.burn.thin <- trace.burn <- trace <- readRDS(paste0(files_path, 'la_25_best_pars.rds')) trace <- rbind.data.frame(theta_la, theta_la, theta_la, theta_la, theta_la) colnames...
#' Calculate the Aalen-Johansen (1978) estimate in the Competing risk context. See Aalen, Odd O., and Søren Johansen. "An Empirical Transition Matrix for Non-Homogeneous Markov Chains Based on Censored Observations." Scandinavian Journal of Statistics 5, no. 3 (1978): 141-50. Accessed January 15, 2021. http://www.jsto...
/R/aalenjohansen.R
no_license
cran/PHInfiniteEstimates
R
false
false
1,048
r
#' Calculate the Aalen-Johansen (1978) estimate in the Competing risk context. See Aalen, Odd O., and Søren Johansen. "An Empirical Transition Matrix for Non-Homogeneous Markov Chains Based on Censored Observations." Scandinavian Journal of Statistics 5, no. 3 (1978): 141-50. Accessed January 15, 2021. http://www.jsto...
library(igraph) library(oncoNEM) library(data.table) extractTree <- function(dat) { tree <- data.frame(from=rep(0,length(dat)), to=rep(0,length(dat)), length=rep(0,length(dat)), AcqNames=rep(0,length(dat)), AcqPos=rep(0,length(d...
/Scripts/Phylogeny analysis/treeomicsAnalysis/03_extractTrees.R
permissive
cclab-brca/MET-breast-landscapes
R
false
false
4,711
r
library(igraph) library(oncoNEM) library(data.table) extractTree <- function(dat) { tree <- data.frame(from=rep(0,length(dat)), to=rep(0,length(dat)), length=rep(0,length(dat)), AcqNames=rep(0,length(dat)), AcqPos=rep(0,length(d...
set.seed(1234) # 비편향 추정량(unbiased estimate) 관련 R code # 1) ## 앞면/뒷면이 나올 확률이 각각 1/2인 동전 던지기를 16번 시행한 걸과를 통해 ## 난수를 10개 생성후, 평균을 내어보자. (x <- rbinom(10, 16, 0.5)) mean(x) # 7.9 ## 얼마나 적합한지 몬테카를로 기법을 통해 1000번 시뮬레이션을 사용하여 확인해보도록하자. meanx <- replicate(1000, mean(rbinom(10, 16, 0.5))) mean(meanx) # 8.0027 meanx <- replica...
/ch1_pointer_estimate.R
no_license
ByungSunBae/math_stat
R
false
false
2,471
r
set.seed(1234) # 비편향 추정량(unbiased estimate) 관련 R code # 1) ## 앞면/뒷면이 나올 확률이 각각 1/2인 동전 던지기를 16번 시행한 걸과를 통해 ## 난수를 10개 생성후, 평균을 내어보자. (x <- rbinom(10, 16, 0.5)) mean(x) # 7.9 ## 얼마나 적합한지 몬테카를로 기법을 통해 1000번 시뮬레이션을 사용하여 확인해보도록하자. meanx <- replicate(1000, mean(rbinom(10, 16, 0.5))) mean(meanx) # 8.0027 meanx <- replica...
library(tidyverse) library(stringi) library(ggrepel) joint_names = tribble( ~"Joint", ~"joint", "Ground Truth" , "true_dgp", "DDLK", "ddlk", "GaussMAF", "gaussmaf_5" ) knockoff_names = tribble( ~"Knockoff", ~"knockoff", "Model-X", "modelx", "DDLK", "ddlk", "FlowSelect", "mcmc", "FlowSelect", "mcmc_1...
/experiments/neurips2021_analyze_linear_comparison.R
no_license
banyeqiashokao/flowselect
R
false
false
8,978
r
library(tidyverse) library(stringi) library(ggrepel) joint_names = tribble( ~"Joint", ~"joint", "Ground Truth" , "true_dgp", "DDLK", "ddlk", "GaussMAF", "gaussmaf_5" ) knockoff_names = tribble( ~"Knockoff", ~"knockoff", "Model-X", "modelx", "DDLK", "ddlk", "FlowSelect", "mcmc", "FlowSelect", "mcmc_1...
#' Get Actigraph device serial number #' #' Read Actigraph device serial number from ActiLife accelerometry data #' file. #' #' @param fpath_full A string scalar. An absolute path to ActiLife accelerometry #' data file. #' #' @return String scalar. Actigraph device serial number. #' @export #' #' @examples #' fpath_ful...
/R/get_actigraph_SN.R
no_license
martakarass/arcstats
R
false
false
644
r
#' Get Actigraph device serial number #' #' Read Actigraph device serial number from ActiLife accelerometry data #' file. #' #' @param fpath_full A string scalar. An absolute path to ActiLife accelerometry #' data file. #' #' @return String scalar. Actigraph device serial number. #' @export #' #' @examples #' fpath_ful...
#' Gi en visuell fremstilling av registerets indikatorer over tid #' #' @param indikatordata En dataramme med følgende kolonner: #' - AvdRESH #' - year #' - var #' - SenterKortNavn #' #' @export #' nraFigIndikator_v4 <- function(indikatordata, tittel='', t...
/R/nraFigIndikator_v4.R
no_license
Rapporteket/nra
R
false
false
9,943
r
#' Gi en visuell fremstilling av registerets indikatorer over tid #' #' @param indikatordata En dataramme med følgende kolonner: #' - AvdRESH #' - year #' - var #' - SenterKortNavn #' #' @export #' nraFigIndikator_v4 <- function(indikatordata, tittel='', t...
/Prática 01/Jonycássio Almondes/Pratica1.R
no_license
diegofsousa/HandsOnSistemasInteligentes
R
false
false
921
r
#' @export datasets <- function(x) UseMethod("datasets") #' @export fetch <- function(x) UseMethod("fetch") #' @export reset <- function(x) UseMethod("reset") #' @export register <- function(x, ...) UseMethod("register") #' @export info <- function(client, dataset) UseMethod("info") cmdcPY <- NULL .onLo...
/R/setup.R
permissive
valorumdata/cmdcR
R
false
false
1,851
r
#' @export datasets <- function(x) UseMethod("datasets") #' @export fetch <- function(x) UseMethod("fetch") #' @export reset <- function(x) UseMethod("reset") #' @export register <- function(x, ...) UseMethod("register") #' @export info <- function(client, dataset) UseMethod("info") cmdcPY <- NULL .onLo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chrs.R \name{grid2d} \alias{grid2d} \title{Two-dimensional grid} \usage{ grid2d( chrlen, plot = TRUE, cex.labels = 0.6, xlab = "QTL position", ylab = "Gene position" ) } \arguments{ \item{chrlen}{Lengths of chromosomes; e.g., hg18, ...
/gap/man/grid2d.Rd
no_license
jinghuazhao/R
R
false
true
644
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chrs.R \name{grid2d} \alias{grid2d} \title{Two-dimensional grid} \usage{ grid2d( chrlen, plot = TRUE, cex.labels = 0.6, xlab = "QTL position", ylab = "Gene position" ) } \arguments{ \item{chrlen}{Lengths of chromosomes; e.g., hg18, ...
library(outsider) blastdbcmd <- module_import('blastdbcmd', repo = 'dombennett/om..blast') blastdbcmd('-help')
/examples/blastdbcmd.R
no_license
DomBennett/om..blast
R
false
false
111
r
library(outsider) blastdbcmd <- module_import('blastdbcmd', repo = 'dombennett/om..blast') blastdbcmd('-help')
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
/BlasterJS/dev/02_dev.R
no_license
godkin1211/Rcourses
R
false
false
2,553
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should be us...
#' Reparametrize mixture proportions #' #' Re-parameterise the mixture proportions so that when there is more than a #' 2-point mixture, the proportions sum to 1. #' #' @param mix.prop A set of mixture proportions. #' @param lastpar Is the last parameter provided, i.e. does sum(mix.prop)=1? #' @return a vector of para...
/mmds/R/inv.reparam.pi.R
no_license
ingted/R-Examples
R
false
false
1,556
r
#' Reparametrize mixture proportions #' #' Re-parameterise the mixture proportions so that when there is more than a #' 2-point mixture, the proportions sum to 1. #' #' @param mix.prop A set of mixture proportions. #' @param lastpar Is the last parameter provided, i.e. does sum(mix.prop)=1? #' @return a vector of para...
#---------------------------------------------------------------------------------- # Classes that control modelling of the multivariate joint probability model P(sA|sW). #---------------------------------------------------------------------------------- #' @importFrom assertthat assert_that NULL # ------------------...
/R/GenericModelingClasses.R
permissive
jlstiles/stremr
R
false
false
35,980
r
#---------------------------------------------------------------------------------- # Classes that control modelling of the multivariate joint probability model P(sA|sW). #---------------------------------------------------------------------------------- #' @importFrom assertthat assert_that NULL # ------------------...
library(Biobase) library(GEOquery) library(data.table) library(tidyverse) library(RColorBrewer) # creating heatmaps library(gplots) # for the jackstraw tests library(jackstraw) # calcuating q-values and FDRs library(qvalue) # combining ggplots library(sva) library(broom) library(patchwork) library(limma) library(edge) ...
/Statistical tests in latent variable models/Statistical tests in latent variable models - homework.r
no_license
szymczakpau/cbs
R
false
false
5,642
r
library(Biobase) library(GEOquery) library(data.table) library(tidyverse) library(RColorBrewer) # creating heatmaps library(gplots) # for the jackstraw tests library(jackstraw) # calcuating q-values and FDRs library(qvalue) # combining ggplots library(sva) library(broom) library(patchwork) library(limma) library(edge) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/which_firstNA.R \name{which_firstNA} \alias{which_firstNA} \alias{which_lastNA} \title{First/last position of missing values} \usage{ which_firstNA(x) which_lastNA(x) } \arguments{ \item{x}{An atomic vector.} } \value{ The position of the fi...
/man/which_firstNA.Rd
no_license
minghao2016/hutilscpp
R
false
true
622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/which_firstNA.R \name{which_firstNA} \alias{which_firstNA} \alias{which_lastNA} \title{First/last position of missing values} \usage{ which_firstNA(x) which_lastNA(x) } \arguments{ \item{x}{An atomic vector.} } \value{ The position of the fi...
trainModels = function(learner, tasks, control) { # if (control$multifid) # learner = makeMultiFidWrapper(learner, control) models = vector("list", length(tasks)) secs = NA_real_ tryCatch({ start.time <- Sys.time() for (i in seq_along(models)) { models[[i]] = train(learner, tasks[[i]]) } ...
/R/trainModels.R
permissive
pbalapra/mlrMBO
R
false
false
469
r
trainModels = function(learner, tasks, control) { # if (control$multifid) # learner = makeMultiFidWrapper(learner, control) models = vector("list", length(tasks)) secs = NA_real_ tryCatch({ start.time <- Sys.time() for (i in seq_along(models)) { models[[i]] = train(learner, tasks[[i]]) } ...
colortable <- `rownames<-`(cbind(t(col2rgb(colors()))/255,alpha=1),colors()) write.csv(colortable,"Rcolortable.csv")
/lib/Rcolortable.r
no_license
stakahama/libPy
R
false
false
117
r
colortable <- `rownames<-`(cbind(t(col2rgb(colors()))/255,alpha=1),colors()) write.csv(colortable,"Rcolortable.csv")
#' PCAProjection - PCA of Raster files #' #' Performs PCSRaster and projects it on another set of rasters #' #' Noninteractive version. #' #' @param BioStackFiles - ESRI ASCII grid files of predictor variables #' @param LoadingFile - name of output file which stores loadings for components #' @param CompImpFile - n...
/R/PCAProjection.R
no_license
arflah/ENMGadgets
R
false
false
5,390
r
#' PCAProjection - PCA of Raster files #' #' Performs PCSRaster and projects it on another set of rasters #' #' Noninteractive version. #' #' @param BioStackFiles - ESRI ASCII grid files of predictor variables #' @param LoadingFile - name of output file which stores loadings for components #' @param CompImpFile - n...
#' Package Spell Checking #' #' Automatically spell-check package description, documentation, and vignettes. #' #' Parse and spell check R package manual pages, rmd/rnw vignettes, and text fields in the #' `DESCRIPTION` file. Use the [WORDLIST][get_wordlist] file to allow custom words in your #' package, which will be ...
/R/spell-check.R
no_license
jimhester/spelling
R
false
false
6,769
r
#' Package Spell Checking #' #' Automatically spell-check package description, documentation, and vignettes. #' #' Parse and spell check R package manual pages, rmd/rnw vignettes, and text fields in the #' `DESCRIPTION` file. Use the [WORDLIST][get_wordlist] file to allow custom words in your #' package, which will be ...
#run_GreenSTEP.r #This script starts a GreenSTEP model run. source( "scripts/GreenSTEP.r" )
/Version_3.6/Example/run_GreenSTEP.r
permissive
gregorbj/RSPM
R
false
false
98
r
#run_GreenSTEP.r #This script starts a GreenSTEP model run. source( "scripts/GreenSTEP.r" )
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/agentset-functions.R \name{isNLclass} \alias{isNLclass} \alias{isNLclass,matrix,character-method} \title{Type of object} \usage{ isNLclass(agents, class) \S4method{isNLclass}{matrix,character}(agents, class) } \arguments{ \item{agents}{Matri...
/man/isNLclass.Rd
no_license
PredictiveEcology/NetLogoR
R
false
true
2,425
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/agentset-functions.R \name{isNLclass} \alias{isNLclass} \alias{isNLclass,matrix,character-method} \title{Type of object} \usage{ isNLclass(agents, class) \S4method{isNLclass}{matrix,character}(agents, class) } \arguments{ \item{agents}{Matri...
# FONCTION 1 : CREATION DE DEGRADES getpal<-function(pal1,n1,pal2=NULL,n2=NULL,middle=F,alphaeffect=F){ # PARAMETRES alphainit<-30 alpha="FF" middlecol<-"#F6F6F6" # CREATION DE LA PALETTE # 1.Simple gradation ---------------------------- if(is.null(pal2) & is.null(n2)){ pal<-as.character(unlist(colors[[pal1]][n1]...
/colors/Palettes.R
no_license
neocarto/R
R
false
false
1,322
r
# FONCTION 1 : CREATION DE DEGRADES getpal<-function(pal1,n1,pal2=NULL,n2=NULL,middle=F,alphaeffect=F){ # PARAMETRES alphainit<-30 alpha="FF" middlecol<-"#F6F6F6" # CREATION DE LA PALETTE # 1.Simple gradation ---------------------------- if(is.null(pal2) & is.null(n2)){ pal<-as.character(unlist(colors[[pal1]][n1]...
capture.output(test_that("Cache management works", { on.exit(clear_testthat_cache()) clear_testthat_cache() # clearing a cache inactivates the caching functionality. expect_false(cache_info(format = "tabular")$activated) activate_testthat_cache() # at fresh startup expect_s3_class(cache_info(format = "tab...
/tests/testthat/test-cache-with-r-cache.R
permissive
isabella232/styler
R
false
false
3,983
r
capture.output(test_that("Cache management works", { on.exit(clear_testthat_cache()) clear_testthat_cache() # clearing a cache inactivates the caching functionality. expect_false(cache_info(format = "tabular")$activated) activate_testthat_cache() # at fresh startup expect_s3_class(cache_info(format = "tab...
library(dplyr) hw1 <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) hw11 <- mutate(hw1, DateTime = paste(Date,Time, sep = " ")) hw12 <- select(hw11, -(Date:Time)) hw11 <- strptime(hw12$DateTime, "%d/%m/%Y %H:%M:%S") hw12 <- cbind(hw11,hw12) hw12 <- select(hw12, -(Date...
/plot3.R
no_license
EGBoliou/ExData_Plotting1
R
false
false
1,247
r
library(dplyr) hw1 <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE) hw11 <- mutate(hw1, DateTime = paste(Date,Time, sep = " ")) hw12 <- select(hw11, -(Date:Time)) hw11 <- strptime(hw12$DateTime, "%d/%m/%Y %H:%M:%S") hw12 <- cbind(hw11,hw12) hw12 <- select(hw12, -(Date...
testlist <- list(x = c(2.6461938652295e-260, 2.6461938652295e-260, 2.6461938652295e-260, 2.6461938652295e-260, 2.6461938652295e-260, 2.64619392580177e-260, 7.02576071542499e-317, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/diceR/inst/testfiles/connectivity_matrix/libFuzzer_connectivity_matrix/connectivity_matrix_valgrind_files/1609958576-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
429
r
testlist <- list(x = c(2.6461938652295e-260, 2.6461938652295e-260, 2.6461938652295e-260, 2.6461938652295e-260, 2.6461938652295e-260, 2.64619392580177e-260, 7.02576071542499e-317, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
library(data.table) setwd("~/coursera/02. R Programming/assign 01") complete <- function(directory, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'id' is an integer vector indicating the monitor ID numbers ## to be used ## Return a data fr...
/02. R Programming/assign 01/complete.R
no_license
changboon/coursera
R
false
false
948
r
library(data.table) setwd("~/coursera/02. R Programming/assign 01") complete <- function(directory, id = 1:332) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'id' is an integer vector indicating the monitor ID numbers ## to be used ## Return a data fr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/htmldeps_rmarkdown.R \name{html_dependency_jqueryui} \alias{html_dependency_jqueryui} \title{An HTML dependency using `jqueryui.js`} \usage{ html_dependency_jqueryui() } \description{ An HTML dependency using `jqueryui.js` }
/man/html_dependency_jqueryui.Rd
permissive
Parivesh123/htmldeps
R
false
true
303
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/htmldeps_rmarkdown.R \name{html_dependency_jqueryui} \alias{html_dependency_jqueryui} \title{An HTML dependency using `jqueryui.js`} \usage{ html_dependency_jqueryui() } \description{ An HTML dependency using `jqueryui.js` }
library(data.table) allf <- sub('.csv','',list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/impute/saucie')) getf <- sub('.rds','', list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/procimpute/saucie/')) runf <- setdiff(allf, getf) #runf <- allf sink('/home-4/whou10...
/simu/code/procimpute/saucie.R
no_license
wangdi2016/imputationBenchmark
R
false
false
1,060
r
library(data.table) allf <- sub('.csv','',list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/impute/saucie')) getf <- sub('.rds','', list.files('/home-4/whou10@jhu.edu/scratch/Wenpin/rna_imputation/simu/result/procimpute/saucie/')) runf <- setdiff(allf, getf) #runf <- allf sink('/home-4/whou10...
#' @name perMark #' @title FUNCTION perMark #' @description calculates fraction (%) of chromosome for each mark #' #' @param dfMarkPos data.frame, of marks' position #' @param listOfdfChromSize list of data.frames or data.frame of chr. sizes. #' @param bToRemove character vector, bands to ignore #' @param result charac...
/R/perMark.R
no_license
NailouZhang/idiogramFISH
R
false
false
6,434
r
#' @name perMark #' @title FUNCTION perMark #' @description calculates fraction (%) of chromosome for each mark #' #' @param dfMarkPos data.frame, of marks' position #' @param listOfdfChromSize list of data.frames or data.frame of chr. sizes. #' @param bToRemove character vector, bands to ignore #' @param result charac...
\name{generate} \alias{generate} \title{Generates basic class code for an ECHSE-based model} \usage{ generate(files, outdir, overwrite = FALSE) } \arguments{ \item{files}{A \emph{named} vector of file names/paths. Each file is expected to contain the specification of a single model class. The class' name is deter...
/R/packages/codegen/man/generate.Rd
permissive
echse/echse_tools
R
false
false
3,094
rd
\name{generate} \alias{generate} \title{Generates basic class code for an ECHSE-based model} \usage{ generate(files, outdir, overwrite = FALSE) } \arguments{ \item{files}{A \emph{named} vector of file names/paths. Each file is expected to contain the specification of a single model class. The class' name is deter...
# shorthand for package development si <- function(...) {dplyr::filter(devtools::session_info(...)$packages, `*` == "*")}
/misc.R
no_license
nathancday/sesh
R
false
false
123
r
# shorthand for package development si <- function(...) {dplyr::filter(devtools::session_info(...)$packages, `*` == "*")}
# repcocourse_boxplots_all_data_points # Anita Werensteijn-Honingh, started 2019-11-14, continued for reproducible code 2020-01-27. library(tidyverse) library(RColorBrewer) library(magick) library(ggsignif) library(stringr) # axes limits are now still hard-coded # axes limits are the same across GTV and Bony boxplots...
/src/repcocourse_boxplots_all_data_points.R
permissive
Judoan/evacuation_cushion_immobilization
R
false
false
5,282
r
# repcocourse_boxplots_all_data_points # Anita Werensteijn-Honingh, started 2019-11-14, continued for reproducible code 2020-01-27. library(tidyverse) library(RColorBrewer) library(magick) library(ggsignif) library(stringr) # axes limits are now still hard-coded # axes limits are the same across GTV and Bony boxplots...
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 4.26667200368738e-124, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853089-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
659
r
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 4.26667200368738e-124, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e...
# --------------------------------------- # Selection of permanent, weekly monitoring plots for Forest Ecology Research # Christy Rollinson; crollinson@mortonarb.org # 29 March, 2017 # # ------------------ # Description: # ------------------ # Script to select 4 points from the IMLS(?) Survey to establish permanent in...
/plot_selection/scripts/1_plot_selection.R
no_license
MortonArb-ForestEcology/EastWoods-MonitoringPlots
R
false
false
25,478
r
# --------------------------------------- # Selection of permanent, weekly monitoring plots for Forest Ecology Research # Christy Rollinson; crollinson@mortonarb.org # 29 March, 2017 # # ------------------ # Description: # ------------------ # Script to select 4 points from the IMLS(?) Survey to establish permanent in...
testlist <- list(lims = structure(c(4.42078165322117e+262, 4.48961530137067e+262, 4.27784468899801e-305, 0, 0, 0, 0, 0), .Dim = c(1L, 8L)), points = structure(c(2.98302031348083e-313, 35740566642812256256), .Dim = 2:1)) result <- do.call(palm:::pbc_distances,testlist) str(result)
/palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988440-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
282
r
testlist <- list(lims = structure(c(4.42078165322117e+262, 4.48961530137067e+262, 4.27784468899801e-305, 0, 0, 0, 0, 0), .Dim = c(1L, 8L)), points = structure(c(2.98302031348083e-313, 35740566642812256256), .Dim = 2:1)) result <- do.call(palm:::pbc_distances,testlist) str(result)
# Get the Data: fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="Dataset.zip") #Unzip the file unzip(zipfile="Dataset.zip",exdir="./data") fold <- file.path("./data" , "UCI HAR Dataset") fold files<-list.files(fold, recursive=TR...
/getting and cleaning data peer.R
no_license
Jgarden79/getting-and-cleaning
R
false
false
2,628
r
# Get the Data: fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl,destfile="Dataset.zip") #Unzip the file unzip(zipfile="Dataset.zip",exdir="./data") fold <- file.path("./data" , "UCI HAR Dataset") fold files<-list.files(fold, recursive=TR...
v <- integer() #initialize empty vector v <- append(v, cor(sig$'EEG FP1-REF'$signal, sig$'EEG FP2-REF'$signal, method = 'pearson'), after = length(0)) v <- append(v, cor(sig$'EEG FP1-REF'$signal, sig$'EEG F3-REF'$signal, method = 'pearson'), after = length(1)) v <- append(v, cor(sig$'EEG FP1-REF'$signal, sig$'EEG F4-R...
/correlation_statements.R
no_license
sju-senior-projects-2019/edas
R
false
false
59,158
r
v <- integer() #initialize empty vector v <- append(v, cor(sig$'EEG FP1-REF'$signal, sig$'EEG FP2-REF'$signal, method = 'pearson'), after = length(0)) v <- append(v, cor(sig$'EEG FP1-REF'$signal, sig$'EEG F3-REF'$signal, method = 'pearson'), after = length(1)) v <- append(v, cor(sig$'EEG FP1-REF'$signal, sig$'EEG F4-R...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/csv.R \name{csv_convert_options} \alias{csv_convert_options} \title{Conversion Options for the csv reader} \usage{ csv_convert_options(check_utf8 = TRUE) } \arguments{ \item{check_utf8}{Whether to check UTF8 validity of string columns} } \des...
/r/man/csv_convert_options.Rd
permissive
SeppPenner/arrow
R
false
true
370
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/csv.R \name{csv_convert_options} \alias{csv_convert_options} \title{Conversion Options for the csv reader} \usage{ csv_convert_options(check_utf8 = TRUE) } \arguments{ \item{check_utf8}{Whether to check UTF8 validity of string columns} } \des...
### Exploring whether the outlier KOs were genomes or individual KOs. ec <- read.table(gzfile("/home/gavin/github_repos/picrust_repos/picrust2/default_files/prokaryotic/past_tables/ec.txt.gz"), row.names=1, header=T, sep="\t", stringsAsFactors = FALSE, check.names=FALSE) ko <- read.table(gzfile("/hom...
/scripts/processing_scripts/db_upper_count_set.R
no_license
weibokong27/picrust2_manuscript
R
false
false
2,729
r
### Exploring whether the outlier KOs were genomes or individual KOs. ec <- read.table(gzfile("/home/gavin/github_repos/picrust_repos/picrust2/default_files/prokaryotic/past_tables/ec.txt.gz"), row.names=1, header=T, sep="\t", stringsAsFactors = FALSE, check.names=FALSE) ko <- read.table(gzfile("/hom...
library(data.table) library(tidyverse) library(cumstats) #all_met_rmsd02 <- fread("C://Users//mahajvi1//Downloads//01adsl_met_rmsd.csv") all_met_rmsd02 <- readRDS("D:/Hospital_data/ProgresSQL/analysis/01adsl_met_rmsd.rds") all_met_rmsd02 <- all_met_rmsd02 [, Code := ifelse (Code == " " | Code == "", "** Not yet ...
/110_rasa_aushadhi_analysis.R
no_license
coursephd/PostgreSQL
R
false
false
3,737
r
library(data.table) library(tidyverse) library(cumstats) #all_met_rmsd02 <- fread("C://Users//mahajvi1//Downloads//01adsl_met_rmsd.csv") all_met_rmsd02 <- readRDS("D:/Hospital_data/ProgresSQL/analysis/01adsl_met_rmsd.rds") all_met_rmsd02 <- all_met_rmsd02 [, Code := ifelse (Code == " " | Code == "", "** Not yet ...
library(repurrrsive) library(tidyr) library(dplyr) library(stringr) # repurrrsive::discog contains my music collection from discogs as of a few years ago. Isn't that cool :sob: # It's super nested/messy though lol collection <- tibble(disc = discog) %>% unnest_wider(disc) %>% select(!id) %>% unnest_wider(basic_...
/02-pictogram/pictogram.R
no_license
sharlagelfand/30DayChartChallenge
R
false
false
997
r
library(repurrrsive) library(tidyr) library(dplyr) library(stringr) # repurrrsive::discog contains my music collection from discogs as of a few years ago. Isn't that cool :sob: # It's super nested/messy though lol collection <- tibble(disc = discog) %>% unnest_wider(disc) %>% select(!id) %>% unnest_wider(basic_...
#' Function to identifie bad assays #' #' This function determines if assays are of good quality based on the ratio of good versus bad quality calls #' @param fluidSCraw fluidSCraw S3 object #' @param min_ratio_goodVSbad ratio of number of good calls over bad calls, ratio = #good/#bad. Defaults to 1, i.e. minimum hal...
/R/identifyBadAssays_function.R
no_license
RubD/fluidSCqpcr
R
false
false
1,654
r
#' Function to identifie bad assays #' #' This function determines if assays are of good quality based on the ratio of good versus bad quality calls #' @param fluidSCraw fluidSCraw S3 object #' @param min_ratio_goodVSbad ratio of number of good calls over bad calls, ratio = #good/#bad. Defaults to 1, i.e. minimum hal...
####################################################################### # # # Package: onemap # # # # File: onemap_read_vcfR.R ...
/R/onemap_read_vcfR.R
no_license
IdoBar/onemap
R
false
false
9,790
r
####################################################################### # # # Package: onemap # # # # File: onemap_read_vcfR.R ...
#### Temp Usage & Parrallel Programming #### #### New HuaToo #### library(doParallel) cl <- makeCluster(2); registerDoParallel(cl); begin.time<-proc.time() n = 5000 foreach(i = 1:n) %dopar% invisible(sqrt(i)); #for(i in 1:n) invisible(sqrt(i)) #x<-foreach(i = 1:n) %do% sqrt(i); proc.time() - begin.time x <- foreac...
/Temp_Prac.R
no_license
Lorlorn/Data_Analysis_Temp_Prac
R
false
false
2,411
r
#### Temp Usage & Parrallel Programming #### #### New HuaToo #### library(doParallel) cl <- makeCluster(2); registerDoParallel(cl); begin.time<-proc.time() n = 5000 foreach(i = 1:n) %dopar% invisible(sqrt(i)); #for(i in 1:n) invisible(sqrt(i)) #x<-foreach(i = 1:n) %do% sqrt(i); proc.time() - begin.time x <- foreac...
library(shiny) ui <- fluidPage() server <- function(input,output) {} shinyApp (ui=ui, server=server)
/Template.R
no_license
16gs24/MMA-2018-Shiny-Workshop
R
false
false
103
r
library(shiny) ui <- fluidPage() server <- function(input,output) {} shinyApp (ui=ui, server=server)
mtcars women ?women dataset git config --global user.email "sarveshchitodkar24@example.com" git config --global user.name "Sargarrius24" dataset
/file1.R
no_license
Sargarrius24/ranalytics
R
false
false
145
r
mtcars women ?women dataset git config --global user.email "sarveshchitodkar24@example.com" git config --global user.name "Sargarrius24" dataset
library(dplyr) library(arm) source("par_initializeR.R") source("model_estimateR.R") source("model_initializeR.R") source("mcmc_performR.R") source("model_deterministic_simulateR.R") source("R0_calculateR.R") source("model_predictR.R") source("model_stochastic_simulateR.R") source("model_plotR.R") ############# data_...
/r_scripts/original/state_24.R
no_license
maxsal/covind_seirfansy
R
false
false
3,590
r
library(dplyr) library(arm) source("par_initializeR.R") source("model_estimateR.R") source("model_initializeR.R") source("mcmc_performR.R") source("model_deterministic_simulateR.R") source("R0_calculateR.R") source("model_predictR.R") source("model_stochastic_simulateR.R") source("model_plotR.R") ############# data_...
# Course Project 1/ plot1.R # Set working directory and open libraries needed setwd("~/Coursera/04_Exploratory Data Analysis/project_01") # Record timestamp for down load dateDownloaded <- date() # Download zipped data to working directory and unzip fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fho...
/plot1.R
no_license
robertdesonierjr/ExData_Plotting1
R
false
false
1,014
r
# Course Project 1/ plot1.R # Set working directory and open libraries needed setwd("~/Coursera/04_Exploratory Data Analysis/project_01") # Record timestamp for down load dateDownloaded <- date() # Download zipped data to working directory and unzip fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fho...
require(IWTomics) require(dendextend) setwd("~/Google_Drive/L1_Project/Analysis/IWTomics/IWT_newL1_datasets/") #setwd("/Users/Bruce/Desktop/L1/IWTomics analysis_1000control_1000denovo") # Read files with datasets and features datasets=read.table("/Users/Bruce/Google_Drive/L1/L1_Manuscript/L1_Draft/MBE_Revision/Analys...
/Analysis/IWTomics/newL1_recent_study/IWTomic_newL1_revision.R
permissive
makovalab-psu/L1_Project
R
false
false
17,753
r
require(IWTomics) require(dendextend) setwd("~/Google_Drive/L1_Project/Analysis/IWTomics/IWT_newL1_datasets/") #setwd("/Users/Bruce/Desktop/L1/IWTomics analysis_1000control_1000denovo") # Read files with datasets and features datasets=read.table("/Users/Bruce/Google_Drive/L1/L1_Manuscript/L1_Draft/MBE_Revision/Analys...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fastsimcoal.R \name{gl2sfs} \alias{gl2sfs} \title{Convert a genlight object into a sfs input file} \usage{ gl2sfs(gl, outfile_root = "gl2sfs", outpath = tempdir()) } \arguments{ \item{gl}{the genlight object} \item{outfile_root}{The root of ...
/man/gl2sfs.Rd
no_license
carlopacioni/amplicR
R
false
true
1,447
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fastsimcoal.R \name{gl2sfs} \alias{gl2sfs} \title{Convert a genlight object into a sfs input file} \usage{ gl2sfs(gl, outfile_root = "gl2sfs", outpath = tempdir()) } \arguments{ \item{gl}{the genlight object} \item{outfile_root}{The root of ...
\name{output_contains} \alias{output_contains} \title{Test whether variables are equal to pre-specified values and return feedback} \description{ Function checks whether the ouput of the argument expr can be found in the output of the student's console. } \usage{ output_contains( expr, console.output=DM.console.output ...
/man/output_contains.Rd
no_license
99701a0554/datamindSCT
R
false
false
1,316
rd
\name{output_contains} \alias{output_contains} \title{Test whether variables are equal to pre-specified values and return feedback} \description{ Function checks whether the ouput of the argument expr can be found in the output of the student's console. } \usage{ output_contains( expr, console.output=DM.console.output ...
library(ggplot2) library(ggpubr) library(dplyr) library(viridis) data_ch = read.csv('competitive_hierarchy_mpc_stats_7n.csv') %>% mutate(Hypothesis='Competitive hierarchy') data_ls = read.csv('limiting_similarity_mpc_stats_7n.csv') %>% mutate(Hypothesis='Limiting similarity') data_all = rbind(data_ch, data_ls) %>% se...
/mpc visualize performance.R
no_license
pgauzere/trait_based_prediction_and_control
R
false
false
1,013
r
library(ggplot2) library(ggpubr) library(dplyr) library(viridis) data_ch = read.csv('competitive_hierarchy_mpc_stats_7n.csv') %>% mutate(Hypothesis='Competitive hierarchy') data_ls = read.csv('limiting_similarity_mpc_stats_7n.csv') %>% mutate(Hypothesis='Limiting similarity') data_all = rbind(data_ch, data_ls) %>% se...
library(tidyverse) library(ggtext) library(patchwork) library(showtext) font_add("Times New Roman", regular = "C:/Windows/Fonts/times.ttf", bold = "C:/Windows/Fonts/timesbd.ttf", italic = "C:/Windows/Fonts/timesi.ttf") results <- read.table(here::here("data", "ImmunityV2.txt"),...
/Figures_Checked&Improved_by_CedricScherer/Figure4.R
no_license
EcoDynIZW/Marescot_2020_bioRxiv
R
false
false
8,333
r
library(tidyverse) library(ggtext) library(patchwork) library(showtext) font_add("Times New Roman", regular = "C:/Windows/Fonts/times.ttf", bold = "C:/Windows/Fonts/timesbd.ttf", italic = "C:/Windows/Fonts/timesi.ttf") results <- read.table(here::here("data", "ImmunityV2.txt"),...
options(shiny.maxRequestSize=30*1024^2) library(shiny) library(plotly) library(xlsx) library(mime) shinyServer(function(input, output) { dataset <- reactive({ if(input$dataset$type==mimemap["xlsx"]) { dat <- read.xlsx2(file=input$dataset$datapath, sheetIndex=1, row.names=1, header=TRUE) } ...
/server.R
permissive
fragla/shiny-pca
R
false
false
3,293
r
options(shiny.maxRequestSize=30*1024^2) library(shiny) library(plotly) library(xlsx) library(mime) shinyServer(function(input, output) { dataset <- reactive({ if(input$dataset$type==mimemap["xlsx"]) { dat <- read.xlsx2(file=input$dataset$datapath, sheetIndex=1, row.names=1, header=TRUE) } ...
/PraceDomowe/PD2/gr1/MagierskaZuzanna/MagierskaZuzanna.R
no_license
ramusz1/WizualizacjaDanych2018
R
false
false
804
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OrangeJuiceSorting.R \name{OrangeJuiceSortingRawData} \alias{OrangeJuiceSortingRawData} \title{\code{OrangeJuiceSortingRawData}: an example of an excel file with Sorting data and vocabulary. This excel file can be read by \code{read.df.excel}...
/man/OrangeJuiceSortingRawData.Rd
no_license
HerveAbdi/DistatisR
R
false
true
1,299
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/OrangeJuiceSorting.R \name{OrangeJuiceSortingRawData} \alias{OrangeJuiceSortingRawData} \title{\code{OrangeJuiceSortingRawData}: an example of an excel file with Sorting data and vocabulary. This excel file can be read by \code{read.df.excel}...
library(shiny) # Load Data datamain <- read.csv("./indianstatesunemp.csv") # Use a fluid Bootstrap layout fluidPage( # Give the page a title titlePanel("Percentage of Unemplyment in India and Different State"), p("Author: Sdey [ Date : 8 Sep 2018]"), # Generate a ...
/ShinyApplication/ui.R
no_license
pseudonym484683/Assignment9Week4
R
false
false
1,431
r
library(shiny) # Load Data datamain <- read.csv("./indianstatesunemp.csv") # Use a fluid Bootstrap layout fluidPage( # Give the page a title titlePanel("Percentage of Unemplyment in India and Different State"), p("Author: Sdey [ Date : 8 Sep 2018]"), # Generate a ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloud9_operations.R \name{cloud9_untag_resource} \alias{cloud9_untag_resource} \title{Removes tags from an Cloud9 development environment} \usage{ cloud9_untag_resource(ResourceARN, TagKeys) } \arguments{ \item{ResourceARN}{[required] The Ama...
/cran/paws.developer.tools/man/cloud9_untag_resource.Rd
permissive
paws-r/paws
R
false
true
695
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloud9_operations.R \name{cloud9_untag_resource} \alias{cloud9_untag_resource} \title{Removes tags from an Cloud9 development environment} \usage{ cloud9_untag_resource(ResourceARN, TagKeys) } \arguments{ \item{ResourceARN}{[required] The Ama...
source("https://raw.githubusercontent.com/Shicheng-Guo/GscRbasement/master/GscTools.R") library("meta") library("metafor") library("survival") library("survminer") db<-read.table("https://raw.githubusercontent.com/Shicheng-Guo/AnnotationDatabase/master/ENSG.ENST.ENSP.Symbol.hg19.bed",sep="\t") Symbol2ENSG<-function(Sy...
/mcri/TcGam6AHRmeta.R
no_license
Shicheng-Guo/GscRbasement
R
false
false
9,092
r
source("https://raw.githubusercontent.com/Shicheng-Guo/GscRbasement/master/GscTools.R") library("meta") library("metafor") library("survival") library("survminer") db<-read.table("https://raw.githubusercontent.com/Shicheng-Guo/AnnotationDatabase/master/ENSG.ENST.ENSP.Symbol.hg19.bed",sep="\t") Symbol2ENSG<-function(Sy...
\name{projection_simulation} \alias{projection_simulation} \title{Project Final Event Numbers or Trial Stop Time Based on Interim Analysis Data} \usage{ projection_simulation(snapshot_data, rand_ratio=c(1,1), enroll_continue=FALSE, samplesize=0, blocksize=1,accrual_interval=NULL, accrual_rate=NULL, lambda=NULL...
/man/projection_simulation.Rd
no_license
cran/TwoArmSurvSim
R
false
false
1,985
rd
\name{projection_simulation} \alias{projection_simulation} \title{Project Final Event Numbers or Trial Stop Time Based on Interim Analysis Data} \usage{ projection_simulation(snapshot_data, rand_ratio=c(1,1), enroll_continue=FALSE, samplesize=0, blocksize=1,accrual_interval=NULL, accrual_rate=NULL, lambda=NULL...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { outMatrix <- NULL setInMatrix <- function(im) { x <<-im outMatrix<<-NULL } setOutMatrix <- function(om) outMatrix <<-om ...
/cachematrix.R
no_license
atinchawra/ProgrammingAssignment2
R
false
false
870
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { outMatrix <- NULL setInMatrix <- function(im) { x <<-im outMatrix<<-NULL } setOutMatrix <- function(om) outMatrix <<-om ...
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
/R/ApiResponseSecurityKnowSureThing.r
no_license
bucklbj6038/r-sdk
R
false
false
6,486
r
# Intrinio API # # Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API documentation](https://i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_internal_F_tests.R \name{Fc.test} \alias{Fc.test} \title{F-coefficient test} \usage{ Fc.test(Y1, X1, path.name, info.block) } \arguments{ \item{Y1}{vector of the concatenate indipendent latent variables of H1 hypothesis of the F-coeffici...
/man/Fc.test.Rd
no_license
cran/genpathmox
R
false
true
856
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_internal_F_tests.R \name{Fc.test} \alias{Fc.test} \title{F-coefficient test} \usage{ Fc.test(Y1, X1, path.name, info.block) } \arguments{ \item{Y1}{vector of the concatenate indipendent latent variables of H1 hypothesis of the F-coeffici...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.imp.R \name{plot.imp} \alias{plot.imp} \title{Plot method for objects of class imp} \usage{ \method{plot}{imp}( x, ..., which = 1, ord = 1:ncol(x), colcomb = "missnonmiss", plotvars = NULL, col = c("skyblue", "red"), alph...
/man/plot.imp.Rd
no_license
matthias-da/robCompositions
R
false
true
5,016
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.imp.R \name{plot.imp} \alias{plot.imp} \title{Plot method for objects of class imp} \usage{ \method{plot}{imp}( x, ..., which = 1, ord = 1:ncol(x), colcomb = "missnonmiss", plotvars = NULL, col = c("skyblue", "red"), alph...
\name{discretise} \alias{discretise} \title{ Safely Convert Point Pattern Window to Binary Mask } \description{ Given a point pattern, discretise its window by converting it to a binary pixel mask, adjusting the mask so that it still contains all the points. } \usage{ discretise(X, eps = NULL, dimyx = NULL, x...
/man/discretise.Rd
no_license
rubak/spatstat
R
false
false
2,849
rd
\name{discretise} \alias{discretise} \title{ Safely Convert Point Pattern Window to Binary Mask } \description{ Given a point pattern, discretise its window by converting it to a binary pixel mask, adjusting the mask so that it still contains all the points. } \usage{ discretise(X, eps = NULL, dimyx = NULL, x...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MH.R \name{MH} \alias{MH} \title{Simulated annealing in one dimension} \usage{ MH(T = 1, x0, trKern = dnorm, sampler, N = 1000, bounds) } \arguments{ \item{T}{Double - Temperature.} \item{x0}{Double - Starting value.} \item{trKern}{Function...
/man/MH.Rd
no_license
PhilippVWC/myBayes
R
false
true
2,846
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MH.R \name{MH} \alias{MH} \title{Simulated annealing in one dimension} \usage{ MH(T = 1, x0, trKern = dnorm, sampler, N = 1000, bounds) } \arguments{ \item{T}{Double - Temperature.} \item{x0}{Double - Starting value.} \item{trKern}{Function...
data = read.table(url('https://raw.githubusercontent.com/EmBro/SharedElectric/master/EngazeData1.csv'), dec = ',', sep = ';', header = T, row.names = 1) data = as.matrix(data) library(lattice) d1 = data[,1:7] d2 = data[,8:15] d3 = data[,16:22] r = cor(data) levelplot(r, scales=list(x=list(...
/PLS_Engaze.R
no_license
EmBro/SharedElectric
R
false
false
1,139
r
data = read.table(url('https://raw.githubusercontent.com/EmBro/SharedElectric/master/EngazeData1.csv'), dec = ',', sep = ';', header = T, row.names = 1) data = as.matrix(data) library(lattice) d1 = data[,1:7] d2 = data[,8:15] d3 = data[,16:22] r = cor(data) levelplot(r, scales=list(x=list(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/msmediate.R \name{msmediate.weights} \alias{msmediate.weights} \title{Causal mediation analysis in multisite trials in the presence of complex sample and survey designs and non-random nonresponse} \usage{ msmediate.weights( data, ...
/man/msmediate.weights.Rd
no_license
cran/MultisiteMediation
R
false
true
3,342
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/msmediate.R \name{msmediate.weights} \alias{msmediate.weights} \title{Causal mediation analysis in multisite trials in the presence of complex sample and survey designs and non-random nonresponse} \usage{ msmediate.weights( data, ...
#This script attempts to figure out which employees left the firm and when #by using the ldap files by month and seeing the differences library(data.table) library(plyr) library(ggplot2) library(ggthemes) library(scales) library(dplyr) library(timeDate) Dec_09_df <- fread('https://s3.amazonaws.com/daen-690-insider-thr...
/departures.R
no_license
defstack/daen-690-insider-threat
R
false
false
3,863
r
#This script attempts to figure out which employees left the firm and when #by using the ldap files by month and seeing the differences library(data.table) library(plyr) library(ggplot2) library(ggthemes) library(scales) library(dplyr) library(timeDate) Dec_09_df <- fread('https://s3.amazonaws.com/daen-690-insider-thr...
epiviz = function(){ list( div( id = "epiviz", includeMarkdown(file.path("text", "epiviz.md")) ) ) } home_home = function(){ list( div( id = "home_home", includeMarkdown(file.path("text", "home_home.md")) ) ) } home_about = function(){ list( div( id = "home_...
/app/helpers/Output_main.R
permissive
Osmahmoud/EpiViz
R
false
false
1,745
r
epiviz = function(){ list( div( id = "epiviz", includeMarkdown(file.path("text", "epiviz.md")) ) ) } home_home = function(){ list( div( id = "home_home", includeMarkdown(file.path("text", "home_home.md")) ) ) } home_about = function(){ list( div( id = "home_...
testlist <- list(x = structure(c(7.2911220195564e-304, 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, 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, 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, ...
/multivariance/inst/testfiles/doubleCenterBiasCorrected/libFuzzer_doubleCenterBiasCorrected/doubleCenterBiasCorrected_valgrind_files/1612884192-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
422
r
testlist <- list(x = structure(c(7.2911220195564e-304, 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, 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, 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, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReadWeatherInputs.R \name{ReadWeatherInputs} \alias{ReadWeatherInputs} \title{Read and process input weather time-series} \usage{ ReadWeatherInputs(FileLocation, ClockStruct) } \arguments{ \item{FileLocation}{file locations} \item{ClockStruc...
/man/ReadWeatherInputs.Rd
no_license
bluegulcy/aquacrop
R
false
true
491
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReadWeatherInputs.R \name{ReadWeatherInputs} \alias{ReadWeatherInputs} \title{Read and process input weather time-series} \usage{ ReadWeatherInputs(FileLocation, ClockStruct) } \arguments{ \item{FileLocation}{file locations} \item{ClockStruc...
testlist <- list(type = 0L, z = 3.68227125845481e-320) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609890917-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
108
r
testlist <- list(type = 0L, z = 3.68227125845481e-320) result <- do.call(esreg::G1_fun,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simer.Utility.R \name{remove_bigmatrix} \alias{remove_bigmatrix} \title{Remove big.matrix safely} \usage{ remove_bigmatrix(x, desc_suffix = ".geno.desc", bin_suffix = ".geno.bin") } \arguments{ \item{x}{filename of big.matrix} \item{desc_s...
/man/remove_bigmatrix.Rd
permissive
ntduc11/SIMER
R
false
true
858
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/simer.Utility.R \name{remove_bigmatrix} \alias{remove_bigmatrix} \title{Remove big.matrix safely} \usage{ remove_bigmatrix(x, desc_suffix = ".geno.desc", bin_suffix = ".geno.bin") } \arguments{ \item{x}{filename of big.matrix} \item{desc_s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genePlot.R \name{genePlot} \alias{genePlot} \title{Plot of means and inter-quantile ranges of all genes.} \usage{ genePlot(Y, index = NULL, legend = NULL, col.h = "red", title) } \arguments{ \item{Y}{A matrix of gene expression values or an o...
/man/genePlot.Rd
no_license
SaskiaFreytag/RUVcorr
R
false
true
1,223
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genePlot.R \name{genePlot} \alias{genePlot} \title{Plot of means and inter-quantile ranges of all genes.} \usage{ genePlot(Y, index = NULL, legend = NULL, col.h = "red", title) } \arguments{ \item{Y}{A matrix of gene expression values or an o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/choose_directory.R \name{choose_directory} \alias{choose_directory} \title{Choose directory} \usage{ choose_directory(initial_dir = getwd(), method = select_directory_method(), title = NULL) } \arguments{ \item{initial_dir}{Path to folder f...
/man/choose_directory.Rd
permissive
matiasandina/choices
R
false
true
848
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/choose_directory.R \name{choose_directory} \alias{choose_directory} \title{Choose directory} \usage{ choose_directory(initial_dir = getwd(), method = select_directory_method(), title = NULL) } \arguments{ \item{initial_dir}{Path to folder f...
\name{filter.matrix} \alias{filter.matrix} \title{Filtering for Numeric Images} \description{ Performs filtering, such as median filtering, on matrices corresponding to numeric images } \usage{ filter.matrix(image.data, square.edge = 5, filter.function = "median", hist.correct = F) } \arguments{ \item{image.data}{num...
/man/filter.matrix.Rd
no_license
dami82/learningMedicine
R
false
false
864
rd
\name{filter.matrix} \alias{filter.matrix} \title{Filtering for Numeric Images} \description{ Performs filtering, such as median filtering, on matrices corresponding to numeric images } \usage{ filter.matrix(image.data, square.edge = 5, filter.function = "median", hist.correct = F) } \arguments{ \item{image.data}{num...
#' @name readSDMX #' @aliases readSDMX #' @title readSDMX #' @description \code{readSDMX} is the main function to use to read SDMX data #' #' @usage readSDMX(file, isURL, #' provider, providerId, agencyId, resource, resourceId, version, #' flowRef, key, key.mode, start, end, dsd, ...
/rsdmx/R/readSDMX.R
no_license
ingted/R-Examples
R
false
false
15,327
r
#' @name readSDMX #' @aliases readSDMX #' @title readSDMX #' @description \code{readSDMX} is the main function to use to read SDMX data #' #' @usage readSDMX(file, isURL, #' provider, providerId, agencyId, resource, resourceId, version, #' flowRef, key, key.mode, start, end, dsd, ...
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1....
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615828816-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
878
r
testlist <- list(doy = numeric(0), latitude = numeric(0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e-308, -3.52601820453991e+43, -1....
testlist <- list(barrier = 0, ben = numeric(0), fee = 0, penalty = numeric(0), spot = c(-4.20646884065946e-296, 9.62209200590935e-306, -1.55863471486258e-19, 5.83536526617829e-310, 1.7011169566179e-304, -6.24349709331995e+144, 8.31380880911123e-275, 3.78576699573357e-270, NaN, 3.78531751508369e-270, ...
/valuer/inst/testfiles/calc_account/libFuzzer_calc_account/calc_account_valgrind_files/1616985869-test.R
no_license
akhikolla/updatedatatype-list4
R
false
false
619
r
testlist <- list(barrier = 0, ben = numeric(0), fee = 0, penalty = numeric(0), spot = c(-4.20646884065946e-296, 9.62209200590935e-306, -1.55863471486258e-19, 5.83536526617829e-310, 1.7011169566179e-304, -6.24349709331995e+144, 8.31380880911123e-275, 3.78576699573357e-270, NaN, 3.78531751508369e-270, ...
d=read.table(file.choose(),header=TRUE,sep="\t") library(msm) Q <- rbind(c(0, 0.03333,0.0715385), c(.280 , 0, 0.320), c(.23050,0.3677, 0)) rownames(Q) <- colnames(Q) <- c("controle", "semi-controle","inacceptable") ini matrix default: Q.crude <- crudeinits.msm(state ~ timeC, ptnum, data=d, qmatrix=Q) as...
/Markov process.R
no_license
abdellahbsf/Application-of-Markov-model-in-Asthma
R
false
false
3,266
r
d=read.table(file.choose(),header=TRUE,sep="\t") library(msm) Q <- rbind(c(0, 0.03333,0.0715385), c(.280 , 0, 0.320), c(.23050,0.3677, 0)) rownames(Q) <- colnames(Q) <- c("controle", "semi-controle","inacceptable") ini matrix default: Q.crude <- crudeinits.msm(state ~ timeC, ptnum, data=d, qmatrix=Q) as...
\name{cuGraphicsResourceGetMappedPointer} \alias{cuGraphicsResourceGetMappedPointer} \title{Get a device pointer through which to access a mapped graphics resource.} \description{ Returns a pointer through which the mapped graphics resource \code{resource} may be accessed. Returns in \code{pSize} the size of the mem...
/man/cuGraphicsResourceGetMappedPointer.Rd
no_license
xfbingshan/RCUDA
R
false
false
803
rd
\name{cuGraphicsResourceGetMappedPointer} \alias{cuGraphicsResourceGetMappedPointer} \title{Get a device pointer through which to access a mapped graphics resource.} \description{ Returns a pointer through which the mapped graphics resource \code{resource} may be accessed. Returns in \code{pSize} the size of the mem...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2839 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2838 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2838 c c Input Parameter (command line, fil...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Basler/terminator/stmt31_22_23/stmt31_22_23.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
705
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2839 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2838 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2838 c c Input Parameter (command line, fil...
##----------------------------------------------------------------------------------- ## Download zip datasets fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" fileName <- "ElectricPowerConsumptionData.zip" download.file(fileURL, destfile = fileName) downloadDate <- dat...
/plot1.R
no_license
reivaj23/ExData_Plotting1
R
false
false
1,658
r
##----------------------------------------------------------------------------------- ## Download zip datasets fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" fileName <- "ElectricPowerConsumptionData.zip" download.file(fileURL, destfile = fileName) downloadDate <- dat...
# Load packages using script copied from: # https://www.r-bloggers.com/install-and-load-missing-specifiedneeded-packages-on-the-fly/ # needed packages for a job need <- c("shiny", "shinythemes", "ggplot2", "dplyr", "rlang", "data.table", "stringi", #...
/global/load_packages.R
no_license
cheriels/2017ops_beta
R
false
false
889
r
# Load packages using script copied from: # https://www.r-bloggers.com/install-and-load-missing-specifiedneeded-packages-on-the-fly/ # needed packages for a job need <- c("shiny", "shinythemes", "ggplot2", "dplyr", "rlang", "data.table", "stringi", #...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/wiod.R \docType{data} \name{output98} \alias{output98} \title{WIOD 1998 output} \description{ WIOD 1998 final output }
/man/output98.Rd
no_license
cran/wiod
R
false
false
216
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/wiod.R \docType{data} \name{output98} \alias{output98} \title{WIOD 1998 output} \description{ WIOD 1998 final output }
#So: cauchy at 0, 1 seems to not converge on a a straightforward result with iter=300,warmup=200, or even warmup=1500, iter=2000. This may be a problem. library(rstan) source("stanlba/lba_rl_joint_setup.R") require(R.utils) options(mc.cores = 6) source("stanlba/singlelevelmodel/lba_rl_joint_v1_functions.R") source("st...
/stanlba/singlelevelmodel/lba_rl_joint_v11l.R
permissive
bjsmith/reversallearning
R
false
false
5,797
r
#So: cauchy at 0, 1 seems to not converge on a a straightforward result with iter=300,warmup=200, or even warmup=1500, iter=2000. This may be a problem. library(rstan) source("stanlba/lba_rl_joint_setup.R") require(R.utils) options(mc.cores = 6) source("stanlba/singlelevelmodel/lba_rl_joint_v1_functions.R") source("st...
#' Import DarT data to R #' #' Internal function called by gl.read.dart #' @param filename path to file (csv file only currently) #' @param nas a character specifying NAs (default is "-") #' @param topskip a number specifying the number of rows to be skipped. If not provided the number of rows to be skipped are "guesse...
/R/read.dart.R
no_license
hakancengiz1/dartR
R
false
false
4,658
r
#' Import DarT data to R #' #' Internal function called by gl.read.dart #' @param filename path to file (csv file only currently) #' @param nas a character specifying NAs (default is "-") #' @param topskip a number specifying the number of rows to be skipped. If not provided the number of rows to be skipped are "guesse...
# Question 1: have total emissions from PM2.5 decreased in the United States from 1999 to 2008? # load data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # load packages library(tidyverse) require(scales) #convert type to factor class NEI$type <- as.factor(NEI$type) # selec...
/plot1.R
no_license
byanuaria/Exploratory-Data-Analysis2
R
false
false
842
r
# Question 1: have total emissions from PM2.5 decreased in the United States from 1999 to 2008? # load data NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # load packages library(tidyverse) require(scales) #convert type to factor class NEI$type <- as.factor(NEI$type) # selec...
setwd("~/Documents/R program") unzip("household.zip") t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) t$Date <- as.Date(t$Date, "%d/%m/%Y") t <- subset(t,Date >= as.D...
/Course Project 1.R
no_license
gracexu222/ExData_Plotting1
R
false
false
1,891
r
setwd("~/Documents/R program") unzip("household.zip") t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric')) t$Date <- as.Date(t$Date, "%d/%m/%Y") t <- subset(t,Date >= as.D...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mem.R \name{detrend} \alias{detrend} \alias{deTrend} \title{detrend} \usage{ detrend(.data) } \arguments{ \item{.data}{A data.frame containing variable 'Time' as the first column and a second-column from which to remove the mean and trend.} }...
/man/detrend.Rd
permissive
WilliamCooper/Ranadu
R
false
true
1,018
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mem.R \name{detrend} \alias{detrend} \alias{deTrend} \title{detrend} \usage{ detrend(.data) } \arguments{ \item{.data}{A data.frame containing variable 'Time' as the first column and a second-column from which to remove the mean and trend.} }...
to.read=file("ARS-3hr.1gd4r", "rb") x =readBin(to.read, numeric(), n=5849, size=4, endian="big") close(to.read) # model 1 beta1=2.0 beta2=0.8 xbar=mean(x) alpha1=0 alpha2=(beta1-beta2)*xbar n=length(x) sigma1=0.02 sigma2=0.01 sigmax2=mean( (x-xbar)^2 ) y1=alpha1+beta1*x + rnorm(n, 0, sigma1) y2=alph...
/ytian/Error-modeling/Performance-metrics/Example/Soil_moist/add-errr-to-ARS.R
no_license
yudong-tian/ESDR
R
false
false
2,253
r
to.read=file("ARS-3hr.1gd4r", "rb") x =readBin(to.read, numeric(), n=5849, size=4, endian="big") close(to.read) # model 1 beta1=2.0 beta2=0.8 xbar=mean(x) alpha1=0 alpha2=(beta1-beta2)*xbar n=length(x) sigma1=0.02 sigma2=0.01 sigmax2=mean( (x-xbar)^2 ) y1=alpha1+beta1*x + rnorm(n, 0, sigma1) y2=alph...
# library(testthat) library(vcfR) context("vcfRtidy functions") data("vcfR_example") #data("vcfR_test") ##### ##### ##### ##### ##### # vcf_field_names test_that("vcf_field_names works",{ data("vcfR_example") Z <- vcf_field_names(vcf, tag = "INFO") expect_is(Z, "tbl_df") expect_is(Z, "tbl") expect_i...
/tests/testthat/test_vcfRtidy.R
no_license
gravitytrope/vcfR
R
false
false
2,999
r
# library(testthat) library(vcfR) context("vcfRtidy functions") data("vcfR_example") #data("vcfR_test") ##### ##### ##### ##### ##### # vcf_field_names test_that("vcf_field_names works",{ data("vcfR_example") Z <- vcf_field_names(vcf, tag = "INFO") expect_is(Z, "tbl_df") expect_is(Z, "tbl") expect_i...
library(lme4) library(tidyverse) library(lubridate) library(ggplot2) library(readr) library(dplyr) library(doBy) ## for bootstrapping 95% confidence intervals -- from Mike Frank https://github.com/langcog/KTE/blob/master/mcf.useful.R library(bootstrap) theta <- function(x,xdata,na.rm=T) {mean(xdata[x],na.rm=na.rm)} ci....
/Expt2_Words/import_analyze.r
no_license
hughrabagliati/DistortedSpeech
R
false
false
3,187
r
library(lme4) library(tidyverse) library(lubridate) library(ggplot2) library(readr) library(dplyr) library(doBy) ## for bootstrapping 95% confidence intervals -- from Mike Frank https://github.com/langcog/KTE/blob/master/mcf.useful.R library(bootstrap) theta <- function(x,xdata,na.rm=T) {mean(xdata[x],na.rm=na.rm)} ci....
library(e1071) require(RPostgreSQL) require(MASS) require(class) library(RTextTools) # create a connection # loads the PostgreSQL driver drv <- dbDriver("PostgreSQL") # creates a connection to the postgres database # note that "con" will be used later in each connection to the database con <- dbConnect(drv, dbname = "...
/clustering_api/rscripts/Naive-Bayes.R
no_license
Abir-IA/Clustering-GA
R
false
false
5,275
r
library(e1071) require(RPostgreSQL) require(MASS) require(class) library(RTextTools) # create a connection # loads the PostgreSQL driver drv <- dbDriver("PostgreSQL") # creates a connection to the postgres database # note that "con" will be used later in each connection to the database con <- dbConnect(drv, dbname = "...