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
########################################################################################## #### Testing fractional cointegration ####### #### Marmol, Velasco (2004) ####### #######################...
/LongMemoryTS/R/MV04_LM.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
11,244
r
########################################################################################## #### Testing fractional cointegration ####### #### Marmol, Velasco (2004) ####### #######################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/popgenreport.r \name{popgenreport} \alias{popgenreport} \title{This is the main function of the package. It analyses an object of class \code{\link{genind}} and then creates a report containing the results of the analysis. There are several r...
/man/popgenreport.Rd
no_license
cleberchaves/PopGenReport
R
false
true
10,867
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/popgenreport.r \name{popgenreport} \alias{popgenreport} \title{This is the main function of the package. It analyses an object of class \code{\link{genind}} and then creates a report containing the results of the analysis. There are several r...
#' Group knockoffs of discrete Markov chains #' #' This function constructs knockoffs of variables distributed as a discrete Markov chain. #' #' @param X an integer matrix of size n-by-p containing the original variables. #' @param pInit an array of length K, containing the marginal distribution of the states for the f...
/R/knockoffs.R
no_license
msesia/snpknock
R
false
false
7,485
r
#' Group knockoffs of discrete Markov chains #' #' This function constructs knockoffs of variables distributed as a discrete Markov chain. #' #' @param X an integer matrix of size n-by-p containing the original variables. #' @param pInit an array of length K, containing the marginal distribution of the states for the f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.r \name{isIUPAC} \alias{isIUPAC} \title{Is IUPAC} \usage{ isIUPAC(string) } \arguments{ \item{string}{An atomic character} } \value{ A logical, True if all IUPAC false otherwise } \description{ Check if a string contains only iupac chara...
/man/isIUPAC.Rd
no_license
alexjgriffith/mT1
R
false
true
377
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main.r \name{isIUPAC} \alias{isIUPAC} \title{Is IUPAC} \usage{ isIUPAC(string) } \arguments{ \item{string}{An atomic character} } \value{ A logical, True if all IUPAC false otherwise } \description{ Check if a string contains only iupac chara...
require(knitr) require(markdown) require(rmarkdown) require(reshape2) #Returns in the -180->180 range lon_convert<-function(lon){ distFrom180=lon-180. return(ifelse( distFrom180<0, lon, -(180-distFrom180) )) } #Returns in the 0->360 range lon_convert2<-function(lon){ return(ifelse(lon<0,360+lon,lon)...
/analysis/blobmetrics/generateReport.R
permissive
ClimateGlobalChange/tempestextremes
R
false
false
2,057
r
require(knitr) require(markdown) require(rmarkdown) require(reshape2) #Returns in the -180->180 range lon_convert<-function(lon){ distFrom180=lon-180. return(ifelse( distFrom180<0, lon, -(180-distFrom180) )) } #Returns in the 0->360 range lon_convert2<-function(lon){ return(ifelse(lon<0,360+lon,lon)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hill_utils.R, R/tcplHillACXX.R, R/tcplHillConc.R, R/tcplHillVal.R \name{Hill model utilites} \alias{Hill model utilites} \alias{tcplHillACXX} \alias{tcplHillConc} \alias{tcplHillVal} \title{Functions to solve the Hill model} \usage{ tcplHillA...
/man/hill_utils.Rd
no_license
ldecicco-USGS/tcpl
R
false
true
2,338
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hill_utils.R, R/tcplHillACXX.R, R/tcplHillConc.R, R/tcplHillVal.R \name{Hill model utilites} \alias{Hill model utilites} \alias{tcplHillACXX} \alias{tcplHillConc} \alias{tcplHillVal} \title{Functions to solve the Hill model} \usage{ tcplHillA...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annotate.R \name{biomart_snp_info} \alias{biomart_snp_info} \title{Download SNP-wise annotations from Biomart} \source{ \href{https://bioconductor.org/packages/release/bioc/html/biomaRt.html}{biomaRt} } \usage{ biomart_snp_info( snp_list, ...
/man/biomart_snp_info.Rd
permissive
UKDRI/echolocatoR
R
false
true
1,155
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annotate.R \name{biomart_snp_info} \alias{biomart_snp_info} \title{Download SNP-wise annotations from Biomart} \source{ \href{https://bioconductor.org/packages/release/bioc/html/biomaRt.html}{biomaRt} } \usage{ biomart_snp_info( snp_list, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/respiratory-condition.R \name{resp_condition_fun1} \alias{resp_condition_fun1} \title{resp_condition_fun1} \usage{ resp_condition_fun1(DHHGAGE_cont, CCC_091, CCC_031) } \arguments{ \item{DHHGAGE_cont}{continuous age variable.} \it...
/man/resp_condition_fun1.Rd
permissive
cran/cchsflow
R
false
true
2,271
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/respiratory-condition.R \name{resp_condition_fun1} \alias{resp_condition_fun1} \title{resp_condition_fun1} \usage{ resp_condition_fun1(DHHGAGE_cont, CCC_091, CCC_031) } \arguments{ \item{DHHGAGE_cont}{continuous age variable.} \it...
\name{FItrain} \docType{data} \alias{FItrain} \title{Fraud Training Data} \description{Complete observations of Web financial transactions. Used with TrainFastImputation to prepare for imputing individual transactions as they come in.} \format{ A data frame with 10 variables and 10000 observations. \enum...
/archive/v1.0/FastImputation/man/FItrain.Rd
no_license
shaptonstahl/FastImputation
R
false
false
1,546
rd
\name{FItrain} \docType{data} \alias{FItrain} \title{Fraud Training Data} \description{Complete observations of Web financial transactions. Used with TrainFastImputation to prepare for imputing individual transactions as they come in.} \format{ A data frame with 10 variables and 10000 observations. \enum...
# load the package that contains the full dataset and the data viz package. dataset <- read.csv("categorization.csv", sep = ",", header=T) # splitting the dataset into the training set and test set # install.packages('caTools') library(caTools) set.seed(123) # split = sample.split(dataset$offer, ...
/categorization_ml.R
no_license
BrunoVianaSP/shiny-poc
R
false
false
1,539
r
# load the package that contains the full dataset and the data viz package. dataset <- read.csv("categorization.csv", sep = ",", header=T) # splitting the dataset into the training set and test set # install.packages('caTools') library(caTools) set.seed(123) # split = sample.split(dataset$offer, ...
library(ggplot2) library(reshape2) library(maptools) library(plyr) library(dplyr) library(ggthemes) library(mapproj) require(gridExtra) cdb <- read.csv("~/MSPA/Kaggle/cities_r2.csv") cdb<-transform(cdb,location=colsplit(location,pattern=",",names=c("lat","lon"))) #Add region information region <- read.csv("~/MSPA/Kag...
/Indian Cities Analysis/indian_city_shapefile_analysis.R
no_license
ShreshKulkarni/Data-Visualization
R
false
false
16,726
r
library(ggplot2) library(reshape2) library(maptools) library(plyr) library(dplyr) library(ggthemes) library(mapproj) require(gridExtra) cdb <- read.csv("~/MSPA/Kaggle/cities_r2.csv") cdb<-transform(cdb,location=colsplit(location,pattern=",",names=c("lat","lon"))) #Add region information region <- read.csv("~/MSPA/Kag...
library(tidyverse) #Count petiolaris inversion frequencies for later filtering sample_info <- read_tsv("resources/sample_info_file_all_samples_wildspecies.tsv") %>% rename(sample=name) inversions<- read_tsv("MDS_outliers/Ha412HO/all/Ha412HO_inv.v3.inversions.regions.v1.txt") %>% filter(species == "Petiolaris") %...
/scripts/petiolaris_subspecies_inv_freq.R
no_license
owensgl/wild_gwas_2018
R
false
false
1,527
r
library(tidyverse) #Count petiolaris inversion frequencies for later filtering sample_info <- read_tsv("resources/sample_info_file_all_samples_wildspecies.tsv") %>% rename(sample=name) inversions<- read_tsv("MDS_outliers/Ha412HO/all/Ha412HO_inv.v3.inversions.regions.v1.txt") %>% filter(species == "Petiolaris") %...
Rcpp::sourceCpp('src/utility.cpp') txt <- rep(paste0(letters, collapse=' '), 10000) toks <- tokens(txt, hash=FALSE) identical( qatd_cpp_remove_chr_list(toks, 'd')[[1]], lapply(toks, function(x) x <- x[which(x != "d")])[[1]] ) microbenchmark::microbenchmark( qatd_cpp_remove_chr_list(toks, 'd'), lapply(toks, f...
/tests/benchmarks/benchmark_omission/string.R
no_license
plablo09/quanteda
R
false
false
376
r
Rcpp::sourceCpp('src/utility.cpp') txt <- rep(paste0(letters, collapse=' '), 10000) toks <- tokens(txt, hash=FALSE) identical( qatd_cpp_remove_chr_list(toks, 'd')[[1]], lapply(toks, function(x) x <- x[which(x != "d")])[[1]] ) microbenchmark::microbenchmark( qatd_cpp_remove_chr_list(toks, 'd'), lapply(toks, f...
LinAUC = function(x, y) # down="Linear" { # Author: Kyun-Seop Bae k@acr.kr # Last modification: 2017.7.24 # Called by: IntAUC # Calls: none except base # INPUT # x: time or similar vector # y: concentration or similar vector # RETURNS Result = c(AUC = NA_real_, # AUC by linear down method ...
/R/LinAUC.R
no_license
asancpt/NonCompart
R
false
false
627
r
LinAUC = function(x, y) # down="Linear" { # Author: Kyun-Seop Bae k@acr.kr # Last modification: 2017.7.24 # Called by: IntAUC # Calls: none except base # INPUT # x: time or similar vector # y: concentration or similar vector # RETURNS Result = c(AUC = NA_real_, # AUC by linear down method ...
#--------------------------------Social Media Analytics-------------------------------# #### #### #### This file is used to download tweets and save them as RData files #### #### Team members: Stephanie Beyer Diaz, Manoj Purushot...
/01_processing_tweets.R
no_license
stephieseg/SMA_Assignment
R
false
false
22,770
r
#--------------------------------Social Media Analytics-------------------------------# #### #### #### This file is used to download tweets and save them as RData files #### #### Team members: Stephanie Beyer Diaz, Manoj Purushot...
## ## STEP 0: Load all the required libraries. ## library("markdown") library("knitr") library("ggplot2") library("reshape2") library("plyr") library("scales") ## ## STEP 1: Define the local file names. ## zipfile <- "./activity.zip" datafile <- "./activity.csv" ## ## STEP 2: Check to see whether the .csv file exist...
/testScript.R
no_license
bxs6198/RepData_PeerAssessment1
R
false
false
5,783
r
## ## STEP 0: Load all the required libraries. ## library("markdown") library("knitr") library("ggplot2") library("reshape2") library("plyr") library("scales") ## ## STEP 1: Define the local file names. ## zipfile <- "./activity.zip" datafile <- "./activity.csv" ## ## STEP 2: Check to see whether the .csv file exist...
# !! PLEASE DO NOT EDIT THIS FILE !! # ** make a copy and edit that instead ** # ________________________________________________ # input parameters # sigma2: 0 < value < 5 sig2 <- 3.2 # e.g. "anas_krystallinus" species.name <- "flapjack_octopus" # e.g. "red" color <- "#FF7F00" # tip: pick a col...
/params/flapjack_octopus.R
permissive
OlgaLu/Collaborative-RStudio-GitHub
R
false
false
425
r
# !! PLEASE DO NOT EDIT THIS FILE !! # ** make a copy and edit that instead ** # ________________________________________________ # input parameters # sigma2: 0 < value < 5 sig2 <- 3.2 # e.g. "anas_krystallinus" species.name <- "flapjack_octopus" # e.g. "red" color <- "#FF7F00" # tip: pick a col...
########### HW3_3 ############### ################################ ######### HW3_3a ################# fx <- function(x, a, b){(1/beta(a,b))*x^(a-1)*(1-x)^(b-1)} var<-seq(0,1,length=1000) as <- c(0.5, 1,0.5, 1, 2, 5) bs <- c(0.5, 0.5, 1, 1, 2, 10) plot(var, fx(x=var, a=as[1], b=bs[1]), type="l", lwd=4, xlab="x", ...
/HW3/HW3_q3.R
no_license
karaesmen/StatisticalComputing
R
false
false
5,761
r
########### HW3_3 ############### ################################ ######### HW3_3a ################# fx <- function(x, a, b){(1/beta(a,b))*x^(a-1)*(1-x)^(b-1)} var<-seq(0,1,length=1000) as <- c(0.5, 1,0.5, 1, 2, 5) bs <- c(0.5, 0.5, 1, 1, 2, 10) plot(var, fx(x=var, a=as[1], b=bs[1]), type="l", lwd=4, xlab="x", ...
context("v2.0 token other") tenant <- Sys.getenv("AZ_TEST_TENANT_ID") app <- Sys.getenv("AZ_TEST_APP_ID") username <- Sys.getenv("AZ_TEST_USERNAME") password <- Sys.getenv("AZ_TEST_PASSWORD") native_app <- Sys.getenv("AZ_TEST_NATIVE_APP_ID") cert_app <- Sys.getenv("AZ_TEST_CERT_APP_ID") cert_file <- Sys.getenv...
/tests/testthat/test21_v2_token_misc.R
no_license
cran/AzureAuth
R
false
false
7,558
r
context("v2.0 token other") tenant <- Sys.getenv("AZ_TEST_TENANT_ID") app <- Sys.getenv("AZ_TEST_APP_ID") username <- Sys.getenv("AZ_TEST_USERNAME") password <- Sys.getenv("AZ_TEST_PASSWORD") native_app <- Sys.getenv("AZ_TEST_NATIVE_APP_ID") cert_app <- Sys.getenv("AZ_TEST_CERT_APP_ID") cert_file <- Sys.getenv...
# CART script crimest <- file.choose() crimest <- read_csv(crimest) str(crimest) # remove from modeling data: year(only 3 years, not enough year data), # block(factor w 28937levels, not precise, not giving any beneficial info), # zipcode(as.int but actually a factor w/ over 53 levels, max allowed by randomForest), ...
/scripts/5CART_model.R
no_license
Lyttia/Springboard_Capstone_Project
R
false
false
4,946
r
# CART script crimest <- file.choose() crimest <- read_csv(crimest) str(crimest) # remove from modeling data: year(only 3 years, not enough year data), # block(factor w 28937levels, not precise, not giving any beneficial info), # zipcode(as.int but actually a factor w/ over 53 levels, max allowed by randomForest), ...
LoadLibraries <- function(){ library( BigVAR ) library( readxl ) library( lattice ) library( strucchange ) library( vars ) library( psych ) library( tseries ) library( tidyverse ) library( RColorBrewer ) library( devtools ) library( frequencyConnectedness ) library( stats ) library( Performanc...
/DY_LoadLibraries.R
no_license
shizelong1985/FinancialNetworks
R
false
false
471
r
LoadLibraries <- function(){ library( BigVAR ) library( readxl ) library( lattice ) library( strucchange ) library( vars ) library( psych ) library( tseries ) library( tidyverse ) library( RColorBrewer ) library( devtools ) library( frequencyConnectedness ) library( stats ) library( Performanc...
library(shiny) library(shinyjs) library(shinyhelper) library(leaflet) library(rgdal) library(leaflet.extras) library(shinydashboard) library(viridis) library(shinythemes) library(DT) library(dplyr) library(stringr) library(lettercase) library(ggplot2) library(plotly) #source code that gets vector of sites for incide...
/CR_app.R
no_license
labouz/costa-rica
R
false
false
25,612
r
library(shiny) library(shinyjs) library(shinyhelper) library(leaflet) library(rgdal) library(leaflet.extras) library(shinydashboard) library(viridis) library(shinythemes) library(DT) library(dplyr) library(stringr) library(lettercase) library(ggplot2) library(plotly) #source code that gets vector of sites for incide...
# ==== GLEE ==== source("glee-r-funcs.r") load("A.RData") for (j in 1:ncol(A)) { ind = which(is.na(A[,j])) A[ind,j] = 0 } load("Acc.RData") # comp = "prep-wt"; Data = cbind(Acc, A[,c(2,6,10,1,5,9)]) # comp = "oop-wt"; Data = cbind(Acc, A[,c(3,7,11,1,5,9)]) # comp = "triple-wt"; Data = cbind(Acc, A[,c(4,8,12,1,5,...
/2015-04-15/run-glee.r
no_license
lponnala/omics
R
false
false
1,166
r
# ==== GLEE ==== source("glee-r-funcs.r") load("A.RData") for (j in 1:ncol(A)) { ind = which(is.na(A[,j])) A[ind,j] = 0 } load("Acc.RData") # comp = "prep-wt"; Data = cbind(Acc, A[,c(2,6,10,1,5,9)]) # comp = "oop-wt"; Data = cbind(Acc, A[,c(3,7,11,1,5,9)]) # comp = "triple-wt"; Data = cbind(Acc, A[,c(4,8,12,1,5,...
library(ShortRead) library(stringdist) library(tidyverse) library(ggbeeswarm) library(viridis) #for example ... rundir='/data/Covid/swabseq/runs/v17/' outdir='/data/Covid/swabseq/analysis/v17/' countTables=readRDS(paste0(rundir, 'countTable.RDS')) df=do.call('rbind', countTables) df$virus_copy=as.factor...
/analysis/v17/analysis.R
permissive
joshsbloom/swabseq
R
false
false
6,905
r
library(ShortRead) library(stringdist) library(tidyverse) library(ggbeeswarm) library(viridis) #for example ... rundir='/data/Covid/swabseq/runs/v17/' outdir='/data/Covid/swabseq/analysis/v17/' countTables=readRDS(paste0(rundir, 'countTable.RDS')) df=do.call('rbind', countTables) df$virus_copy=as.factor...
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
/IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609860678-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
729
r
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
# simple R code # for calculating body surface area of patient using body weight (kg) and height (cm) # employing the Mosteller Equation # sample wt and ht wt <- 70 ht <- 170 bsa <- sqrt( wt * ht / 3600 ) print(bsa) # as a function bsa_mosteller <- function(wt, ht) return( sqrt( wt * ht / 3600 ) )
/bsa.R
no_license
ylee03/r_for_students_2021
R
false
false
312
r
# simple R code # for calculating body surface area of patient using body weight (kg) and height (cm) # employing the Mosteller Equation # sample wt and ht wt <- 70 ht <- 170 bsa <- sqrt( wt * ht / 3600 ) print(bsa) # as a function bsa_mosteller <- function(wt, ht) return( sqrt( wt * ht / 3600 ) )
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make-padded-tibble.R \name{make_padded_tibble} \alias{make_padded_tibble} \title{Make Padded Tibble} \usage{ make_padded_tibble(lst) } \arguments{ \item{lst}{A list of vector to combine} } \value{ A tibble } \description{ Efficiently combine ...
/man/make_padded_tibble.Rd
permissive
konradzdeb/KEmisc
R
false
true
553
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make-padded-tibble.R \name{make_padded_tibble} \alias{make_padded_tibble} \title{Make Padded Tibble} \usage{ make_padded_tibble(lst) } \arguments{ \item{lst}{A list of vector to combine} } \value{ A tibble } \description{ Efficiently combine ...
# build gene sets from public data library(dplyr) library(magrittr) ## List of dirs to process buildGeoSet <- function(){ dir.list <- c("geo-hs-disease-gene-sets", "geo-mm-ko-gene-sets") lapply(dir.list, function(d){ file.list <- list.files(d, "\\.tsv") df.data <- data.frame(symbol = character(), ...
/build-gene-sets.R
no_license
gladstone-institutes/bioinformatics-datasets
R
false
false
2,868
r
# build gene sets from public data library(dplyr) library(magrittr) ## List of dirs to process buildGeoSet <- function(){ dir.list <- c("geo-hs-disease-gene-sets", "geo-mm-ko-gene-sets") lapply(dir.list, function(d){ file.list <- list.files(d, "\\.tsv") df.data <- data.frame(symbol = character(), ...
sim_path <- function(x, data, coords, grid, radius, fixed=FALSE) { # Generation of conditional simulation based on path # # x a multi_tpfit object # data vector of data # coords coordinates matrix # grid simulation points # radius radius to find neighbour points # fixed boolean for random or f...
/spMC/R/sim_path.R
no_license
ingted/R-Examples
R
false
false
3,829
r
sim_path <- function(x, data, coords, grid, radius, fixed=FALSE) { # Generation of conditional simulation based on path # # x a multi_tpfit object # data vector of data # coords coordinates matrix # grid simulation points # radius radius to find neighbour points # fixed boolean for random or f...
testlist <- list(latLongs = structure(c(5.63415540131748e-241, 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(6L, 4L)), r = 0) result <- do.call(MGDrivE::calcCos,testlist) str(result)
/MGDrivE/inst/testfiles/calcCos/libFuzzer_calcCos/calcCos_valgrind_files/1612727221-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
217
r
testlist <- list(latLongs = structure(c(5.63415540131748e-241, 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(6L, 4L)), r = 0) result <- do.call(MGDrivE::calcCos,testlist) str(result)
# Bubble plot sulphur sulfur_bubbs <- sulfur_data_frame_coerced %>% dplyr::select(-X__1, -type, -x, -y, -width, -height) %>% dplyr::select(kegg.names:`<NA>`) %>% gather(key = "Class_identity", value = "Log_sum_RPKMs", -kegg.names, -all.mapped, -labels) sulfur_bubbs$Log_sum_RPKMs <- as.numeric(sulfur_b...
/project_2/RPKM sulfur bubble plot.R
no_license
kevinxchan/MICB405
R
false
false
7,163
r
# Bubble plot sulphur sulfur_bubbs <- sulfur_data_frame_coerced %>% dplyr::select(-X__1, -type, -x, -y, -width, -height) %>% dplyr::select(kegg.names:`<NA>`) %>% gather(key = "Class_identity", value = "Log_sum_RPKMs", -kegg.names, -all.mapped, -labels) sulfur_bubbs$Log_sum_RPKMs <- as.numeric(sulfur_b...
context("Tests for create") rm(list=ls()) verbose <- FALSE #setup to work with environment instance <- "test_environments/5-2-2.json" test_that(paste("test login,create sample and lot", instance), { verbose <- FALSE api <- CoreAPIV2::coreAPI(instance) ...
/tests/testthat/test_create.R
no_license
ceparman/Core5.3
R
false
false
4,399
r
context("Tests for create") rm(list=ls()) verbose <- FALSE #setup to work with environment instance <- "test_environments/5-2-2.json" test_that(paste("test login,create sample and lot", instance), { verbose <- FALSE api <- CoreAPIV2::coreAPI(instance) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hello.R \name{hello} \alias{hello} \title{Returns hello world string.} \usage{ hello() } \value{ "Hello, world!" } \description{ Returns hello world string. } \examples{ hello() hello_string <- hello() print(paste0("Johny says, '", hello_stri...
/man/hello.Rd
no_license
cormac85/packagerrr2
R
false
true
332
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hello.R \name{hello} \alias{hello} \title{Returns hello world string.} \usage{ hello() } \value{ "Hello, world!" } \description{ Returns hello world string. } \examples{ hello() hello_string <- hello() print(paste0("Johny says, '", hello_stri...
library(e1071) setwd("/accounts/grad/haolyu") word_feature <- read.csv("doc_feature_matrix3_var.csv", header = T, stringsAsFactors = T) word_feature <- word_feature[,-1] row.names(word_feature)<- word_feature$X model_svm <- svm(as.factor(tags)~., data = word_feature, kernel="radial",cost = 10,scale=F,cross = 5) save(mo...
/svm4.R
no_license
skylerroh/ProjectGutenberg_TextClassifier
R
false
false
656
r
library(e1071) setwd("/accounts/grad/haolyu") word_feature <- read.csv("doc_feature_matrix3_var.csv", header = T, stringsAsFactors = T) word_feature <- word_feature[,-1] row.names(word_feature)<- word_feature$X model_svm <- svm(as.factor(tags)~., data = word_feature, kernel="radial",cost = 10,scale=F,cross = 5) save(mo...
library(IUPS) ### Name: bpsr ### Title: Bayesian Propensity Score Regression ### Aliases: bpsr ### ** Examples ## Not run: ##D library(boot) ##D ##D a = 2; b = c(1, -2, 5); N = 500 ##D x1 <- runif(N, 0, 1) ##D x2 <- runif(N, 0, 1) ##D X <- cbind(rep(1, N), x1, x2) ##D p <- inv.logit( X %*% b ) ##D t <- rbinom(N, ...
/data/genthat_extracted_code/IUPS/examples/bpsr.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
425
r
library(IUPS) ### Name: bpsr ### Title: Bayesian Propensity Score Regression ### Aliases: bpsr ### ** Examples ## Not run: ##D library(boot) ##D ##D a = 2; b = c(1, -2, 5); N = 500 ##D x1 <- runif(N, 0, 1) ##D x2 <- runif(N, 0, 1) ##D X <- cbind(rep(1, N), x1, x2) ##D p <- inv.logit( X %*% b ) ##D t <- rbinom(N, ...
#install.packages("tidyverse") #install.packages("data.table") #library(data.table) library(tidyr) library(dplyr) library(stringr) library(ggplot2) rawtax <- read.csv("~/Desktop/16scandidate/greengenes/gg_13_5_taxonomy.txt", sep=";", stringsAsFactors = FALSE, header = FALSE) rawtax$id<- gsub("(\\d*)\\t(.*)", "\\1", ra...
/results/ggrrndbsra.R
no_license
BenNolann/16scandidate
R
false
false
9,189
r
#install.packages("tidyverse") #install.packages("data.table") #library(data.table) library(tidyr) library(dplyr) library(stringr) library(ggplot2) rawtax <- read.csv("~/Desktop/16scandidate/greengenes/gg_13_5_taxonomy.txt", sep=";", stringsAsFactors = FALSE, header = FALSE) rawtax$id<- gsub("(\\d*)\\t(.*)", "\\1", ra...
## PLOT 4 if(!file.exists("./data.csv")){ url<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, destfile="./household_power_consumption.zip", method="curl", mode=wb) data<-read.table((unzip("./household_power_consumption.zip")),header=T, sep=";", na.str...
/Plot 4.R
no_license
edwspringel/Coursera-Exploratory-Analysis-Wk-1
R
false
false
1,290
r
## PLOT 4 if(!file.exists("./data.csv")){ url<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(url, destfile="./household_power_consumption.zip", method="curl", mode=wb) data<-read.table((unzip("./household_power_consumption.zip")),header=T, sep=";", na.str...
#' \code{romic} package #' #' @docType package #' @name romic #' #' @description 'romic' represents high-dimensional data as tables of features, #' samples and measurements, and a design list for tracking the meaning of #' individual variables. Using this format, filtering, normalization, and #' other transformat...
/R/romic.R
no_license
DavisVaughan/romic
R
false
false
1,095
r
#' \code{romic} package #' #' @docType package #' @name romic #' #' @description 'romic' represents high-dimensional data as tables of features, #' samples and measurements, and a design list for tracking the meaning of #' individual variables. Using this format, filtering, normalization, and #' other transformat...
require(data.table) # Read top two rows of dataset to get column classes and variable names top <- read.table('household_power_consumption.txt', nrows=2, na.strings='?', header=T, sep=';') classes <- sapply(top,class) headers <- colnames(top) # ...
/plot3.R
no_license
shemp9999/ExData_Plotting1
R
false
false
1,625
r
require(data.table) # Read top two rows of dataset to get column classes and variable names top <- read.table('household_power_consumption.txt', nrows=2, na.strings='?', header=T, sep=';') classes <- sapply(top,class) headers <- colnames(top) # ...
#' Make a 3D array from a list of coodinates #' #' @param x list of values #' @param coords list of coordinates #' @param dims first two dimensions #' #' @import oro.nifti Matrix #' @return #' @export make.3D.from.coords<-function(x,coords,dims) { n<-length(x) m<-array(NA,c(dims,n)) for (i in 1:n) { s<-dim(...
/R/make3Dfromcoords.R
no_license
bioimaginggroup/BayGMRF
R
false
false
450
r
#' Make a 3D array from a list of coodinates #' #' @param x list of values #' @param coords list of coordinates #' @param dims first two dimensions #' #' @import oro.nifti Matrix #' @return #' @export make.3D.from.coords<-function(x,coords,dims) { n<-length(x) m<-array(NA,c(dims,n)) for (i in 1:n) { s<-dim(...
#!/usr/bin/env Rscript source("00_Funcoes.R") lcDesenvolvedoresPorVariabilidade <- function() { path <- "../resultados/" file.names <- dir(path) for (i in 1:length(file.names)) { valores <- lerPlanilhaCommits(file.names[i]) gerarLCDesenvolvedoresPorVariabilidade(file.names[i], valores) } } #' Função...
/doa/R/14_LCDesenvolvedoresPorVariabilidade.R
no_license
karol-milano/SistemasConfiguraveis
R
false
false
1,505
r
#!/usr/bin/env Rscript source("00_Funcoes.R") lcDesenvolvedoresPorVariabilidade <- function() { path <- "../resultados/" file.names <- dir(path) for (i in 1:length(file.names)) { valores <- lerPlanilhaCommits(file.names[i]) gerarLCDesenvolvedoresPorVariabilidade(file.names[i], valores) } } #' Função...
#==== USER SECTION ================================================================= u_path_pdf <- "data/pdfs_all" u_path_xml <- "data/xml_all" #==== INITIALISE =================================================================== # load libraries library(devtools) library(bibliometrix) library(SnowballC) library(servr...
/main.R
no_license
mcc-apsis/SDGtm
R
false
false
34,148
r
#==== USER SECTION ================================================================= u_path_pdf <- "data/pdfs_all" u_path_xml <- "data/xml_all" #==== INITIALISE =================================================================== # load libraries library(devtools) library(bibliometrix) library(SnowballC) library(servr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stat-counth.R \name{stat_counth} \alias{stat_counth} \title{Horizontal counting.} \usage{ stat_counth(mapping = NULL, data = NULL, geom = "barh", position = "stackv", ..., width = NULL, na.rm = FALSE, show.legend = NA, inherit.aes = TRUE)...
/man/stat_counth.Rd
no_license
thomasp85/ggstance
R
false
true
2,912
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/stat-counth.R \name{stat_counth} \alias{stat_counth} \title{Horizontal counting.} \usage{ stat_counth(mapping = NULL, data = NULL, geom = "barh", position = "stackv", ..., width = NULL, na.rm = FALSE, show.legend = NA, inherit.aes = TRUE)...
### R code from vignette source 'glmpathcr.Rnw' ################################################### ### code chunk number 1: glmpathcr.Rnw:74-82 ################################################### library(glmpathcr) data(diabetes) dim(diabetes) names(diabetes)[1:10] summary(diabetes$y) x <- diabetes[, 2:dim(diabetes)[...
/glmpathcr/inst/doc/glmpathcr.R
no_license
ingted/R-Examples
R
false
false
2,060
r
### R code from vignette source 'glmpathcr.Rnw' ################################################### ### code chunk number 1: glmpathcr.Rnw:74-82 ################################################### library(glmpathcr) data(diabetes) dim(diabetes) names(diabetes)[1:10] summary(diabetes$y) x <- diabetes[, 2:dim(diabetes)[...
############################################################################# ## ## ## Model-based SIR ## ## ## ## Writt...
/R/msir.R
no_license
cran/msir
R
false
false
19,220
r
############################################################################# ## ## ## Model-based SIR ## ## ## ## Writt...
#' Additive Quantile Regression Smoothing #' #' \code{rqss_new} is based on \code{\link{rqss}} function in #' \code{\link{quantreg}} package. The main difference is that this new function #' implements the weights option, which can be quite useful. It is used to fit #' function for additive quantile regression models w...
/ConfidenceQuant/R/rqss_new.R
no_license
likun-stat/ConfidenceQuant
R
false
false
14,253
r
#' Additive Quantile Regression Smoothing #' #' \code{rqss_new} is based on \code{\link{rqss}} function in #' \code{\link{quantreg}} package. The main difference is that this new function #' implements the weights option, which can be quite useful. It is used to fit #' function for additive quantile regression models w...
#Packages install.packages("MASS") install.packages("forecast") install.packages("McSpatial") install.packages("ggplot2") install.packages("reshape2") install.packages("cowplot") #Loading: require(cowplot) require(reshape2) require(ggplot2) require(MASS) require(forecast) require(McSpatial) #Some pieces taken from st...
/AAvsAvgForTimeSeries/AAvsAVGForTSP.R
no_license
JamilWaqas/Rcode
R
false
false
13,025
r
#Packages install.packages("MASS") install.packages("forecast") install.packages("McSpatial") install.packages("ggplot2") install.packages("reshape2") install.packages("cowplot") #Loading: require(cowplot) require(reshape2) require(ggplot2) require(MASS) require(forecast) require(McSpatial) #Some pieces taken from st...
##Download the file fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" temp <- tempfile() download.file(fileurl, temp) unzip(temp, exdir = "~/Data_Science_Files") rm(temp) ##Read the file into R hpc <- read.table("~/Data_Science_Files/household_power_consumptio...
/plot3.R
no_license
ffionfletcher/ExData_Plotting1
R
false
false
1,275
r
##Download the file fileurl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" temp <- tempfile() download.file(fileurl, temp) unzip(temp, exdir = "~/Data_Science_Files") rm(temp) ##Read the file into R hpc <- read.table("~/Data_Science_Files/household_power_consumptio...
#options(warn = 2, error = recover) for(data_set in c("Mannini", "SasakiFreeLiving", "SasakiLab")) { #for(data_set in c("SasakiFreeLiving")) { for(location in c("ankle", "wrist")) { if(data_set %in% c("SasakiFreeLiving", "SasakiLab")) { class_var_levels <- c("y_category3", "y_intensity") } else { ...
/inst/appliedPAClassificationScripts/runMethods/run_fast_methods.R
no_license
elray1/PACwithDDM
R
false
false
1,503
r
#options(warn = 2, error = recover) for(data_set in c("Mannini", "SasakiFreeLiving", "SasakiLab")) { #for(data_set in c("SasakiFreeLiving")) { for(location in c("ankle", "wrist")) { if(data_set %in% c("SasakiFreeLiving", "SasakiLab")) { class_var_levels <- c("y_category3", "y_intensity") } else { ...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' Amazon Elastic MapReduce #' #' @description #' Amazon EMR is a web service that makes it easy to process large amounts #' of data efficiently. Amazon EMR uses Hadoop processing combine...
/cran/paws.analytics/R/emr_service.R
permissive
johnnytommy/paws
R
false
false
6,512
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service set_config NULL #' Amazon Elastic MapReduce #' #' @description #' Amazon EMR is a web service that makes it easy to process large amounts #' of data efficiently. Amazon EMR uses Hadoop processing combine...
# Read data NEI <- readRDS("./summarySCC_PM25.rds") # Filter data to get Baltimore City data BaltimoreNEI <- NEI[NEI$fips == "24510", c(4,6)] # Calculate total emissions in Baltimore by year totalEmissions <- tapply(BaltimoreNEI$Emissions, BaltimoreNEI$year, FUN=sum) # Plot barplot(totalEmissions, xlab = "Year", y...
/plot2.R
no_license
Smally12345/EDA-PollutionData
R
false
false
456
r
# Read data NEI <- readRDS("./summarySCC_PM25.rds") # Filter data to get Baltimore City data BaltimoreNEI <- NEI[NEI$fips == "24510", c(4,6)] # Calculate total emissions in Baltimore by year totalEmissions <- tapply(BaltimoreNEI$Emissions, BaltimoreNEI$year, FUN=sum) # Plot barplot(totalEmissions, xlab = "Year", y...
# reading in the data hpc <- read.table("household_power_consumption.txt", header = T, sep=';', stringsAsFactors = F, na.strings = '?') # subsetting the data hpcsub <- hpc[hpc$Date %in% c("1/2/2007","2/2/2007"), ] # extract date data for x axis plotx <- strptime(paste(hpcsub$Date, hpcsub$Time, sep=' '), "%d/%m/%Y %H:...
/plot3.R
no_license
ashazid/ExData_Plotting1
R
false
false
832
r
# reading in the data hpc <- read.table("household_power_consumption.txt", header = T, sep=';', stringsAsFactors = F, na.strings = '?') # subsetting the data hpcsub <- hpc[hpc$Date %in% c("1/2/2007","2/2/2007"), ] # extract date data for x axis plotx <- strptime(paste(hpcsub$Date, hpcsub$Time, sep=' '), "%d/%m/%Y %H:...
[# Assignment: Housing Dataset # Name: Shrestha, Saurabh # Date: 2021-05-14 install.packages("dplyr") library(readxl) library(plyr) library(dplyr) library(ggplot2) library(tidyverse) library(readxl) library(lubridate) library(outliers) library(lmtest) library(car) # Set working directory setwd("C:/User...
/Housing_ShresthaSaurabh.R
no_license
saurabhstha/Week9-520
R
false
false
5,013
r
[# Assignment: Housing Dataset # Name: Shrestha, Saurabh # Date: 2021-05-14 install.packages("dplyr") library(readxl) library(plyr) library(dplyr) library(ggplot2) library(tidyverse) library(readxl) library(lubridate) library(outliers) library(lmtest) library(car) # Set working directory setwd("C:/User...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/answer_sheets.R \name{quiz_clean_drive} \alias{quiz_clean_drive} \title{Deletes the answer sheets} \usage{ quiz_clean_drive(quiz = getOption("peRson.quiz")) } \arguments{ \item{quiz}{Quiz environment with quiz variables.} } \value{ No result,...
/man/quiz_clean_drive.Rd
permissive
martina-starc/peRson
R
false
true
453
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/answer_sheets.R \name{quiz_clean_drive} \alias{quiz_clean_drive} \title{Deletes the answer sheets} \usage{ quiz_clean_drive(quiz = getOption("peRson.quiz")) } \arguments{ \item{quiz}{Quiz environment with quiz variables.} } \value{ No result,...
#' Retrieve k info data from ghg database #' #' @param FACILITY_ID e.g. '1002969'. See Details. #' @param REPORTING_YEAR e.g. '2010'. See Details. #' @param TOTALNUMELECTARCFURNAC e.g. '2'. See Details. #' @export ghg_k_info <- function(FACILITY_ID = NULL, REPORTING_YEAR = NULL, TOTALNUMELECTARCFURNAC = NULL) { ...
/R/ghg_k_info.R
no_license
markwh/envirofacts
R
false
false
499
r
#' Retrieve k info data from ghg database #' #' @param FACILITY_ID e.g. '1002969'. See Details. #' @param REPORTING_YEAR e.g. '2010'. See Details. #' @param TOTALNUMELECTARCFURNAC e.g. '2'. See Details. #' @export ghg_k_info <- function(FACILITY_ID = NULL, REPORTING_YEAR = NULL, TOTALNUMELECTARCFURNAC = NULL) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{p25_trunked_phase1} \alias{p25_trunked_phase1} \title{accessFit Object for P25 Trunked Phase 1 LMR measurements} \format{\code{\link[accessTime]{accessFit}} objects have the following components: \describe{ \i...
/accessTime/man/p25_trunked_phase1.Rd
permissive
lizGH/accessTime
R
false
true
1,983
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{p25_trunked_phase1} \alias{p25_trunked_phase1} \title{accessFit Object for P25 Trunked Phase 1 LMR measurements} \format{\code{\link[accessTime]{accessFit}} objects have the following components: \describe{ \i...
library(shiny) library(ggplot2) shinyUI(pageWithSidebar( headerPanel("Enter the number of carat and the quality of the cut to estimate the price of a diamond."), sidebarPanel( sliderInput(inputId="carat", label = "Number of carats",min=0.5,max=6,step=0.1,value=3), selectInput(inputId="cut",label = "Quality ...
/ui.R
no_license
solens/DataProducts
R
false
false
475
r
library(shiny) library(ggplot2) shinyUI(pageWithSidebar( headerPanel("Enter the number of carat and the quality of the cut to estimate the price of a diamond."), sidebarPanel( sliderInput(inputId="carat", label = "Number of carats",min=0.5,max=6,step=0.1,value=3), selectInput(inputId="cut",label = "Quality ...
### In this tutorial, we will use neural networks on the wine quality ### dataset to predict quality. ### The code is very similar to when we used NNets for regression in ### Lecture 12b. See the material from that lecture for more details. source("Helper Functions.R") ### Read-in and process the data sourc...
/STAT452_Statistical_Learning/452Lecture_Rcode/L21_NeuralNets/L21 - NNet Classification.R
no_license
yiyangd/SFU
R
false
false
11,008
r
### In this tutorial, we will use neural networks on the wine quality ### dataset to predict quality. ### The code is very similar to when we used NNets for regression in ### Lecture 12b. See the material from that lecture for more details. source("Helper Functions.R") ### Read-in and process the data sourc...
library(analogue) ### Name: Stratiplot ### Title: Palaeoecological stratigraphic diagrams ### Aliases: Stratiplot Stratiplot.default Stratiplot.formula ### Stratiplot.matrix ### Keywords: hplot ### ** Examples data(V12.122) Depths <- as.numeric(rownames(V12.122)) (plt <- Stratiplot(Depths ~ O.univ + G.ruber + G....
/data/genthat_extracted_code/analogue/examples/Stratiplot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
3,646
r
library(analogue) ### Name: Stratiplot ### Title: Palaeoecological stratigraphic diagrams ### Aliases: Stratiplot Stratiplot.default Stratiplot.formula ### Stratiplot.matrix ### Keywords: hplot ### ** Examples data(V12.122) Depths <- as.numeric(rownames(V12.122)) (plt <- Stratiplot(Depths ~ O.univ + G.ruber + G....
/week 4/IT533_Session4_RScript(1).R
no_license
harshagoteti/DataMining
R
false
false
5,074
r
library(FisHiCal) ### Name: updateCalib ### Title: Update a parameter value in the calibration model ### Aliases: updateCalib ### ** Examples data(match) npoints = 10 # number of points to fit # prepareCalib computes threshold according to the fit # useMax is set to FALSE res = prepareCalib(match, npoints...
/data/genthat_extracted_code/FisHiCal/examples/updateCalib.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
424
r
library(FisHiCal) ### Name: updateCalib ### Title: Update a parameter value in the calibration model ### Aliases: updateCalib ### ** Examples data(match) npoints = 10 # number of points to fit # prepareCalib computes threshold according to the fit # useMax is set to FALSE res = prepareCalib(match, npoints...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{accountPermissions.get} \alias{accountPermissions.get} \title{Gets one account permission by ID.} \usage{ accountPermissions.get(profileId, id) } \arguments{ \item{profileId}{User profile ID associated with this...
/googledfareportingv27.auto/man/accountPermissions.get.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
885
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{accountPermissions.get} \alias{accountPermissions.get} \title{Gets one account permission by ID.} \usage{ accountPermissions.get(profileId, id) } \arguments{ \item{profileId}{User profile ID associated with this...
#this script is not dependent on run_model_index because it reads raw data at l1 Sys.setenv(fsl_pipeline_file="/gpfs/group/mnh5174/default/clock_analysis/fmri/fsl_pipeline/configuration_files/MMClock_aroma_preconvolve_fse_groupfixed.RData") Sys.setenv(run_model_index=1) to_run <- Sys.getenv("fsl_pipeline_file") run_m...
/fmri/fsl_pipeline/extract_sceptic_atlas_deconvolved.R
no_license
DecisionNeurosciencePsychopathology/clock_analysis
R
false
false
13,190
r
#this script is not dependent on run_model_index because it reads raw data at l1 Sys.setenv(fsl_pipeline_file="/gpfs/group/mnh5174/default/clock_analysis/fmri/fsl_pipeline/configuration_files/MMClock_aroma_preconvolve_fse_groupfixed.RData") Sys.setenv(run_model_index=1) to_run <- Sys.getenv("fsl_pipeline_file") run_m...
library(dobson) ### Name: dogs ### Title: Dogs data from table 11.9 ### Aliases: dogs ### Keywords: datasets ### ** Examples data(dogs) summary(dogs)
/data/genthat_extracted_code/dobson/examples/dogs.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
157
r
library(dobson) ### Name: dogs ### Title: Dogs data from table 11.9 ### Aliases: dogs ### Keywords: datasets ### ** Examples data(dogs) summary(dogs)
#'@title Occurrence of compound wet-hot events #' #'@description Extract compound wet-hot (WH) occurrences based on thresholds of precipitation and temperature.The binary variable of the WH (or wet-warm,WW) event can be obtained. #' #'@param mp Precipitation #'@param mt Temperature #'@param threp Threshold of p...
/R/GetWH.R
no_license
cran/CompoundEvents
R
false
false
1,336
r
#'@title Occurrence of compound wet-hot events #' #'@description Extract compound wet-hot (WH) occurrences based on thresholds of precipitation and temperature.The binary variable of the WH (or wet-warm,WW) event can be obtained. #' #'@param mp Precipitation #'@param mt Temperature #'@param threp Threshold of p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cov2pcorr.R \name{cov2pcorr} \alias{cov2pcorr} \title{Convert Covariance into Partial Correlation Matrix} \usage{ cov2pcorr(mat) } \arguments{ \item{mat}{a \eqn{(p\times p)} covariance matrix.} } \value{ a \eqn{(p\times p)} partial correlatio...
/man/cov2pcorr.Rd
no_license
cran/maotai
R
false
true
1,097
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cov2pcorr.R \name{cov2pcorr} \alias{cov2pcorr} \title{Convert Covariance into Partial Correlation Matrix} \usage{ cov2pcorr(mat) } \arguments{ \item{mat}{a \eqn{(p\times p)} covariance matrix.} } \value{ a \eqn{(p\times p)} partial correlatio...
context("test-integration-git.R") test_that("integration test: git", { cli::cat_boxx("integration test: git") base_path <- tempfile_slash("git-") dir.create(base_path) tmp <- function(x) file.path(base_path, x) bare_repo_path <- tmp("bare_repo") dir.create(bare_repo_path) git2r::init(bare_repo_path, b...
/tests/testthat/test-integration-git.R
no_license
ldecicco-USGS/tic
R
false
false
1,420
r
context("test-integration-git.R") test_that("integration test: git", { cli::cat_boxx("integration test: git") base_path <- tempfile_slash("git-") dir.create(base_path) tmp <- function(x) file.path(base_path, x) bare_repo_path <- tmp("bare_repo") dir.create(bare_repo_path) git2r::init(bare_repo_path, b...
context("Fiedler matrix") # fiedler: Fiedler Symmetric matrix ---------------------------------------------------------- test_that("Fiedler matrix has one dominant positive eigenvalue (rest negative) and symmetric", { A <- fiedler(10) eigs <- eigen(A)$values expect_more_than(eigs[1], 0) expect_equal(s...
/tests/testthat/test-fiedler.R
permissive
tXiao95/gallery
R
false
false
590
r
context("Fiedler matrix") # fiedler: Fiedler Symmetric matrix ---------------------------------------------------------- test_that("Fiedler matrix has one dominant positive eigenvalue (rest negative) and symmetric", { A <- fiedler(10) eigs <- eigen(A)$values expect_more_than(eigs[1], 0) expect_equal(s...
#' vos_import #' #' @param con a ODBC connection to Virtuoso, from [`vos_connect()`] #' @param files paths to files to be imported #' @param wd The directory from which we can search the files. #' NOTE: This directory must match or be in the directory from which you ran vos_start(). #' This is the default behavior an...
/R/virtuoso.R
permissive
amoeba/virtuoso
R
false
false
1,529
r
#' vos_import #' #' @param con a ODBC connection to Virtuoso, from [`vos_connect()`] #' @param files paths to files to be imported #' @param wd The directory from which we can search the files. #' NOTE: This directory must match or be in the directory from which you ran vos_start(). #' This is the default behavior an...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{where} \alias{where} \title{Find where a name is defined.} \usage{ where(name, env = parent.frame()) } \arguments{ \item{name}{name, as string, to look for} \item{env}{environment to start at. Defaults to the calling environment of this function.} } \descripti...
/man/where.Rd
no_license
Kevin-M-Smith/pryr
R
false
false
551
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{where} \alias{where} \title{Find where a name is defined.} \usage{ where(name, env = parent.frame()) } \arguments{ \item{name}{name, as string, to look for} \item{env}{environment to start at. Defaults to the calling environment of this function.} } \descripti...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y ...
/cachematrix.R
no_license
EijiPereira/ProgrammingAssignment2
R
false
false
1,128
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()) { inv <- NULL set <- function(y) { x <<- y ...
#Merging false NA and Do not know in hispOrigin into real NA combineData$hispOrigin[combineData$hispOrigin == ' Do not know'] <- NA combineData$hispOrigin[combineData$hispOrigin == ' NA'] <- NA sum(is.na(combineData$hispOrigin)) #Changing ' ?' into NA combineData$MSAMigrationCodeChange[combineData$MSAMigrationCodeCha...
/removingNA.R
no_license
Simobain/MLexerciceInternshipDataiku
R
false
false
1,422
r
#Merging false NA and Do not know in hispOrigin into real NA combineData$hispOrigin[combineData$hispOrigin == ' Do not know'] <- NA combineData$hispOrigin[combineData$hispOrigin == ' NA'] <- NA sum(is.na(combineData$hispOrigin)) #Changing ' ?' into NA combineData$MSAMigrationCodeChange[combineData$MSAMigrationCodeCha...
project_loc <- getwd() pkg_loc <- paste0(project_loc, "/Packages") install_loc <- paste0(pkg_loc, "/Install") dir.create(pkg_loc, showWarnings = FALSE) dir.create(install_loc, showWarnings = FALSE) assign(".lib.loc", install_loc, envir = environment(.libPaths)) install.packages(paste0(pkg_loc, "/helpers_0.1.0.tar.g...
/R/Install-Packages.R
permissive
richardangell/ladybird-umbrella
R
false
false
1,830
r
project_loc <- getwd() pkg_loc <- paste0(project_loc, "/Packages") install_loc <- paste0(pkg_loc, "/Install") dir.create(pkg_loc, showWarnings = FALSE) dir.create(install_loc, showWarnings = FALSE) assign(".lib.loc", install_loc, envir = environment(.libPaths)) install.packages(paste0(pkg_loc, "/helpers_0.1.0.tar.g...
library(SADEG) ### Name: SADEG.ReverseComplement ### Title: SADEG.ReverseComplement ### Aliases: SADEG.ReverseComplement ### ** Examples SADEG.ReverseComplement("actagtcacgatcag")
/data/genthat_extracted_code/SADEG/examples/SADEG.ReverseComplement.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
187
r
library(SADEG) ### Name: SADEG.ReverseComplement ### Title: SADEG.ReverseComplement ### Aliases: SADEG.ReverseComplement ### ** Examples SADEG.ReverseComplement("actagtcacgatcag")
# Semana 2 - Controle de Fluxo #Exercício 2.1 print("Triângulos") a <- 2 a b <- 3 b c <- 4 c ## Verificando if(a==b==c){ print("É um triângulo equilátero!") }else if(a!=b!=c){ print("É um triângulo escaleno!") }else{ print("É um triâgulo isósceles!") } #Exercício 2.2 # Letra a vet <...
/semana02.R
no_license
JuliaHellenFerreira/Programacao-Estatistica
R
false
false
4,458
r
# Semana 2 - Controle de Fluxo #Exercício 2.1 print("Triângulos") a <- 2 a b <- 3 b c <- 4 c ## Verificando if(a==b==c){ print("É um triângulo equilátero!") }else if(a!=b!=c){ print("É um triângulo escaleno!") }else{ print("É um triâgulo isósceles!") } #Exercício 2.2 # Letra a vet <...
rm(list = ls()) #clear workspace setwd("C://Users//nikla//Google Drive//Data Science & Marketing Analytics//Assignment 2") #set working directory SessionLevel_data <- read.csv("SessionleveldataNEW.csv",header=TRUE, na.strings="\\N") #read csv file SessionLevel_data$livedate[is.na(SessionLevel_data$livedate)] <...
/SessionLevelData(1).R
no_license
nakirider/R
R
false
false
2,790
r
rm(list = ls()) #clear workspace setwd("C://Users//nikla//Google Drive//Data Science & Marketing Analytics//Assignment 2") #set working directory SessionLevel_data <- read.csv("SessionleveldataNEW.csv",header=TRUE, na.strings="\\N") #read csv file SessionLevel_data$livedate[is.na(SessionLevel_data$livedate)] <...
#' This is my first package #' #' #' @section ?? #' #' @author #' Roel Elbers #' #' @docType package #' @name PrepCDM #' @keywords ?? #' @import data.table NULL #' @param codesheet data.table file with the codes, concept and coding system #' @param file CDM table with codes #' @param c.voc codesh...
/Data characterisation/PfizerScript/p_steps/functions/CreateConcepts_SQL.R
no_license
MarcPadros/Pfizer
R
false
false
6,292
r
#' This is my first package #' #' #' @section ?? #' #' @author #' Roel Elbers #' #' @docType package #' @name PrepCDM #' @keywords ?? #' @import data.table NULL #' @param codesheet data.table file with the codes, concept and coding system #' @param file CDM table with codes #' @param c.voc codesh...
library(ape) testtree <- read.tree("1939_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="1939_1_unrooted.txt")
/codeml_files/newick_trees_processed/1939_1/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("1939_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="1939_1_unrooted.txt")
#Function for Problem 1 #Purpose is to find mean and standard deviation of all columns #Mean is stored in column 1 of output #Standard Deviation is stored in column 2 of output Problem1Fun<-function(InTable){ OutVec<-matrix(c(1:2*dim(InTable)[2]),ncol=2,nrow=dim(InTable)[2]) for(i in 1:dim(InTable)[2]){ OutVec[i,1...
/HW1/Problem1Fun.R
no_license
savethetauntauns/Bayesian
R
false
false
392
r
#Function for Problem 1 #Purpose is to find mean and standard deviation of all columns #Mean is stored in column 1 of output #Standard Deviation is stored in column 2 of output Problem1Fun<-function(InTable){ OutVec<-matrix(c(1:2*dim(InTable)[2]),ncol=2,nrow=dim(InTable)[2]) for(i in 1:dim(InTable)[2]){ OutVec[i,1...
# Optimizers for infill criteria # General interface # # @param infill.crit [\code{function}]\cr # Infill criterion function. # @param models [\code{\link{WrappedModel}}]\cr # Model fitted on design. # @param control [\code{\link{MBOControl}}]\cr # Control object. # @param par.set [\code{\link[ParamHelpers]{Para...
/R/infillOptCMAES.R
no_license
jakobbossek/mlrMBO
R
false
false
2,946
r
# Optimizers for infill criteria # General interface # # @param infill.crit [\code{function}]\cr # Infill criterion function. # @param models [\code{\link{WrappedModel}}]\cr # Model fitted on design. # @param control [\code{\link{MBOControl}}]\cr # Control object. # @param par.set [\code{\link[ParamHelpers]{Para...
#' Logging #' #' Get or set the [log level](https://www.ffmpeg.org/doxygen/4.0/group__lavu__log__constants.html). #' #' @useDynLib av R_log_level #' @family av #' @name logging #' @export #' @param set new [log level](https://www.ffmpeg.org/doxygen/4.0/group__lavu__log__constants.html) value av_log_level <- function(se...
/R/logging.R
permissive
takewiki/av
R
false
false
511
r
#' Logging #' #' Get or set the [log level](https://www.ffmpeg.org/doxygen/4.0/group__lavu__log__constants.html). #' #' @useDynLib av R_log_level #' @family av #' @name logging #' @export #' @param set new [log level](https://www.ffmpeg.org/doxygen/4.0/group__lavu__log__constants.html) value av_log_level <- function(se...
library(shiny) library(plotly) library(leaflet) ui <- fluidPage( #Title titlePanel("Title TBA"), br(), # A two panel layout with sidebar and main panel sidebarLayout( # Sidebar sidebarPanel( radioButtons("grades.button", "Grade of Interest:", c("6th Grade" = "6", ...
/ui.R
no_license
natwoo/raincitydev-final
R
false
false
1,450
r
library(shiny) library(plotly) library(leaflet) ui <- fluidPage( #Title titlePanel("Title TBA"), br(), # A two panel layout with sidebar and main panel sidebarLayout( # Sidebar sidebarPanel( radioButtons("grades.button", "Grade of Interest:", c("6th Grade" = "6", ...
#This sccript is for differential expression analysis using counts from kallisto #the species analized here is D. eichlamii #run this script form "~/bin" forder and the data are saved in ../data/dif_exp_DE/ #load packages library(ggplot2) library(tidyverse) library(edgeR) library(DESeq2) library(PCAtools) librar...
/bin/15.dif_exp_DE.r
no_license
VeronicaGlez/Disocactus_transcriptome
R
false
false
10,864
r
#This sccript is for differential expression analysis using counts from kallisto #the species analized here is D. eichlamii #run this script form "~/bin" forder and the data are saved in ../data/dif_exp_DE/ #load packages library(ggplot2) library(tidyverse) library(edgeR) library(DESeq2) library(PCAtools) librar...
% From SamplerCompare, (c) 2010 Madeleine Thompson \name{arms.sample} \alias{arms.sample} \title{Adaptive Rejection Metropolis Sampler} \description{Generate a sample from a probability distribution with Adaptive Rejection Metropolis Sampling} \usage{arms.sample(target.dist, x0, sample.size, tuning=1)} \argumen...
/man/arms.sample.Rd
no_license
cran/SamplerCompare
R
false
false
2,293
rd
% From SamplerCompare, (c) 2010 Madeleine Thompson \name{arms.sample} \alias{arms.sample} \title{Adaptive Rejection Metropolis Sampler} \description{Generate a sample from a probability distribution with Adaptive Rejection Metropolis Sampling} \usage{arms.sample(target.dist, x0, sample.size, tuning=1)} \argumen...
clear_data_matrix <- function(data, type){ #temp, prec, isot max_value=array(c(60, 1000, 100, 40)) min_value=array(c(-100, 0, -400, -40)) n = 0 for(lon in 1:dim(data)[1]){ for(lat in 1:dim(data)[2]){ for(ii in 1:dim(data)[3]){ if(is.na(data[lon,lat,ii])){ next } el...
/Functions/clear_data_matrix.R
no_license
ginnyweasleyIUP/202003_ECHAM7k
R
false
false
580
r
clear_data_matrix <- function(data, type){ #temp, prec, isot max_value=array(c(60, 1000, 100, 40)) min_value=array(c(-100, 0, -400, -40)) n = 0 for(lon in 1:dim(data)[1]){ for(lat in 1:dim(data)[2]){ for(ii in 1:dim(data)[3]){ if(is.na(data[lon,lat,ii])){ next } el...
# function for number of observations give.n <- function(x){ return(c(y = median(x)*0.97, label = length(x))) # experiment with the multiplier to find the perfect position } # function for mean labels mean.n <- function(x){ return(c(y = median(x)*0.97, label = round(mean(x),2))) # experiment with the multip...
/Analysis/Clip-Seq/LabelBoxPlot.R
no_license
adityaradhakrishnan/Seq-Tools
R
false
false
5,510
r
# function for number of observations give.n <- function(x){ return(c(y = median(x)*0.97, label = length(x))) # experiment with the multiplier to find the perfect position } # function for mean labels mean.n <- function(x){ return(c(y = median(x)*0.97, label = round(mean(x),2))) # experiment with the multip...
library(shiny) shinyUI(fluidPage( titlePanel("censusvis"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( helpText("crear un mapa demografico con informacion del censo del 2010"), selectInput("select", h3("Select box"), choices = list("...
/widgets2/ui.R
no_license
jfmirag/shiny
R
false
false
699
r
library(shiny) shinyUI(fluidPage( titlePanel("censusvis"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( helpText("crear un mapa demografico con informacion del censo del 2010"), selectInput("select", h3("Select box"), choices = list("...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_hund_strat.R \docType{data} \name{hund_strat} \alias{hund_strat} \title{Sample deterministic data for testing} \format{ An object of class \code{data.frame} with 100 rows and 3 columns. } \usage{ hund_strat } \description{ A...
/man/hund_strat.Rd
no_license
cran/dampack
R
false
true
379
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data_hund_strat.R \docType{data} \name{hund_strat} \alias{hund_strat} \title{Sample deterministic data for testing} \format{ An object of class \code{data.frame} with 100 rows and 3 columns. } \usage{ hund_strat } \description{ A...
#computeCost <- function(problem.data.X.matrice, problem.data.y.matrice, problem.data.initial.theta){ # return(sum(((problem.data.X %*% problem.data.initial.theta) - problem.data.y.matrice)^2)) #} computeCost <- function(X, y, theta){ # calcule le cout de la function (notre hypothese) # utilisation des moindres c...
/computeCost.R
no_license
lraulier/machine-learning-Andrew-Ng-coursera
R
false
false
498
r
#computeCost <- function(problem.data.X.matrice, problem.data.y.matrice, problem.data.initial.theta){ # return(sum(((problem.data.X %*% problem.data.initial.theta) - problem.data.y.matrice)^2)) #} computeCost <- function(X, y, theta){ # calcule le cout de la function (notre hypothese) # utilisation des moindres c...
#' @include class_show_utils.R #' @rawNamespace import(Matrix, except = c(which, head, tail)) NULL #' @name matrixORsparseMatrix-class setClassUnion("matrixORsparseMatrix", c("matrix", "sparseMatrix")) ############################################################################### ### sparseMatrixList class #########...
/R/class_sparseMatrixList.R
no_license
TobiTekath/sparseDRIMSeq
R
false
false
10,308
r
#' @include class_show_utils.R #' @rawNamespace import(Matrix, except = c(which, head, tail)) NULL #' @name matrixORsparseMatrix-class setClassUnion("matrixORsparseMatrix", c("matrix", "sparseMatrix")) ############################################################################### ### sparseMatrixList class #########...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Monolix_to_desolve.R \name{monolix_to_desolve_str_model} \alias{monolix_to_desolve_str_model} \title{Monolix to desolve} \usage{ monolix_to_desolve_str_model(text) } \description{ Monolix to desolve }
/man/monolix_to_desolve_str_model.Rd
no_license
Peccary-PMX/PeccaReverse
R
false
true
279
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Monolix_to_desolve.R \name{monolix_to_desolve_str_model} \alias{monolix_to_desolve_str_model} \title{Monolix to desolve} \usage{ monolix_to_desolve_str_model(text) } \description{ Monolix to desolve }
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # shinyServer(function(input, output,session) { output$project_name<-renderUI({ project_name<-paste0('IP:',input$selectip) h1(project_name, ...
/server.R
no_license
uwban/IP_Dashboard
R
false
false
10,055
r
# This is the server logic for a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # shinyServer(function(input, output,session) { output$project_name<-renderUI({ project_name<-paste0('IP:',input$selectip) h1(project_name, ...
##' @include GContainer.R NULL ##' Toolkit constructor ##' ##' @inheritParams gWidgets2::gpanedgroup ##' @export ##' @rdname gWidgets2tcltk-undocumented ##' @method .gpanedgroup guiWidgetsToolkittcltk .gpanedgroup.guiWidgetsToolkittcltk <- function(toolkit, horizontal =...
/R/gpanedgroup.R
no_license
jverzani/gWidgets2tcltk
R
false
false
4,248
r
##' @include GContainer.R NULL ##' Toolkit constructor ##' ##' @inheritParams gWidgets2::gpanedgroup ##' @export ##' @rdname gWidgets2tcltk-undocumented ##' @method .gpanedgroup guiWidgetsToolkittcltk .gpanedgroup.guiWidgetsToolkittcltk <- function(toolkit, horizontal =...
library("stringr") library("dplyr") TokenManager <- function(token_file) { token = scan(token_file, what = "character") return(token) } ## Parse variables Dictionary variable names and return a DataFrame with as much columns as their are levels get_multiIndex_variablesDict <- function(variablesDict) { spl...
/R_lib/utils.R
no_license
ahalfpen727/PIC-SURE-w-R
R
false
false
2,342
r
library("stringr") library("dplyr") TokenManager <- function(token_file) { token = scan(token_file, what = "character") return(token) } ## Parse variables Dictionary variable names and return a DataFrame with as much columns as their are levels get_multiIndex_variablesDict <- function(variablesDict) { spl...
rbinded %>% group_by(Date) %>% summarize(value = sum(`Adj Close` * Volume)) %>% top_n(wt = value, n = 1) %>% kable()
/HW9/Solutions/3.R
no_license
Mahbodmajid/DataAnalysis
R
false
false
127
r
rbinded %>% group_by(Date) %>% summarize(value = sum(`Adj Close` * Volume)) %>% top_n(wt = value, n = 1) %>% kable()
## UI for port portfolio performance -- excatly same as in price history tab fluidRow( id = "port_SectionTwo_ChartsRowTwo", style = "display:none;", div( id = "port_SectionTwo_pefromanceSelectionsContainer", style = "margin-top: 5px;background-color: rgba(249, 249, 249, 0.45);padding: 8px 0px 8px 8px;mar...
/UI/PortfolioTab_SectionTwo_PerfCharts.R
no_license
selgamal/ShinyTestApp
R
false
false
7,680
r
## UI for port portfolio performance -- excatly same as in price history tab fluidRow( id = "port_SectionTwo_ChartsRowTwo", style = "display:none;", div( id = "port_SectionTwo_pefromanceSelectionsContainer", style = "margin-top: 5px;background-color: rgba(249, 249, 249, 0.45);padding: 8px 0px 8px 8px;mar...
# install dependences #to read tables if (!require("data.table")) { install.packages("data.table") } require("data.table") require("reshape2") # we download the file into the workspace and # unzip de file fileulr <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" #download...
/run_analysis.R
no_license
hmunfru/GettingAndCleaningData
R
false
false
2,641
r
# install dependences #to read tables if (!require("data.table")) { install.packages("data.table") } require("data.table") require("reshape2") # we download the file into the workspace and # unzip de file fileulr <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" #download...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kill_pid.R \name{get_tasklist} \alias{get_tasklist} \title{Get the running processes in windows task manager} \usage{ get_tasklist(...) } \arguments{ \item{...}{not used.} } \value{ a data.frame with the current running processes. } \descript...
/man/get_tasklist.Rd
no_license
cran/installr
R
false
true
1,203
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kill_pid.R \name{get_tasklist} \alias{get_tasklist} \title{Get the running processes in windows task manager} \usage{ get_tasklist(...) } \arguments{ \item{...}{not used.} } \value{ a data.frame with the current running processes. } \descript...
#### "TsparseMatrix" : Virtual class of sparse matrices in triplet-format ## more efficient than going via Csparse: setAs("matrix", "TsparseMatrix", function(from) if(is.numeric(from)) mat2dgT(from) else if(is.logical(from)) as(Matrix(from, sparse=TRUE), "TsparseMatrix") else stop("not-yet-impl...
/branches/Matrix_1.1-5-branch/R/Tsparse.R
no_license
LTLA/Matrix
R
false
false
32,125
r
#### "TsparseMatrix" : Virtual class of sparse matrices in triplet-format ## more efficient than going via Csparse: setAs("matrix", "TsparseMatrix", function(from) if(is.numeric(from)) mat2dgT(from) else if(is.logical(from)) as(Matrix(from, sparse=TRUE), "TsparseMatrix") else stop("not-yet-impl...
################################################################################ ### Part of the surveillance package, http://surveillance.r-forge.r-project.org ### Free software under the terms of the GNU General Public License, version 2, ### a copy of which is available at http://www.r-project.org/Licenses/. ### ###...
/fuzzedpackages/surveillance/R/epidata_animate.R
no_license
akhikolla/testpackages
R
false
false
6,136
r
################################################################################ ### Part of the surveillance package, http://surveillance.r-forge.r-project.org ### Free software under the terms of the GNU General Public License, version 2, ### a copy of which is available at http://www.r-project.org/Licenses/. ### ###...