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
#' @export #' is_valid_pH <- function(pH) { pH >= 0 & pH <= 14 }
/R/is_valid_pH.R
no_license
bmccloskey/demoPackage
R
false
false
67
r
#' @export #' is_valid_pH <- function(pH) { pH >= 0 & pH <= 14 }
\name{summaryPower} \alias{summaryPower} \title{ Generate a summary table for power analysis result } \description{ Takes a result object from "comparePower" function and print out a table to summarize important power-related quantities. The results are marginalized, meaning that they are averaged quantities o...
/man/summaryPower.Rd
no_license
haowulab/PROPER
R
false
false
1,153
rd
\name{summaryPower} \alias{summaryPower} \title{ Generate a summary table for power analysis result } \description{ Takes a result object from "comparePower" function and print out a table to summarize important power-related quantities. The results are marginalized, meaning that they are averaged quantities o...
#' @S3method model.frame lmer model.frame.lmer <- function(formula, ...) formula@frame
/R/model.frame.lmer.R
no_license
bensoltoff/ZeligBLME
R
false
false
88
r
#' @S3method model.frame lmer model.frame.lmer <- function(formula, ...) formula@frame
## GIES algorithm ## ## Author: Alain Hauser <alhauser@ethz.ch> ## $Id: gies.R 339 2015-07-22 11:25:06Z mmaechler $ ############################################################################### ################################################## ## Auxiliary functions for simulations #################################...
/pcalg/R/gies.R
no_license
ingted/R-Examples
R
false
false
6,617
r
## GIES algorithm ## ## Author: Alain Hauser <alhauser@ethz.ch> ## $Id: gies.R 339 2015-07-22 11:25:06Z mmaechler $ ############################################################################### ################################################## ## Auxiliary functions for simulations #################################...
library(pROC) data(aSAH) numacc.response <- c(2, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2) numacc.predictor <- c(0.960602681556147, 0.0794407386056549, 0.144842404246611, 0.931816485855784, 0.931816485855784, 0.97764041048215, 0.653549466997938699464, 0.796401132206396, 0.427720540184519, 0.8112...
/tests/testthat/test-numeric-accuracy.R
no_license
xrobin/pROC
R
false
false
6,197
r
library(pROC) data(aSAH) numacc.response <- c(2, 1, 1, 2, 2, 1, 2, 2, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2) numacc.predictor <- c(0.960602681556147, 0.0794407386056549, 0.144842404246611, 0.931816485855784, 0.931816485855784, 0.97764041048215, 0.653549466997938699464, 0.796401132206396, 0.427720540184519, 0.8112...
library(tidyverse) library(corrgram) #source('D:/R/DataFest/importData.R') stateTitleStat = function(data, title, state){ if(count(data[data$stateProvince == state & data$normTitle == title,])$n > 1000){ mean = mean(data[data$normTitle == title & data$stateProvince == state,]$estimatedSalary) var = var(data[...
/Data Fest.R
no_license
usraptor2016/DataFest2018
R
false
false
4,463
r
library(tidyverse) library(corrgram) #source('D:/R/DataFest/importData.R') stateTitleStat = function(data, title, state){ if(count(data[data$stateProvince == state & data$normTitle == title,])$n > 1000){ mean = mean(data[data$normTitle == title & data$stateProvince == state,]$estimatedSalary) var = var(data[...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") # check we can get added and removed predictors in the result frame and call from model testAddedRemovedPreds <- function() { bhexFV <- h2o.uploadFile(locate("smalldata/logreg/prostate.csv")) Y <- "...
/h2o-r/tests/testdir_algos/modelselection/runit_PUBDEV_8786_added_deleted_preds.R
permissive
h2oai/h2o-3
R
false
false
2,035
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source("../../../scripts/h2o-r-test-setup.R") # check we can get added and removed predictors in the result frame and call from model testAddedRemovedPreds <- function() { bhexFV <- h2o.uploadFile(locate("smalldata/logreg/prostate.csv")) Y <- "...
#Read in data data<-read.table("household_power_consumption.txt",header=TRUE,sep=";") #Format and clean data x<-data x<-x[!(x$Global_active_power=="?"),] x<-x[!(x$Sub_metering_1=="?"),] x<-x[!(x$Sub_metering_2=="?"),] x<-x[!(x$Sub_metering_3=="?"),] x<-x[!(x$Voltage=="?"),] x<-x[!(x$Global_reactive_power=="?"),] ...
/plot4.R
no_license
amadord903/ExData_Plotting1
R
false
false
2,515
r
#Read in data data<-read.table("household_power_consumption.txt",header=TRUE,sep=";") #Format and clean data x<-data x<-x[!(x$Global_active_power=="?"),] x<-x[!(x$Sub_metering_1=="?"),] x<-x[!(x$Sub_metering_2=="?"),] x<-x[!(x$Sub_metering_3=="?"),] x<-x[!(x$Voltage=="?"),] x<-x[!(x$Global_reactive_power=="?"),] ...
packages <- c("CIMseq", "CIMseq.data", "tidyverse") purrr::walk(packages, library, character.only = TRUE) rm(packages) currPath <- getwd() #load data path1 <- '../MGA.analysis_enge/data/seurat.rda' path2 <- '../MGA.analysis_enge/data/CIMseqData.rda' if(file.exists(path1)) { load(path1) } if(file.exists(path2)) { ...
/inst/analysis/MGA.analysis_SI/scripts/CIMseqData_subset.R
no_license
jasonserviss/CIMseq.testing
R
false
false
1,693
r
packages <- c("CIMseq", "CIMseq.data", "tidyverse") purrr::walk(packages, library, character.only = TRUE) rm(packages) currPath <- getwd() #load data path1 <- '../MGA.analysis_enge/data/seurat.rda' path2 <- '../MGA.analysis_enge/data/CIMseqData.rda' if(file.exists(path1)) { load(path1) } if(file.exists(path2)) { ...
function (X, Y) { e <- get("data.env", .GlobalEnv) e[["absolute_covariates"]][[length(e[["absolute_covariates"]]) + 1]] <- list(X = X, Y = Y) .Call("_xyz_absolute_covariates", X, Y) }
/valgrind_test_dir/absolute_covariates-test.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
206
r
function (X, Y) { e <- get("data.env", .GlobalEnv) e[["absolute_covariates"]][[length(e[["absolute_covariates"]]) + 1]] <- list(X = X, Y = Y) .Call("_xyz_absolute_covariates", X, Y) }
# R script to plot scatterplot for ATACseq seq signals using two samples # Please refer the correlation.readme to prepare input data # and calculate correlation # Author@MayurDivate # library(ggplot2) fileX="/path/sample1_sample2_input.txt" plotDf <- read.table(fileX,header = T,sep = "\t",stringsAsFactors = F )...
/correlation_analysis/ATACseq_scatteredplot.r
no_license
MayurDivate/ATAC-seq
R
false
false
1,082
r
# R script to plot scatterplot for ATACseq seq signals using two samples # Please refer the correlation.readme to prepare input data # and calculate correlation # Author@MayurDivate # library(ggplot2) fileX="/path/sample1_sample2_input.txt" plotDf <- read.table(fileX,header = T,sep = "\t",stringsAsFactors = F )...
data = read.csv("6.csv") data$default = gsub("No",0,data$default) data$default = gsub("Yes",1,data$default) data$student = gsub("No",0,data$student) data$student = gsub("Yes",1,data$student) data$default = as.integer(data$default) data$student = as.integer(data$student) head(data) dim(data) summary(data) set.seed(1...
/6.R
no_license
mmbhatk/Data-Analytics-Solutions
R
false
false
855
r
data = read.csv("6.csv") data$default = gsub("No",0,data$default) data$default = gsub("Yes",1,data$default) data$student = gsub("No",0,data$student) data$student = gsub("Yes",1,data$student) data$default = as.integer(data$default) data$student = as.integer(data$student) head(data) dim(data) summary(data) set.seed(1...
dirs_to_make = c( 'OUTPUTS/Fuji_andaman2004_24hrs_domain301122_high_jetty_friction_time_varying-full-ambient_sea_level_0.0/RUN_20230310_231936232/', 'OUTPUTS/Fuji_sumatra2005_24hrs_domain301122_high_jetty_friction-full-ambient_sea_level_0.0/RUN_20230310_201942011/' ) for(i in 1:length(dirs_to_make)) dir.cr...
/misc/SW_WA_2021_2024/bunbury_busselton/swals/make_folders_and_copy_gauges.R
permissive
GeoscienceAustralia/ptha
R
false
false
729
r
dirs_to_make = c( 'OUTPUTS/Fuji_andaman2004_24hrs_domain301122_high_jetty_friction_time_varying-full-ambient_sea_level_0.0/RUN_20230310_231936232/', 'OUTPUTS/Fuji_sumatra2005_24hrs_domain301122_high_jetty_friction-full-ambient_sea_level_0.0/RUN_20230310_201942011/' ) for(i in 1:length(dirs_to_make)) dir.cr...
#---------------------------------------------------------------------- # Purpose: This test exercises HDFS operations from R. #---------------------------------------------------------------------- setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') #---------------------...
/h2o-r/tests/testdir_hdfs/runit_HDFS_kmeans.R
permissive
knormoyle/forked-h2o-dev
R
false
false
2,067
r
#---------------------------------------------------------------------- # Purpose: This test exercises HDFS operations from R. #---------------------------------------------------------------------- setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') #---------------------...
############################################################## ## C-Statistic suggest by Begg ############################################################## ## Surv.rsp - the Surv(.,.) Outcome of training data ## Surv.rsp.new - the Surv(.,.) Outcome of test data ## lp - the vector of linear predictors of training ...
/R/BaggC.R
no_license
cran/survAUC
R
false
false
1,837
r
############################################################## ## C-Statistic suggest by Begg ############################################################## ## Surv.rsp - the Surv(.,.) Outcome of training data ## Surv.rsp.new - the Surv(.,.) Outcome of test data ## lp - the vector of linear predictors of training ...
#### HW 4 setwd("/Users/nastyashukhova/Dropbox/UniMannheim/PoliSci/SS_16/AQM/HW/HW4") library(MASS) library(ggplot2) library(reshape) ll.logit <- function(theta, y, X) { # theta consists merely of beta (dim is ncol(X)) beta <- theta[1:ncol(X)] # linear predictor; make sure that X is stored as.matrix mu <- X %...
/HW 4 Nastya Task 4.R
no_license
AnastasiiaShukhova/Monte_carlo_simulations_logit_Project
R
false
false
9,193
r
#### HW 4 setwd("/Users/nastyashukhova/Dropbox/UniMannheim/PoliSci/SS_16/AQM/HW/HW4") library(MASS) library(ggplot2) library(reshape) ll.logit <- function(theta, y, X) { # theta consists merely of beta (dim is ncol(X)) beta <- theta[1:ncol(X)] # linear predictor; make sure that X is stored as.matrix mu <- X %...
## Prediction using Unsupervised learning library(tidyverse) install.packages("cluster") library(cluster) install.packages("reshape2") library(reshape2) library(ggplot2) iris1 = read.csv(file.choose()) iris1 summary(iris1) class(iris1) head(iris1) View(iris1) ## lets visualize the data with ggplot2 ## Sepal-Length...
/task 2.R
no_license
RAJ-SANKAR/Prediction-using-Unsupervised-learning
R
false
false
2,239
r
## Prediction using Unsupervised learning library(tidyverse) install.packages("cluster") library(cluster) install.packages("reshape2") library(reshape2) library(ggplot2) iris1 = read.csv(file.choose()) iris1 summary(iris1) class(iris1) head(iris1) View(iris1) ## lets visualize the data with ggplot2 ## Sepal-Length...
#' \code{olsrr} package #' #' Tools for teaching and learning OLS regression #' #' See the README on #' \href{https://github.com/rsquaredacademy/olsrr}{GitHub} #' #' @docType package #' @name olsrr NULL ## quiets concerns of R CMD check re: the .'s that appear in pipelines if (getRversion() >= "2.15.1") { utils::glo...
/R/olsrr.R
no_license
kaushikmanikonda/olsrr
R
false
false
385
r
#' \code{olsrr} package #' #' Tools for teaching and learning OLS regression #' #' See the README on #' \href{https://github.com/rsquaredacademy/olsrr}{GitHub} #' #' @docType package #' @name olsrr NULL ## quiets concerns of R CMD check re: the .'s that appear in pipelines if (getRversion() >= "2.15.1") { utils::glo...
#Example statement: You have a new burglar alarm installed. It reliably detects #burglary, but also responds to minor earthquakes. Two neighbors, John and Mary, #promise to call the police when they hear the alarm. John always calls when he #hears the alarm, but sometimes confuses the alarm with the phone ringing and c...
/alarm.R
no_license
hongjie-wang/bayesian-network
R
false
false
3,186
r
#Example statement: You have a new burglar alarm installed. It reliably detects #burglary, but also responds to minor earthquakes. Two neighbors, John and Mary, #promise to call the police when they hear the alarm. John always calls when he #hears the alarm, but sometimes confuses the alarm with the phone ringing and c...
#' Show importance of features in a model #' #' Read a xgboost model in text file format. #' Can be tree or linear model (text dump of linear model are only supported in dev version of Xgboost for now). #' #' Return a data.table of the features with their weight. #' #' #' @importFrom data.table data.table #' @impor...
/R-package/R/xgb.importance.R
permissive
cblsjtu/xgboost
R
false
false
2,167
r
#' Show importance of features in a model #' #' Read a xgboost model in text file format. #' Can be tree or linear model (text dump of linear model are only supported in dev version of Xgboost for now). #' #' Return a data.table of the features with their weight. #' #' #' @importFrom data.table data.table #' @impor...
library(unmarked) library(MuMIn) library(rgdal) library(rgeos) library(foreign) library(foreach) source("f.AIC_cut.occu.sig.used.15.10.23.R") source("getDesign.R") ObsCovarSet <- c("DAY", "TIME", "COUNT_TYPE", "EFFORT_HRS", "EFFORT_DISTANCE_KM", "NUMBER_OBSERVERS") covar <- read.csv("./input/eBird_occu_covar_site_...
/occu_models/HOSP_eBird.R
no_license
ricschuster/Tradeoffs-biodiversity-cost
R
false
false
4,338
r
library(unmarked) library(MuMIn) library(rgdal) library(rgeos) library(foreign) library(foreach) source("f.AIC_cut.occu.sig.used.15.10.23.R") source("getDesign.R") ObsCovarSet <- c("DAY", "TIME", "COUNT_TYPE", "EFFORT_HRS", "EFFORT_DISTANCE_KM", "NUMBER_OBSERVERS") covar <- read.csv("./input/eBird_occu_covar_site_...
# ---------------------------------------- # Making a funciton out of the gam prediciton script so that it can be farmed out using mclapply # Christy Rollinson, crollinson@gmail.com # Date Created: 10 July 2015 # ---------------------------------------- paleon.gams.models <- function(data, k, predictors.all, PFT=F){ ...
/R/Unused/0_calculate.sensitivity_TPC2.R
no_license
PalEON-Project/Temporal-Scaling-MS
R
false
false
4,054
r
# ---------------------------------------- # Making a funciton out of the gam prediciton script so that it can be farmed out using mclapply # Christy Rollinson, crollinson@gmail.com # Date Created: 10 July 2015 # ---------------------------------------- paleon.gams.models <- function(data, k, predictors.all, PFT=F){ ...
library(testthat) library(fishgr) test_check("fishgr")
/tests/testthat.R
no_license
akimanabe/fishgr
R
false
false
56
r
library(testthat) library(fishgr) test_check("fishgr")
# run this to get source code for data prep knitr::knit('text/dat_proc.Rnw', 'data-raw/dat_proc.R', tangle = T)
/data-raw/run_me.R
no_license
fawda123/tidal_comp
R
false
false
112
r
# run this to get source code for data prep knitr::knit('text/dat_proc.Rnw', 'data-raw/dat_proc.R', tangle = T)
library('edgeR') library(ggplot2) library(plyr) library(reshape2) allData <- read.csv('All data - 32992 with LRs.csv',quote="") counts <- allData[,c(5,6,8,15:17)] counts <- allData[,c(44:45,41:42)] # aerobic data group <- factor(c(1,1,2,2)) row.names(counts) <- allData$seq y <- DGEList(counts=counts,group=group,genes=...
/diffExpression/analyzeCounts.R
no_license
webhappy/parseRegulonDB
R
false
false
1,984
r
library('edgeR') library(ggplot2) library(plyr) library(reshape2) allData <- read.csv('All data - 32992 with LRs.csv',quote="") counts <- allData[,c(5,6,8,15:17)] counts <- allData[,c(44:45,41:42)] # aerobic data group <- factor(c(1,1,2,2)) row.names(counts) <- allData$seq y <- DGEList(counts=counts,group=group,genes=...
#' @title ClusterFractions #' #' @description Using a Seurat object, calculate the fraction of a population #'(e.g. a disease class or treatment group) that can be characterized by #' some factor (e.g. cell types) #' #' @param object A Seurat object with a population to be characterized #' @param numerator #' @pa...
/R/clusterFractions.R
permissive
milescsmith/clusterFractions
R
false
false
1,154
r
#' @title ClusterFractions #' #' @description Using a Seurat object, calculate the fraction of a population #'(e.g. a disease class or treatment group) that can be characterized by #' some factor (e.g. cell types) #' #' @param object A Seurat object with a population to be characterized #' @param numerator #' @pa...
context("utilities") test_that("time_to_fingerprint and fingerprint_to_time", { date <- as.POSIXct("2018-01-01 12:00:00 GMT") fp <- time_to_fingerprint(date) expect_identical(time_to_fingerprint(date), "5A4A22C0") expect_identical(as.numeric(fingerprint_to_time(date)), as.numeric(date)) expect_identical(time...
/tests/testthat/test-utilities.R
permissive
EcoNum/econum
R
false
false
384
r
context("utilities") test_that("time_to_fingerprint and fingerprint_to_time", { date <- as.POSIXct("2018-01-01 12:00:00 GMT") fp <- time_to_fingerprint(date) expect_identical(time_to_fingerprint(date), "5A4A22C0") expect_identical(as.numeric(fingerprint_to_time(date)), as.numeric(date)) expect_identical(time...
fci <- function(df, continuous = TRUE, depth = 3, significance = 0.05, noDSepSearch = FALSE, verbose = FALSE, java.parameters = NULL, priorKnowledge = NULL){ params <- list(NULL) if(!is.null(java.parameters)){ options(java.parameters = java.parameters) params <- c(java.parameters =...
/R/fci.R
no_license
Yezihahaha/r-causal
R
false
false
2,508
r
fci <- function(df, continuous = TRUE, depth = 3, significance = 0.05, noDSepSearch = FALSE, verbose = FALSE, java.parameters = NULL, priorKnowledge = NULL){ params <- list(NULL) if(!is.null(java.parameters)){ options(java.parameters = java.parameters) params <- c(java.parameters =...
\name{DockerRepository-class} \alias{DockerRepository-class} \docType{class} \title{ DockerRepository } \format{An R6 class object.} \description{ A Docker repository is a lightweight virtual machine image. NOTE: synStore()-ing a DockerRepository created in the client will always result in it being treated as a refer...
/man/DockerRepository-class.Rd
permissive
Sage-Bionetworks/synapser
R
false
false
774
rd
\name{DockerRepository-class} \alias{DockerRepository-class} \docType{class} \title{ DockerRepository } \format{An R6 class object.} \description{ A Docker repository is a lightweight virtual machine image. NOTE: synStore()-ing a DockerRepository created in the client will always result in it being treated as a refer...
testlist <- list(genotype = c(-1261119736L, 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, 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, ...
/detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875094-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
478
r
testlist <- list(genotype = c(-1261119736L, 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, 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, ...
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
/myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615767184-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,803
r
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/aes.r \name{aes} \alias{aes} \title{Define aesthetic mappings.} \usage{ aes(x, y, ...) } \arguments{ \item{x,y,...}{List of name value pairs giving aesthetics to map to variables. The names for x and y aesthetics can be omitted (becau...
/man/aes.Rd
no_license
ctaimal/ggplot2
R
false
false
1,520
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/aes.r \name{aes} \alias{aes} \title{Define aesthetic mappings.} \usage{ aes(x, y, ...) } \arguments{ \item{x,y,...}{List of name value pairs giving aesthetics to map to variables. The names for x and y aesthetics can be omitted (becau...
#' Expand Ranges #' #' Expand TSS GRanges for downstream analysis #' #' @importFrom GenomicRanges GRanges #' #' @param deep_obj deep_tss object #' @param sequence_expansion Number of bases to expand on each side for surrounding sequence analysis #' @param signal_expansion Number of bases to expand on each side for sur...
/R/expand_ranges.R
no_license
rpolicastro/deepTSSscrubbeR
R
false
false
2,013
r
#' Expand Ranges #' #' Expand TSS GRanges for downstream analysis #' #' @importFrom GenomicRanges GRanges #' #' @param deep_obj deep_tss object #' @param sequence_expansion Number of bases to expand on each side for surrounding sequence analysis #' @param signal_expansion Number of bases to expand on each side for sur...
## exercise 2 -- if/else statement ## now you know how to do the basic syntax in R, let's play with if/else statements ## the game is called 'is it going to rain in Seattle?' ## make a variable called 'chance_of_rain' and assign it to be 0 chance_of_rain <- 0 ## assign 'true' or 'false' to a variable named 'I_saw_rai...
/exercise-2/exercise.R
permissive
danielzbw/ch05-r-intro
R
false
false
2,141
r
## exercise 2 -- if/else statement ## now you know how to do the basic syntax in R, let's play with if/else statements ## the game is called 'is it going to rain in Seattle?' ## make a variable called 'chance_of_rain' and assign it to be 0 chance_of_rain <- 0 ## assign 'true' or 'false' to a variable named 'I_saw_rai...
options(stringsAsFactors=FALSE) # source("lib/libyogitools.R") source("lib/resultfile.R") source("lib/liblogging.R") source("lib/cliargs.R") # library(beeswarm) outdir <- getArg("outdir",default="workspace/test/") infile <- getArg("infile",default="workspace/test/genetic_interactions.csv") distfile <- getArg("distf...
/bin/compensatoryMut.R
no_license
jweile/dmsPipeline
R
false
false
3,090
r
options(stringsAsFactors=FALSE) # source("lib/libyogitools.R") source("lib/resultfile.R") source("lib/liblogging.R") source("lib/cliargs.R") # library(beeswarm) outdir <- getArg("outdir",default="workspace/test/") infile <- getArg("infile",default="workspace/test/genetic_interactions.csv") distfile <- getArg("distf...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615832709-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,048
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
library(targets) library(simeta) library(tidyverse) library(assertthat) library(latex2exp) # This is an example _targets.R file. Every # {targets} pipeline needs one. # Use tar_script() to create _targets.R and tar_edit() # to open it again for editing. # Then, run tar_make() to run the pipeline # and tar_read(summary...
/_targets.R
permissive
softloud/simeta
R
false
false
7,478
r
library(targets) library(simeta) library(tidyverse) library(assertthat) library(latex2exp) # This is an example _targets.R file. Every # {targets} pipeline needs one. # Use tar_script() to create _targets.R and tar_edit() # to open it again for editing. # Then, run tar_make() to run the pipeline # and tar_read(summary...
# Preliminaries ----------------------------------------------------------- library(tidyverse) source('code/mixed_models/sim_ranef_crossed.R') # Tests ------------------------------------------------------------------- # debugonce(sim_ran_ints) # sim_ran_ints() # library(lme4) # library(mixedup) # # test = sim_...
/code/mixed_models/run_sim_ranef_crossed.R
no_license
m-clark/m-clark.github.io
R
false
false
10,630
r
# Preliminaries ----------------------------------------------------------- library(tidyverse) source('code/mixed_models/sim_ranef_crossed.R') # Tests ------------------------------------------------------------------- # debugonce(sim_ran_ints) # sim_ran_ints() # library(lme4) # library(mixedup) # # test = sim_...
testlist <- list(data = structure(c(1.00128408512656e-307, 3.23790861658519e-319, 0, 1.48541980786407e-312, 1.50192485450471e-307, 3.49284599802339e+30, 3.529538719469e+30), .Dim = c(1L, 7L)), q = 8.28904556439245e-317) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610554441-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
291
r
testlist <- list(data = structure(c(1.00128408512656e-307, 3.23790861658519e-319, 0, 1.48541980786407e-312, 1.50192485450471e-307, 3.49284599802339e+30, 3.529538719469e+30), .Dim = c(1L, 7L)), q = 8.28904556439245e-317) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
## Lenscrafters.com ## Planning Report ## Load libraries & options----------------------------------------------------- ptm <- proc.time() rm(list = ls(all.names = TRUE)) options(scipen = 999) #options(httr_oob_default=FALSE) #library(googleAuthR) options(googleAuthR.scopes.selected = "https://www.googl...
/lc_auto_oos.R
no_license
danmarrero/ecomm
R
false
false
12,448
r
## Lenscrafters.com ## Planning Report ## Load libraries & options----------------------------------------------------- ptm <- proc.time() rm(list = ls(all.names = TRUE)) options(scipen = 999) #options(httr_oob_default=FALSE) #library(googleAuthR) options(googleAuthR.scopes.selected = "https://www.googl...
#library(plotly) library(cluster) library(dplyr) options(scipen = 999) heatmap_file = read.csv('herit_Jaccard_total_array.out', header = FALSE, sep = "\t") names_vec = as.vector(read.csv('herit_annotated_names_for_map.csv', header = FALSE, sep = "\t")) names_vec = as.vector(sapply(names_vec, as.character, simplify = T...
/WEB_interface/src/main/python/ukb_phewas/analysis_scripts/Heatmap_viz.r
no_license
Neonbird/BRB1
R
false
false
5,361
r
#library(plotly) library(cluster) library(dplyr) options(scipen = 999) heatmap_file = read.csv('herit_Jaccard_total_array.out', header = FALSE, sep = "\t") names_vec = as.vector(read.csv('herit_annotated_names_for_map.csv', header = FALSE, sep = "\t")) names_vec = as.vector(sapply(names_vec, as.character, simplify = T...
mat1 <- c(1, 2, 3) mat2 <- c(10, 11, 12, 13, 14, 15) result <- array(c(mat1, mat2), dim = c(2, 3, 3)) print(result) print(result[2,,3])
/Lab 7/7.7.R
no_license
TheWrL0ck/R-files
R
false
false
141
r
mat1 <- c(1, 2, 3) mat2 <- c(10, 11, 12, 13, 14, 15) result <- array(c(mat1, mat2), dim = c(2, 3, 3)) print(result) print(result[2,,3])
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lifecycle-retired.R \name{lang_modify} \alias{lang_modify} \alias{lang_standardise} \alias{lang_fn} \alias{lang_name} \alias{lang_args} \alias{lang_args_names} \title{Manipulate or access a call} \usage{ lang_modify(.lang, ..., .standardise =...
/man/lang_modify.Rd
permissive
seankross/rlang
R
false
true
1,236
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lifecycle-retired.R \name{lang_modify} \alias{lang_modify} \alias{lang_standardise} \alias{lang_fn} \alias{lang_name} \alias{lang_args} \alias{lang_args_names} \title{Manipulate or access a call} \usage{ lang_modify(.lang, ..., .standardise =...
############################################################## # My forcing equations ############################################################## #parameteres herd A tp.A <- 70 #day of parturition Tg <- 150 tc.A <- 365 + tp - Tg #day conception Tp <- Tc <- 8 #sd of day of parturition and conception #ff.A HF <- fun...
/ffABCD.R
no_license
jtcanevari/MCM4herds
R
false
false
3,518
r
############################################################## # My forcing equations ############################################################## #parameteres herd A tp.A <- 70 #day of parturition Tg <- 150 tc.A <- 365 + tp - Tg #day conception Tp <- Tc <- 8 #sd of day of parturition and conception #ff.A HF <- fun...
# Filename should be set in Makefile! # args <- list("cache/splitted_inrs/split_1.rds") args <- commandArgs(trailingOnly = TRUE) inr_pat_data <- readRDS(args[[1]]) setDT(inr_pat_data$patient_data, key = "patient_id") setDT(inr_pat_data$INR_data, key = c("patient_id", "inr_date")) inr_data <- inr_pat_data$INR_data[ , ....
/scripts/calc_qoac.R
permissive
jaspervanm/acenocoumarol2phenprocoumon
R
false
false
2,003
r
# Filename should be set in Makefile! # args <- list("cache/splitted_inrs/split_1.rds") args <- commandArgs(trailingOnly = TRUE) inr_pat_data <- readRDS(args[[1]]) setDT(inr_pat_data$patient_data, key = "patient_id") setDT(inr_pat_data$INR_data, key = c("patient_id", "inr_date")) inr_data <- inr_pat_data$INR_data[ , ....
###################################################### ### SETUP ###################################################### currentDate <- Sys.Date() ## Load data; remove extraneous column if necessary data.pipo <- read.csv("data.pipo_2019-08-21.csv") ; data.pipo$X <- NULL data.psme <- read.csv("data.psme_2019-08-21.csv"...
/04_spp_models_brt.R
no_license
CaitLittlef/fia-regen
R
false
false
31,457
r
###################################################### ### SETUP ###################################################### currentDate <- Sys.Date() ## Load data; remove extraneous column if necessary data.pipo <- read.csv("data.pipo_2019-08-21.csv") ; data.pipo$X <- NULL data.psme <- read.csv("data.psme_2019-08-21.csv"...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/encrypt_fun.R \name{encrypt} \alias{encrypt} \title{encrypts a message} \usage{ encrypt(message, key) } \arguments{ \item{message}{A text message} \item{key}{An integer number} } \description{ This function encrypts a text message ba...
/man/encrypt.Rd
no_license
marcoplebani85/crypto
R
false
false
586
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/encrypt_fun.R \name{encrypt} \alias{encrypt} \title{encrypts a message} \usage{ encrypt(message, key) } \arguments{ \item{message}{A text message} \item{key}{An integer number} } \description{ This function encrypts a text message ba...
# For Colon Cancer RawNARemove<-function(data,missratio=0.3){ threshold<-(missratio)*dim(data)[2] NaRaw<-which(apply(data,1,function(x) sum(is.na(x))>threshold)) zero<-which(apply(data,1,function(x) all(x==0))==T) NaRAW<-c(NaRaw,zero) if(length(NaRAW)>0){ dat<-data[-NaRAW,] }else{ dat<-da...
/monod/result/mixHap.MHLinPlasma.R
no_license
Shicheng-Guo/methylation2020
R
false
false
3,768
r
# For Colon Cancer RawNARemove<-function(data,missratio=0.3){ threshold<-(missratio)*dim(data)[2] NaRaw<-which(apply(data,1,function(x) sum(is.na(x))>threshold)) zero<-which(apply(data,1,function(x) all(x==0))==T) NaRAW<-c(NaRaw,zero) if(length(NaRAW)>0){ dat<-data[-NaRAW,] }else{ dat<-da...
#Wine Quality Prediction - For AFS Technical Interview # # # # #Start Computation Time ptm <- proc.time() #Set Seed for Reproduction set.seed(3) #Required Libraries require(plsRglm) require(caret) require(plyr) getwd() setwd("~/R") #Load CSV Files white.full <- read.csv("winequality-white.csv",...
/Roderos- AFS Wine Quality Prediction2.R
no_license
rayroderos720/Wine-Quality
R
false
false
8,590
r
#Wine Quality Prediction - For AFS Technical Interview # # # # #Start Computation Time ptm <- proc.time() #Set Seed for Reproduction set.seed(3) #Required Libraries require(plsRglm) require(caret) require(plyr) getwd() setwd("~/R") #Load CSV Files white.full <- read.csv("winequality-white.csv",...
#!/usr/bin/env Rscript args <- commandArgs (TRUE) #print (args) filein=args[1] data <- read.table(filein, header=TRUE, sep=',') #summary(data) fit = lm(Y~X, data=data) print("beta Pvalue Intercept" ) output = c(summary(fit)$coef[2], summary(fit)$coef[8], summary(fit)$coef[1]) print(output) #summary(fit)$coef...
/simple_linear_regression.R
permissive
olabanjoolusola/MIPAR-EXTENSION
R
false
false
321
r
#!/usr/bin/env Rscript args <- commandArgs (TRUE) #print (args) filein=args[1] data <- read.table(filein, header=TRUE, sep=',') #summary(data) fit = lm(Y~X, data=data) print("beta Pvalue Intercept" ) output = c(summary(fit)$coef[2], summary(fit)$coef[8], summary(fit)$coef[1]) print(output) #summary(fit)$coef...
#' BPRD color palettes. #' #' A named list of X BPRD color palettes. #' #' @format A named list. "BPRDpals" #' BPRD color palettes #' #' Return a predefined BPRD color palette from the \code{BPRDpals} dataset. #' #' Many of the palettes are qualitative, and not necessarily evenly spaced in terms of hue, saturation or ...
/R/BPRDcolours.R
permissive
mccarthy-m-g/BPRDcolours
R
false
false
3,740
r
#' BPRD color palettes. #' #' A named list of X BPRD color palettes. #' #' @format A named list. "BPRDpals" #' BPRD color palettes #' #' Return a predefined BPRD color palette from the \code{BPRDpals} dataset. #' #' Many of the palettes are qualitative, and not necessarily evenly spaced in terms of hue, saturation or ...
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
/R/pkg/R/serialize.R
permissive
sesteves/spark
R
false
false
5,445
r
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
### R code from vignette source 'PwrGSD-vignette.Rnw' ### Encoding: UTF-8 ################################################### ### code chunk number 1: PwrGSDpd ################################################### options(keep.source = TRUE, width = 70) PwrGSDpd <- packageDescription("PwrGSD") ########################...
/data/genthat_extracted_code/PwrGSD/vignettes/PwrGSD-vignette.R
no_license
surayaaramli/typeRrh
R
false
false
1,946
r
### R code from vignette source 'PwrGSD-vignette.Rnw' ### Encoding: UTF-8 ################################################### ### code chunk number 1: PwrGSDpd ################################################### options(keep.source = TRUE, width = 70) PwrGSDpd <- packageDescription("PwrGSD") ########################...
# setwd(...) # Zad 1 # założony rozkład priori - beta(2, 2) alpha_priori <- 2 beta_priori <- 2 x <- seq(0, 1, 0.01) priori <- dbeta(x, alpha_priori, beta_priori) plot(x, priori, ylim = c(0, 6), type = 'l', col = "blue", xlab = 'p', ylab = 'f(p)') title("Rozkład a priori i a posteriori parametru \"p\"") # seria 20 rzu...
/Lab 3/zad 1.R
no_license
imarkiew/MWS
R
false
false
1,671
r
# setwd(...) # Zad 1 # założony rozkład priori - beta(2, 2) alpha_priori <- 2 beta_priori <- 2 x <- seq(0, 1, 0.01) priori <- dbeta(x, alpha_priori, beta_priori) plot(x, priori, ylim = c(0, 6), type = 'l', col = "blue", xlab = 'p', ylab = 'f(p)') title("Rozkład a priori i a posteriori parametru \"p\"") # seria 20 rzu...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distribution-functions.R \name{dSin} \alias{dSin} \title{Probability density of scaled sine wave} \usage{ dSin(x, mean.t, amp.t) } \arguments{ \item{x}{numeric; vector of values for which to obtain the probability densities.} \item{mean.t}{n...
/man/dSin.Rd
permissive
EarthSystemDiagnostics/stattools
R
false
true
711
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distribution-functions.R \name{dSin} \alias{dSin} \title{Probability density of scaled sine wave} \usage{ dSin(x, mean.t, amp.t) } \arguments{ \item{x}{numeric; vector of values for which to obtain the probability densities.} \item{mean.t}{n...
#logistic glm_fits <- clean_data_split %>% mutate(mod_01 = map(train, glm, formula = party ~., family = binomial("logit")), mod_02 = map(train, glm, formula = party ~ Q6_1A + Q6_5_1 + Q6_5_2 + Q6_5_3 + Q6_5_4 + Q6_5_5 + Q6_5_6 + Q6_5_7, ...
/Models.R
no_license
akashpalani/aa-party
R
false
false
3,739
r
#logistic glm_fits <- clean_data_split %>% mutate(mod_01 = map(train, glm, formula = party ~., family = binomial("logit")), mod_02 = map(train, glm, formula = party ~ Q6_1A + Q6_5_1 + Q6_5_2 + Q6_5_3 + Q6_5_4 + Q6_5_5 + Q6_5_6 + Q6_5_7, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pobierz_szkoly.R \name{pobierz_szkoly} \alias{pobierz_szkoly} \title{Pobiera informacje o szkołach} \usage{ pobierz_szkoly(src) } \arguments{ \item{src}{uchwyt źródła danych dplyr-a} } \description{ Pobiera informacje o szkołach }
/man/pobierz_szkoly.Rd
permissive
zozlak/ZPD
R
false
true
314
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pobierz_szkoly.R \name{pobierz_szkoly} \alias{pobierz_szkoly} \title{Pobiera informacje o szkołach} \usage{ pobierz_szkoly(src) } \arguments{ \item{src}{uchwyt źródła danych dplyr-a} } \description{ Pobiera informacje o szkołach }
# helper function # takes matrix and converts to dataframe with order of rows preserved in order column Mat2Df <- function(Mat){ long <- Mat[,1] lat <- Mat[,2] order <- 1:nrow(Mat) # group <- rep(rnorm(1),nrow(Mat)) df <- data.frame(long=long,lat=lat,order=order) return(df) } # helper function # takes mult...
/R/team_5.R
permissive
WeiquanLuo/lab3team12
R
false
false
2,629
r
# helper function # takes matrix and converts to dataframe with order of rows preserved in order column Mat2Df <- function(Mat){ long <- Mat[,1] lat <- Mat[,2] order <- 1:nrow(Mat) # group <- rep(rnorm(1),nrow(Mat)) df <- data.frame(long=long,lat=lat,order=order) return(df) } # helper function # takes mult...
/Internal_Indices_Simulations.r
no_license
teenbress/Clustering_Prediction_Index_For_Clusters
R
false
false
3,029
r
#' Find the Optimal Rerandomization Design Under the Tail and Kurtosis Approximation #' #' Finds the optimal rerandomization threshold based on a user-defined quantile #' and kurtosis based on an approximation of tail standard errors #' #' @param W_base_object An object that contains the assignments to begin with s...
/OptimalRerandExpDesigns/R/optimize_rerand_tail.R
permissive
kapelner/OptimalRerandExpDesigns
R
false
false
6,896
r
#' Find the Optimal Rerandomization Design Under the Tail and Kurtosis Approximation #' #' Finds the optimal rerandomization threshold based on a user-defined quantile #' and kurtosis based on an approximation of tail standard errors #' #' @param W_base_object An object that contains the assignments to begin with s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LearnerSurvGAMboost.R \name{mlr_learners_surv.gamboost} \alias{mlr_learners_surv.gamboost} \alias{LearnerSurvGAMBoost} \title{Boosted Generalized Additive Survival Learner} \description{ Boosted generalized additive survival learner. Calls \c...
/man/mlr_learners_surv.gamboost.Rd
no_license
mlr3learners/mlr3learners.mboost
R
false
true
4,797
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LearnerSurvGAMboost.R \name{mlr_learners_surv.gamboost} \alias{mlr_learners_surv.gamboost} \alias{LearnerSurvGAMBoost} \title{Boosted Generalized Additive Survival Learner} \description{ Boosted generalized additive survival learner. Calls \c...
sv <- function() { # sigma_t = log h_t # h_t = ups + phi h_t-1 + sig_eta n = 500 ups = -.2 phi = 0.95 sig_eta = 0.1 h <- vector("numeric", n + 1) h[1] <- rnorm(1, ups, sd = sqrt(sig_eta^2 / (1 - phi^2))) for(i in 2:(n + 1)) { h[i] <- ups + phi * h[i - 1] + rnorm(1, 0, sig_eta) } y <- h[2:(n+1)] + log(r...
/experiment_sv.R
no_license
mvind/bachelor-missingdata
R
false
false
4,693
r
sv <- function() { # sigma_t = log h_t # h_t = ups + phi h_t-1 + sig_eta n = 500 ups = -.2 phi = 0.95 sig_eta = 0.1 h <- vector("numeric", n + 1) h[1] <- rnorm(1, ups, sd = sqrt(sig_eta^2 / (1 - phi^2))) for(i in 2:(n + 1)) { h[i] <- ups + phi * h[i - 1] + rnorm(1, 0, sig_eta) } y <- h[2:(n+1)] + log(r...
## A selection is of a set of observations or a region in data space. ## How to handle weighted selections? This is only relevant to ## observations. It does not make sense to have a separate logical ## selection vector when there are weights, so we accept either a ## logical or numeric vector for a selection of obser...
/R/selection.r
no_license
cran/plumbr
R
false
false
7,834
r
## A selection is of a set of observations or a region in data space. ## How to handle weighted selections? This is only relevant to ## observations. It does not make sense to have a separate logical ## selection vector when there are weights, so we accept either a ## logical or numeric vector for a selection of obser...
# This script generates the figures present in the folder # Load libraries and functions library(parallel) numCores <- parallel::detectCores() source('./auxs.R') # Get the desired city names cities_es <- get_towns(c('Spain', 'Canary Islands'), pop_threshold = 1e5) city_names <- cities_es$name # Perform create all th...
/figs/es/script.R
permissive
PabRod/daylight-charts
R
false
false
669
r
# This script generates the figures present in the folder # Load libraries and functions library(parallel) numCores <- parallel::detectCores() source('./auxs.R') # Get the desired city names cities_es <- get_towns(c('Spain', 'Canary Islands'), pop_threshold = 1e5) city_names <- cities_es$name # Perform create all th...
#### library(GenomicRanges) library(GOstats) library(clusterProfiler) source("../eqtl_functions.R") ## load libd data load("rdas/expressed_de_features.rda") ##################### ## gene set overlap # ##################### ### number significant # sigStats = endoapply(outStatsExprs, function(x) x[x$fdr_qsva < 0.1])...
/caseControl/gene_set_tests.R
permissive
LieberInstitute/BrainSeq_Phase1
R
false
false
6,538
r
#### library(GenomicRanges) library(GOstats) library(clusterProfiler) source("../eqtl_functions.R") ## load libd data load("rdas/expressed_de_features.rda") ##################### ## gene set overlap # ##################### ### number significant # sigStats = endoapply(outStatsExprs, function(x) x[x$fdr_qsva < 0.1])...
#' Adjust rearing time based on temperature #' #' Rearing time after potentially truncating based on temperature threshold #' #' @md #' @param model_day Model day when rearing was initiated #' @param duration Maximum numbr of rearing days #' @param location Rearing location: Yolo or Delta #' #' @export #'...
/R/temperature_adjustment.R
no_license
mespe/YoloBypassSBM
R
false
false
2,053
r
#' Adjust rearing time based on temperature #' #' Rearing time after potentially truncating based on temperature threshold #' #' @md #' @param model_day Model day when rearing was initiated #' @param duration Maximum numbr of rearing days #' @param location Rearing location: Yolo or Delta #' #' @export #'...
context("Test synthetic generator functions: coupling") ## generator_monotonic is correct test_that("generator_monotonic works", { set.seed(10) dat <- statCognition::dat res <- generator_monotonic(dat, 1, 1) expect_true(is.matrix(res$mat)) expect_true(class(res) == "data") expect_true(!any(is.na(res$mat...
/statCognition/tests/testthat/test_synthetic_functions_coupling.R
permissive
linnykos/statCognition
R
false
false
4,635
r
context("Test synthetic generator functions: coupling") ## generator_monotonic is correct test_that("generator_monotonic works", { set.seed(10) dat <- statCognition::dat res <- generator_monotonic(dat, 1, 1) expect_true(is.matrix(res$mat)) expect_true(class(res) == "data") expect_true(!any(is.na(res$mat...
07f07643a6497fb7787a765c74fbd543 nxquery_ntrivil_1344n.qdimacs 137 213
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/nxquery_ntrivil_1344n/nxquery_ntrivil_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
70
r
07f07643a6497fb7787a765c74fbd543 nxquery_ntrivil_1344n.qdimacs 137 213
library(SIMMS) ### Name: calculate.network.coefficients ### Title: Calculate Cox statistics for input dataset ### Aliases: calculate.network.coefficients ### Keywords: survival ### ** Examples options("warn" = -1); program.data <- get.program.defaults(networks.database = "test"); data.directory <- program.data[["te...
/data/genthat_extracted_code/SIMMS/examples/calculate.network.coefficients.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
641
r
library(SIMMS) ### Name: calculate.network.coefficients ### Title: Calculate Cox statistics for input dataset ### Aliases: calculate.network.coefficients ### Keywords: survival ### ** Examples options("warn" = -1); program.data <- get.program.defaults(networks.database = "test"); data.directory <- program.data[["te...
# NB in this file must manually generate reports #Loading raw dataset --------------------------------------------------------------------- # # ### Reading the CSV script files_path <- list.files(path = "./data/imputed", full.names=TRUE) files_names <- as_tibble(str_split_fixed(list.files(path = "./data/imputed"), pat...
/r_eyamga/src/3.eda_imputed_data.R
no_license
eyamga/CODA19-Phenotyper
R
false
false
3,126
r
# NB in this file must manually generate reports #Loading raw dataset --------------------------------------------------------------------- # # ### Reading the CSV script files_path <- list.files(path = "./data/imputed", full.names=TRUE) files_names <- as_tibble(str_split_fixed(list.files(path = "./data/imputed"), pat...
library(plyr) library(dplyr) PowerConsumption <- read.table("C:/Users/Sam/Documents/Coursera/Course_ExplorataryData/Quiz1/household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?",stringsAsFactors = FALSE) PowerConsumption$Time <- as.POSIXct(strptime(paste(PowerConsumption$Date, PowerConsumption$Ti...
/plot3.R
no_license
samsam1999/ExData_Plotting1
R
false
false
1,099
r
library(plyr) library(dplyr) PowerConsumption <- read.table("C:/Users/Sam/Documents/Coursera/Course_ExplorataryData/Quiz1/household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?",stringsAsFactors = FALSE) PowerConsumption$Time <- as.POSIXct(strptime(paste(PowerConsumption$Date, PowerConsumption$Ti...
# https://github.com/NicolasWoloszko/stat_ecdf_weighted/blob/6e96639aa045f8ac94a660421ef314338a574ee3/stat_ecdf_weighted.R # all packages are loaded in `code/_dependencies.R` # library(spatstat) #' Compute empirical cumulative distribution #' #' The empirical cumulative distribution function (ECDF) provides an alte...
/code/stat_ecdf_weighted.R
no_license
stefanherzog/ais_surveys
R
false
false
3,136
r
# https://github.com/NicolasWoloszko/stat_ecdf_weighted/blob/6e96639aa045f8ac94a660421ef314338a574ee3/stat_ecdf_weighted.R # all packages are loaded in `code/_dependencies.R` # library(spatstat) #' Compute empirical cumulative distribution #' #' The empirical cumulative distribution function (ECDF) provides an alte...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shuffle.R \name{shuffle} \alias{shuffle} \title{Random shuffle of a vector} \usage{ shuffle(x) } \arguments{ \item{x}{[\code{vector}]\cr Input vector.} } \value{ Shuffled/scrambled \code{x}. } \description{ Basically an alias for \code{\link[...
/man/shuffle.Rd
no_license
jakobbossek/re
R
false
true
492
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shuffle.R \name{shuffle} \alias{shuffle} \title{Random shuffle of a vector} \usage{ shuffle(x) } \arguments{ \item{x}{[\code{vector}]\cr Input vector.} } \value{ Shuffled/scrambled \code{x}. } \description{ Basically an alias for \code{\link[...
# Model parameters model_method = "nnet" model_grid = expand.grid(size = c(50), decay = c(2.0)) #model_grid = NULL extra_params = list(MaxNWts = 100000, linout = TRUE) # Cross-validation parameters do_cv = TRUE partition_ratio = .8 # for cross-validation cv_folds = 10 # for cross-validation ve...
/Output/old_decay/26_11_2016_17.23.19_nnet_full/nnet_full.R
no_license
NickTalavera/Kaggle---Nick-Josh-Dina
R
false
false
626
r
# Model parameters model_method = "nnet" model_grid = expand.grid(size = c(50), decay = c(2.0)) #model_grid = NULL extra_params = list(MaxNWts = 100000, linout = TRUE) # Cross-validation parameters do_cv = TRUE partition_ratio = .8 # for cross-validation cv_folds = 10 # for cross-validation ve...
context("Ensuring that the `cells_*()` functions work as expected") # Function to skip tests if Suggested packages not available on system check_suggests <- function() { skip_if_not_installed("rvest") skip_if_not_installed("xml2") } # Create a minimal `tbl` for testing HTML output tbl <- dplyr::tribble( ~gr...
/tests/testthat/test-location_cells.R
permissive
louisahsmith/gt
R
false
false
24,123
r
context("Ensuring that the `cells_*()` functions work as expected") # Function to skip tests if Suggested packages not available on system check_suggests <- function() { skip_if_not_installed("rvest") skip_if_not_installed("xml2") } # Create a minimal `tbl` for testing HTML output tbl <- dplyr::tribble( ~gr...
\alias{gdkWindowUnstick} \name{gdkWindowUnstick} \title{gdkWindowUnstick} \description{Reverse operation for \code{\link{gdkWindowStick}}; see \code{\link{gdkWindowStick}}, and \code{\link{gtkWindowUnstick}}.} \usage{gdkWindowUnstick(object)} \arguments{\item{\verb{object}}{a toplevel \code{\link{GdkWindow}}}} \author{...
/RGtk2/man/gdkWindowUnstick.Rd
no_license
lawremi/RGtk2
R
false
false
383
rd
\alias{gdkWindowUnstick} \name{gdkWindowUnstick} \title{gdkWindowUnstick} \description{Reverse operation for \code{\link{gdkWindowStick}}; see \code{\link{gdkWindowStick}}, and \code{\link{gtkWindowUnstick}}.} \usage{gdkWindowUnstick(object)} \arguments{\item{\verb{object}}{a toplevel \code{\link{GdkWindow}}}} \author{...
library(recosystem) ### Name: tune ### Title: Tuning Model Parameters ### Aliases: tune ### ** Examples ## Not run: ##D train_set = system.file("dat", "smalltrain.txt", package = "recosystem") ##D train_src = data_file(train_set) ##D r = Reco() ##D set.seed(123) # This is a randomized algorithm ##D res = r$tune( #...
/data/genthat_extracted_code/recosystem/examples/tune.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
552
r
library(recosystem) ### Name: tune ### Title: Tuning Model Parameters ### Aliases: tune ### ** Examples ## Not run: ##D train_set = system.file("dat", "smalltrain.txt", package = "recosystem") ##D train_src = data_file(train_set) ##D r = Reco() ##D set.seed(123) # This is a randomized algorithm ##D res = r$tune( #...
#---------- borrowed from dplyr dots <- function(...) { eval(substitute(alist(...))) } named_dots <- function(...) { auto_name(dots(...)) } auto_names <- function(x) { nms <- names2(x) missing <- nms == "" if (all(!missing)) return(nms) deparse2 <- function(x) paste(deparse(x, 500L), collapse = "") ...
/R/siesta.R
no_license
romainfrancois/siesta
R
false
false
2,429
r
#---------- borrowed from dplyr dots <- function(...) { eval(substitute(alist(...))) } named_dots <- function(...) { auto_name(dots(...)) } auto_names <- function(x) { nms <- names2(x) missing <- nms == "" if (all(!missing)) return(nms) deparse2 <- function(x) paste(deparse(x, 500L), collapse = "") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RMSE.R \name{RMSE} \alias{RMSE} \title{Root mean square error (RMSE)} \usage{ RMSE(obs, sim, na.rm = FALSE) } \arguments{ \item{obs}{measured values} \item{sim}{predicted values} \item{na.rm}{logical. Should missing values be removed?} } \d...
/man/RMSE.Rd
no_license
cran/SoilHyP
R
false
true
374
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RMSE.R \name{RMSE} \alias{RMSE} \title{Root mean square error (RMSE)} \usage{ RMSE(obs, sim, na.rm = FALSE) } \arguments{ \item{obs}{measured values} \item{sim}{predicted values} \item{na.rm}{logical. Should missing values be removed?} } \d...
# Functions could be used in the analysis # # Author: tao.xu ############################################################################### #function(data, subset = NULL, feature, disease, files){ # if(is.null(subset)){ # subset = dim(S4)[1] # } # for(i in 1:length(diseases)){ # chars = apply(S4[subset,feature], 2...
/Nurse_Project/Toolkits.R
no_license
xutaosjtu/Nurse-project
R
false
false
8,817
r
# Functions could be used in the analysis # # Author: tao.xu ############################################################################### #function(data, subset = NULL, feature, disease, files){ # if(is.null(subset)){ # subset = dim(S4)[1] # } # for(i in 1:length(diseases)){ # chars = apply(S4[subset,feature], 2...
#' dimsum__diagnostics_report #' #' Generate diagnostic plots for all samples. #' #' @param dimsum_meta an experiment metadata object (required) #' @param report_outpath diagnostics report output path (required) #' @param input_samples_pattern input samples string pattern (default: "_s0_") #' @param output_samples_pat...
/R/dimsum__diagnostics_report.R
permissive
lehner-lab/DiMSum
R
false
false
5,299
r
#' dimsum__diagnostics_report #' #' Generate diagnostic plots for all samples. #' #' @param dimsum_meta an experiment metadata object (required) #' @param report_outpath diagnostics report output path (required) #' @param input_samples_pattern input samples string pattern (default: "_s0_") #' @param output_samples_pat...
## ## Modeling Epidemics over Observed Networks ## EpiModel Gallery (https://github.com/statnet/EpiModel-Gallery) ## ## Author: Samuel M. Jenness (Emory University) ## Date: August 2018 ## # Example 1: Base Model --------------------------------------------------- ## Updated Initialization Module ## new_init_mod <...
/2018-08-ObservedNetworkData/module-fx.R
permissive
EpiModel/EpiModel-Gallery
R
false
false
5,976
r
## ## Modeling Epidemics over Observed Networks ## EpiModel Gallery (https://github.com/statnet/EpiModel-Gallery) ## ## Author: Samuel M. Jenness (Emory University) ## Date: August 2018 ## # Example 1: Base Model --------------------------------------------------- ## Updated Initialization Module ## new_init_mod <...
/Other_machine_learning_models/xgboost.R
no_license
Xudeh/XGBLC
R
false
false
10,572
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SCnormFit.R \name{SCnormFit} \alias{SCnormFit} \title{Fit group quantile regression for K groups} \usage{ SCnormFit(Data, SeqDepth, Slopes, K, PropToUse = 0.25, Tau = 0.5, ditherCounts) } \arguments{ \item{Data}{can be a matrix of single-cell...
/man/SCnormFit.Rd
no_license
rhondabacher/SCnorm
R
false
true
2,291
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SCnormFit.R \name{SCnormFit} \alias{SCnormFit} \title{Fit group quantile regression for K groups} \usage{ SCnormFit(Data, SeqDepth, Slopes, K, PropToUse = 0.25, Tau = 0.5, ditherCounts) } \arguments{ \item{Data}{can be a matrix of single-cell...
weather = read.csv("weatherHistory.csv", header = TRUE) weather = weather[0:121,] # print(weather) weather$Daily.Summary <- factor(weather$Daily.Summary) weather$Wind.Bearing..degrees. <- factor(weather$Wind.Bearing..degrees.) weather.aov <- aov(Temperature..C.~ Daily.Summary*Wind.Bearing..degrees., data = weather) sum...
/Linear Regression Case 3 (Factorial ANOVA or Multiple Linear Regression Model).r
no_license
elizaan/Regression-Analysis-with-R
R
false
false
521
r
weather = read.csv("weatherHistory.csv", header = TRUE) weather = weather[0:121,] # print(weather) weather$Daily.Summary <- factor(weather$Daily.Summary) weather$Wind.Bearing..degrees. <- factor(weather$Wind.Bearing..degrees.) weather.aov <- aov(Temperature..C.~ Daily.Summary*Wind.Bearing..degrees., data = weather) sum...
library(readr) library(BradleyTerry2) library(reshape) #source("Kelly.R") inv_logit <- function(p) { exp(p) / (1 + exp(p)) } numeric(Pr) Pr = 1.4 numeric (edge) edge = 0 prob_BT <- function(ability_1, ability_2) { inv_logit(ability_1 - ability_2) } matches <- read.csv("matches.csv", stringsAsFactors=FALSE) ma...
/R-BradleyT/Winner_loser_mix.R
no_license
Michael-karn-ivanov/dota
R
false
false
3,146
r
library(readr) library(BradleyTerry2) library(reshape) #source("Kelly.R") inv_logit <- function(p) { exp(p) / (1 + exp(p)) } numeric(Pr) Pr = 1.4 numeric (edge) edge = 0 prob_BT <- function(ability_1, ability_2) { inv_logit(ability_1 - ability_2) } matches <- read.csv("matches.csv", stringsAsFactors=FALSE) ma...
###################### # internal functions # ###################### ### wrapper functions for reading slot data ### #' haveTrDir (internal function) #' #' `haveTrDir()` extracts the content of the \code{transcriptionDirection} slot #' (logical value) from a \code{pmsignature::MutationFeatureData} object. #' #' @p...
/R/external_classes_wrapper_functions.R
no_license
zhiiiyang/decompTumor2Sig
R
false
false
22,582
r
###################### # internal functions # ###################### ### wrapper functions for reading slot data ### #' haveTrDir (internal function) #' #' `haveTrDir()` extracts the content of the \code{transcriptionDirection} slot #' (logical value) from a \code{pmsignature::MutationFeatureData} object. #' #' @p...
# ## cardmatrix.R # Functions relating to comparing, generating and updating card matrix # Exact data form of cardmatrix TBC, but will contain 36 cells with information like # - row and column of card # - type of card (related to picture file name and whether if its action card) # - opened/close # ### generateMatrix()...
/cardmatrix.R
no_license
richicodes/MindMatch
R
false
false
6,757
r
# ## cardmatrix.R # Functions relating to comparing, generating and updating card matrix # Exact data form of cardmatrix TBC, but will contain 36 cells with information like # - row and column of card # - type of card (related to picture file name and whether if its action card) # - opened/close # ### generateMatrix()...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeDTM.R \name{makeDTM} \alias{makeDTM} \title{makeDTM} \usage{ makeDTM(docs, key = "all", LABEL = FALSE, weight = "tf", TEXT.name = NULL, LABEL.name = NULL, RHINO = FALSE, pos = "ALL") } \arguments{ \item{docs}{dataframe. Every ...
/man/makeDTM.Rd
no_license
SukjaeChoi/makeDTM
R
false
true
1,300
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/makeDTM.R \name{makeDTM} \alias{makeDTM} \title{makeDTM} \usage{ makeDTM(docs, key = "all", LABEL = FALSE, weight = "tf", TEXT.name = NULL, LABEL.name = NULL, RHINO = FALSE, pos = "ALL") } \arguments{ \item{docs}{dataframe. Every ...
#' Extract variable values for a set of patients and a set of events. #' #' @param patients the patients IDs to focus on. #' @param variables the variables to extract. #' @param events the events to focus on. Not taken into account if variables #' are not followed-up at the different visits. #' @param snps SNP data to...
/Package-Template/R/extractVariables.R
no_license
patzaw/PPMI-R-package-generator
R
false
false
3,554
r
#' Extract variable values for a set of patients and a set of events. #' #' @param patients the patients IDs to focus on. #' @param variables the variables to extract. #' @param events the events to focus on. Not taken into account if variables #' are not followed-up at the different visits. #' @param snps SNP data to...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appengine_objects.R \name{StaticFilesHandler.httpHeaders} \alias{StaticFilesHandler.httpHeaders} \title{StaticFilesHandler.httpHeaders Object} \usage{ StaticFilesHandler.httpHeaders() } \value{ StaticFilesHandler.httpHeaders object } \descrip...
/googleappenginev1alpha.auto/man/StaticFilesHandler.httpHeaders.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
582
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/appengine_objects.R \name{StaticFilesHandler.httpHeaders} \alias{StaticFilesHandler.httpHeaders} \title{StaticFilesHandler.httpHeaders Object} \usage{ StaticFilesHandler.httpHeaders() } \value{ StaticFilesHandler.httpHeaders object } \descrip...
context("test do_bayes_ab") test_that("test do_bayes_ab test with summary output", { set.seed(0) data_a <- data.frame( access_count = round(runif(50) * 100 + 100) ) %>% dplyr::mutate(click = 0.2 + 0.8 * runif(nrow(.)), group = "a") data_b <- data.frame( access_count = round(runif(20) * 20 + 20) )...
/tests/testthat/test_do_bayes_ab.R
permissive
exploratory-io/exploratory_func
R
false
false
4,394
r
context("test do_bayes_ab") test_that("test do_bayes_ab test with summary output", { set.seed(0) data_a <- data.frame( access_count = round(runif(50) * 100 + 100) ) %>% dplyr::mutate(click = 0.2 + 0.8 * runif(nrow(.)), group = "a") data_b <- data.frame( access_count = round(runif(20) * 20 + 20) )...
library(ggplot2) library(ggplot2movies) pl <- ggplot(movies,aes(x =year,y = rating)) #Binwidth by default is (1,1) #in bin2d data is shown by rectangles bins pl2 <- pl + geom_bin2d(binwidth=c(3,1)) #Scale_fill_gradient is used to change the colour giving different color # to high and low values pl3 <- pl2 + scale_f...
/GGPLOT2/Two-D_variable_plot.R
no_license
Himanshu-rathee/R-Basics--Visualization-
R
false
false
477
r
library(ggplot2) library(ggplot2movies) pl <- ggplot(movies,aes(x =year,y = rating)) #Binwidth by default is (1,1) #in bin2d data is shown by rectangles bins pl2 <- pl + geom_bin2d(binwidth=c(3,1)) #Scale_fill_gradient is used to change the colour giving different color # to high and low values pl3 <- pl2 + scale_f...
train=read.table("train.snpinfo",stringsAsFactors=F,header=T) ss=read.table("preSummStat",stringsAsFactors=F,header=T) newFreq=rep(0,nrow(ss)) newFreq[ss$ref == train$alleleA]=ss$reffreq[ss$ref == train$alleleA] newFreq[ss$ref != train$alleleA]=1-ss$reffreq[ss$ref != train$alleleA] ss$ref=train$alleleA ss$alt=train$al...
/fixSS_2.R
no_license
kulmsc/PRS-Ithaca
R
false
false
416
r
train=read.table("train.snpinfo",stringsAsFactors=F,header=T) ss=read.table("preSummStat",stringsAsFactors=F,header=T) newFreq=rep(0,nrow(ss)) newFreq[ss$ref == train$alleleA]=ss$reffreq[ss$ref == train$alleleA] newFreq[ss$ref != train$alleleA]=1-ss$reffreq[ss$ref != train$alleleA] ss$ref=train$alleleA ss$alt=train$al...
source("aritmod/invmod.R") tchino <- function(a,p) # Entrada: a (vector de enteros) # p (vector de enteros primos dos a dos) # Salida: (x,n) # x es congruente con a[i] módulo p[i] # n=prod(p) { #Chequeos n <- prod(p) l <- length(p) #Comprobamos que los elemen...
/criptografia/programas/aritmod/tchino.R
no_license
BigDataFred/MasterComputationalEnginerring
R
false
false
772
r
source("aritmod/invmod.R") tchino <- function(a,p) # Entrada: a (vector de enteros) # p (vector de enteros primos dos a dos) # Salida: (x,n) # x es congruente con a[i] módulo p[i] # n=prod(p) { #Chequeos n <- prod(p) l <- length(p) #Comprobamos que los elemen...
#' Testing for change points in time series via polynomial regression #' #' The function uses a nonlinear polynomial regression model in which it tests for the null hypothesis of # structural stability in the regression parameters against the alternative of a break at an unknown time. #' The method is based on the e...
/R/boot.test.stat.aue_DOB.R
no_license
watkinson7/funtimes
R
false
false
6,203
r
#' Testing for change points in time series via polynomial regression #' #' The function uses a nonlinear polynomial regression model in which it tests for the null hypothesis of # structural stability in the regression parameters against the alternative of a break at an unknown time. #' The method is based on the e...
# # install.packages('RODBC') # library(RODBC) # # connStrSql <- "Driver=SQL Server;Server=localhost;Database=Test;Uid=sa;Pwd=pass@word1" # # ch <- odbcConnect("Readmission", uid = "sa", pwd = "pass@word1") # p<-sqlQuery(ch,"SELECT [Episodes_Medical Officer Code 1] # ,[Source of Referral Desc] # ...
/rxDTREE and rpart decision trees.R
no_license
yangl-github/Readmission_alrogithm_samples
R
false
false
4,504
r
# # install.packages('RODBC') # library(RODBC) # # connStrSql <- "Driver=SQL Server;Server=localhost;Database=Test;Uid=sa;Pwd=pass@word1" # # ch <- odbcConnect("Readmission", uid = "sa", pwd = "pass@word1") # p<-sqlQuery(ch,"SELECT [Episodes_Medical Officer Code 1] # ,[Source of Referral Desc] # ...
library(shiny) library(rpivotTable) data <- read.csv("IMDB.csv") ui <- fluidPage( titlePanel("PD12 Zuzanna Mróz - Top rated English movies of this decade from IMDB"), mainPanel( textOutput(outputId = "text"), rpivotTableOutput(outputId = "table") ) ) server <- funct...
/PraceDomowe/TYDZIEN12/MrozZuzanna/app.R
no_license
z-mrozu/2020Z-TechnikiWizualizacjiDanych
R
false
false
720
r
library(shiny) library(rpivotTable) data <- read.csv("IMDB.csv") ui <- fluidPage( titlePanel("PD12 Zuzanna Mróz - Top rated English movies of this decade from IMDB"), mainPanel( textOutput(outputId = "text"), rpivotTableOutput(outputId = "table") ) ) server <- funct...
#' Method dispatch for metadictionary #' #' @param the_data the data to be documented #' @param dict the dictionary to append it to #' @param levelgen the level to generate the metadata at #' #' @return #' @export #' #' @examples metaDictionary <- function(the_data, dict, levelgen) { UseMethod("metaDictionary")...
/R/S3_setup.R
permissive
JDOsborne1/megametadata
R
false
false
1,635
r
#' Method dispatch for metadictionary #' #' @param the_data the data to be documented #' @param dict the dictionary to append it to #' @param levelgen the level to generate the metadata at #' #' @return #' @export #' #' @examples metaDictionary <- function(the_data, dict, levelgen) { UseMethod("metaDictionary")...
## Paste helper functions pst <- function(...){paste(..., sep="")}
/Ex_2/functions/pst.R
no_license
marcohv/exercises_ts_dtu
R
false
false
67
r
## Paste helper functions pst <- function(...){paste(..., sep="")}