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
### getComparisons.R --- #---------------------------------------------------------------------- ## author: Thomas Alexander Gerds ## created: Jan 3 2016 (13:30) ## Version: ## last-updated: Aug 26 2016 (14:58) ## By: Thomas Alexander Gerds ## Update #: 36 #-------------------------------------------...
/R/getComparisons.R
no_license
PablitoCho/riskRegression
R
false
false
1,435
r
### getComparisons.R --- #---------------------------------------------------------------------- ## author: Thomas Alexander Gerds ## created: Jan 3 2016 (13:30) ## Version: ## last-updated: Aug 26 2016 (14:58) ## By: Thomas Alexander Gerds ## Update #: 36 #-------------------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/computeMatrix.r \name{computeMatrix} \alias{computeMatrix} \title{Read density per region} \usage{ computeMatrix(inFiles, regionsFiles, deeptoolsPath = "", outDest = "./", outSuffix = "", textMatrix = FALSE, startLabel = NULL, endLabel = ...
/man/computeMatrix.Rd
no_license
rkirk822/rnaseq
R
false
true
2,058
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/computeMatrix.r \name{computeMatrix} \alias{computeMatrix} \title{Read density per region} \usage{ computeMatrix(inFiles, regionsFiles, deeptoolsPath = "", outDest = "./", outSuffix = "", textMatrix = FALSE, startLabel = NULL, endLabel = ...
#' Computes the Number of Non-Missing Data Points by Group #' #' This function computes the number of non-missing observations for samples, #' based on a group designation, for every biomolecule in the dataset #' #' @param omicsData an optional object of one of the classes "pepData", #' "proData", "metabData", ...
/R/nonmissing_per_group.R
permissive
pmartR/pmartR
R
false
false
3,318
r
#' Computes the Number of Non-Missing Data Points by Group #' #' This function computes the number of non-missing observations for samples, #' based on a group designation, for every biomolecule in the dataset #' #' @param omicsData an optional object of one of the classes "pepData", #' "proData", "metabData", ...
647c65a8a1b70f48c7f932220a35f9f6 cf_2_2x4_r_.qdimacs 95208 2407
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Gent-Rowley/Connect2/cf_2_2x4_r_/cf_2_2x4_r_.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
63
r
647c65a8a1b70f48c7f932220a35f9f6 cf_2_2x4_r_.qdimacs 95208 2407
## Correlate expression with tAI get_expression <- function(abbr){ if (sum(grep(";",abbr))>0){ names = unlist(strsplit(abbr,";")) for (n in names){ if (!exists("output")){ output = read.csv(sprintf("/home/xhernandez/Downloads/TCGA-mRNAseq/20160128-%s-RNAseq2GeneNorm.txt",n), ...
/tumor/11-3_tAI_proteomics_correlations.R
no_license
mywanuo/tRNA_TCGA
R
false
false
4,612
r
## Correlate expression with tAI get_expression <- function(abbr){ if (sum(grep(";",abbr))>0){ names = unlist(strsplit(abbr,";")) for (n in names){ if (!exists("output")){ output = read.csv(sprintf("/home/xhernandez/Downloads/TCGA-mRNAseq/20160128-%s-RNAseq2GeneNorm.txt",n), ...
#create some global variables library(dateManip) calendar <- createCalendarLikeMicrosoft(2007,'Month') calendar.week <- createCalendarLikeMicrosoft(2007, 'Week') all <- c('Raw Material','Instrument Production WIP','BioReagents', 'HTFA Instrument WIP', 'FA2.0 Instrument WIP','FA1.5 Instrument WIP') iNcrType <- c('Instr...
/Apps/O_SUPP/O_SUPP_global.R
no_license
BioAimie/AnalyticsWebHub
R
false
false
5,528
r
#create some global variables library(dateManip) calendar <- createCalendarLikeMicrosoft(2007,'Month') calendar.week <- createCalendarLikeMicrosoft(2007, 'Week') all <- c('Raw Material','Instrument Production WIP','BioReagents', 'HTFA Instrument WIP', 'FA2.0 Instrument WIP','FA1.5 Instrument WIP') iNcrType <- c('Instr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class.Ico.R \name{class.Ico} \alias{class.Ico} \title{class.Ico} \usage{ class.Ico(path, image.type = c("jpg", "png", "tiff")) } \arguments{ \item{path}{character: path of an image file} \item{image.type}{character: image format file ("jpg",...
/man/class.Ico.Rd
no_license
MicroWeaR/MicroWeaR
R
false
true
611
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class.Ico.R \name{class.Ico} \alias{class.Ico} \title{class.Ico} \usage{ class.Ico(path, image.type = c("jpg", "png", "tiff")) } \arguments{ \item{path}{character: path of an image file} \item{image.type}{character: image format file ("jpg",...
rm(list=ls()) chapter_path = "C:/Users/conno/Documents/GitHub/Baseball/Analyzing Baseball Data With R/Book - First Edition/Chapter 4 - The Relation Between Runs and Wins" setwd(chapter_path) # The Teams Table in the Lahman Database # load in teams table and display the last 5 rows with tail teams <- read.csv("Teams....
/Analyzing Baseball Data With R/Book - First Edition/Chapter 4 - The Relation Between Runs and Wins/ch4_sec3.R
no_license
connormoffatt/Baseball
R
false
false
1,668
r
rm(list=ls()) chapter_path = "C:/Users/conno/Documents/GitHub/Baseball/Analyzing Baseball Data With R/Book - First Edition/Chapter 4 - The Relation Between Runs and Wins" setwd(chapter_path) # The Teams Table in the Lahman Database # load in teams table and display the last 5 rows with tail teams <- read.csv("Teams....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/evapotranspiration.r \name{potential.ET} \alias{potential.ET} \title{Potential Evapotranspiration} \usage{ potential.ET(data, Tair = "Tair", pressure = "pressure", Rn = "Rn", G = NULL, S = NULL, VPD = "VPD", Ga = "Ga_h", approach = c("Pri...
/man/potential.ET.Rd
no_license
lhmet-forks/bigleaf
R
false
true
5,381
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/evapotranspiration.r \name{potential.ET} \alias{potential.ET} \title{Potential Evapotranspiration} \usage{ potential.ET(data, Tair = "Tair", pressure = "pressure", Rn = "Rn", G = NULL, S = NULL, VPD = "VPD", Ga = "Ga_h", approach = c("Pri...
require(quantmod) require(PerformanceAnalytics) stepwiseCorRank <- function(corMatrix, startNames=NULL, stepSize=1, bestHighestRank=FALSE) { #edge cases if(dim(corMatrix)[1] == 1) { return(corMatrix) } else if (dim(corMatrix)[1] == 2) { ranks <- c(1.5, 1.5) names(ranks) <- colnames(corMatrix) ret...
/demo/FAASWC.R
no_license
qitianchen/IKTrading
R
false
false
9,312
r
require(quantmod) require(PerformanceAnalytics) stepwiseCorRank <- function(corMatrix, startNames=NULL, stepSize=1, bestHighestRank=FALSE) { #edge cases if(dim(corMatrix)[1] == 1) { return(corMatrix) } else if (dim(corMatrix)[1] == 2) { ranks <- c(1.5, 1.5) names(ranks) <- colnames(corMatrix) ret...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/err_tdy.R \name{err_tdy_non_negative_integer} \alias{err_tdy_non_negative_integer} \alias{err_tdy_non_negative_integer_scalar} \alias{err_tdy_non_negative_integer_vector} \title{Check and tidy a non-negative integer scalar or vector} \usage{ ...
/man/err_tdy_non_negative_integer.Rd
permissive
bayesiandemography/demcheck
R
false
true
855
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/err_tdy.R \name{err_tdy_non_negative_integer} \alias{err_tdy_non_negative_integer} \alias{err_tdy_non_negative_integer_scalar} \alias{err_tdy_non_negative_integer_vector} \title{Check and tidy a non-negative integer scalar or vector} \usage{ ...
ids_detect <- function(ind, pattern){ require(stringr) ids <- ind ids <- lapply(pattern, str_detect, string = as.character(ids)) ids <- as.logical(Reduce('+', ids)) return(ids) }
/functions/zoo_utils/ids_detect.R
no_license
Allisterh/gdp_forecasts-nsaleille
R
false
false
199
r
ids_detect <- function(ind, pattern){ require(stringr) ids <- ind ids <- lapply(pattern, str_detect, string = as.character(ids)) ids <- as.logical(Reduce('+', ids)) return(ids) }
library(mapplots) library(shapefiles) xlim = c(-180, 180) ylim = c(-90, 90) #load shapefile wmap = read.shapefile ("xxx") # define x,y,z for pies x <- c(-100, 100) y <- c(50, -50) z1 <- c(0.25, 0.25, 0.5) z2 <- c(0.5, 0.2, 0.3) z <- rbind(z1,z2) # define radii of the pies r <- c(5, 10) # it's easier to have all dat...
/aplot.R
permissive
iajzenszmi/CodeCode
R
false
false
654
r
library(mapplots) library(shapefiles) xlim = c(-180, 180) ylim = c(-90, 90) #load shapefile wmap = read.shapefile ("xxx") # define x,y,z for pies x <- c(-100, 100) y <- c(50, -50) z1 <- c(0.25, 0.25, 0.5) z2 <- c(0.5, 0.2, 0.3) z <- rbind(z1,z2) # define radii of the pies r <- c(5, 10) # it's easier to have all dat...
## Function makeCacheMatrix() turns a regular matrix in an object that ## - initializes inverse value ## - stores original matrix (set) ## - returns original matrix (get) ## - stores inverse value in cache (setinverse) ## - looks up inverse value in cache (getinverse) makeCacheMatrix <- function(x = matrix()) { ##...
/cachematrix.R
no_license
jvlaming/ProgrammingAssignment2
R
false
false
1,769
r
## Function makeCacheMatrix() turns a regular matrix in an object that ## - initializes inverse value ## - stores original matrix (set) ## - returns original matrix (get) ## - stores inverse value in cache (setinverse) ## - looks up inverse value in cache (getinverse) makeCacheMatrix <- function(x = matrix()) { ##...
##Frequency of occurrence in data - what is actually occurring in the data and ##how often each distinct entry is occurring and percentage of all visits each entry ##accounts for. ## If the input is empty, say "Missing" ##country country_perc<-function(data){ Country=data%>% select(C_BioSense_ID, Patient_Country...
/R/country_perc.R
no_license
SophiaLC/IHI_DQ
R
false
false
589
r
##Frequency of occurrence in data - what is actually occurring in the data and ##how often each distinct entry is occurring and percentage of all visits each entry ##accounts for. ## If the input is empty, say "Missing" ##country country_perc<-function(data){ Country=data%>% select(C_BioSense_ID, Patient_Country...
# Jake Yeung # Date of Creation: 2020-04-30 # File: ~/projects/scchic/scripts/rstudioserver_analysis/ZF_all_merged/compare_pseudobulk_with_celltype_specific_genesets_custom.R # In standard diff analysis, sometimes the mean levels matter (sometimes it doesn't?) rm(list=ls()) library(dplyr) library(tidyr) library(ggp...
/scripts/rstudioserver_analysis/ZF_all_merged/compare_pseudobulk_with_celltype_specific_genesets_custom.R
no_license
jakeyeung/sortchicAllScripts
R
false
false
14,808
r
# Jake Yeung # Date of Creation: 2020-04-30 # File: ~/projects/scchic/scripts/rstudioserver_analysis/ZF_all_merged/compare_pseudobulk_with_celltype_specific_genesets_custom.R # In standard diff analysis, sometimes the mean levels matter (sometimes it doesn't?) rm(list=ls()) library(dplyr) library(tidyr) library(ggp...
#' Tools to simulate, manage, visualize, and jointly analyze spatially and #' temporally explicit datasets of mating potential #' #' This package faciltates the investigation of three dimensions of mating #' potential. It provides a method for simulating populations and includes a #' dataset. #' #' @docType package #' ...
/R/mateable.R
no_license
danhan52/mateable
R
false
false
894
r
#' Tools to simulate, manage, visualize, and jointly analyze spatially and #' temporally explicit datasets of mating potential #' #' This package faciltates the investigation of three dimensions of mating #' potential. It provides a method for simulating populations and includes a #' dataset. #' #' @docType package #' ...
# # Name: Ashok Raja # Homework # 1 # Andrew ID: araja1 # Loading libraries library(shiny) library(dplyr) library(plotly) library(tibble) # Fetching the dataset mtcars into cars and changing the rowname to a column called "Model" cars <- as_tibble(rownames_to_column(mtcars)) colnames(cars)[colnames(cars)=="rowname"] ...
/hw1/hw1-araja1.R
no_license
RforOperations2018/hw1-araja1
R
false
false
2,026
r
# # Name: Ashok Raja # Homework # 1 # Andrew ID: araja1 # Loading libraries library(shiny) library(dplyr) library(plotly) library(tibble) # Fetching the dataset mtcars into cars and changing the rowname to a column called "Model" cars <- as_tibble(rownames_to_column(mtcars)) colnames(cars)[colnames(cars)=="rowname"] ...
# PACKAGE CALLS ----------------------------------------------------------- library(shiny) # Web Application Framework for R library(shinyWidgets) # Custom Inputs Widgets for Shiny library(shinyjs) # Easily Improve the User Experience of Your Shiny Apps in Seconds library(shinyBS) # Twitter Bootstrap Components for S...
/global.R
no_license
dhusereau/CHEERSChecklist
R
false
false
2,739
r
# PACKAGE CALLS ----------------------------------------------------------- library(shiny) # Web Application Framework for R library(shinyWidgets) # Custom Inputs Widgets for Shiny library(shinyjs) # Easily Improve the User Experience of Your Shiny Apps in Seconds library(shinyBS) # Twitter Bootstrap Components for S...
# chkRes$lnr_result <- loners_scan(data = dataset$data.loaded, keyVar = input$keyVariable, # subset = input$lnr_subset, threshold = input$lnr_threshold, # upLimit = input$lnr_upLimit, accept.dateTime = input$lnr_dateAsFactor) # # output$lnr_log <- # ...
/dataCleaner/includes/methods/includes/lnr_render.R
permissive
oucru-biostats/dataCleanerX
R
false
false
1,355
r
# chkRes$lnr_result <- loners_scan(data = dataset$data.loaded, keyVar = input$keyVariable, # subset = input$lnr_subset, threshold = input$lnr_threshold, # upLimit = input$lnr_upLimit, accept.dateTime = input$lnr_dateAsFactor) # # output$lnr_log <- # ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plosfigtabcaps.R \name{plosfigtabcaps} \alias{plosfigtabcaps} \title{Search PLoS Journals figure and table captions.} \usage{ plosfigtabcaps(q = NULL, fl = "id", fq = NULL, sort = NULL, start = 0, limit = 10, sleep = 6, terms = NULL, fields...
/man/plosfigtabcaps.Rd
permissive
sburra2/testautomationdemo
R
false
true
4,580
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plosfigtabcaps.R \name{plosfigtabcaps} \alias{plosfigtabcaps} \title{Search PLoS Journals figure and table captions.} \usage{ plosfigtabcaps(q = NULL, fl = "id", fq = NULL, sort = NULL, start = 0, limit = 10, sleep = 6, terms = NULL, fields...
\name{phredScoreStringToInt} \alias{phredScoreStringToInt} \title{ Convert Phred Quality Score Strings to Integers } \description{ Turn the cryptic Phred quality scores from FASTQ files, etc., into integers } \usage{ phredScoreStringToInt(txt, scoreType = "Phred33") } \arguments{ \item{txt}{ character vector of Phred...
/man/phredScoreStringToInt.Rd
no_license
robertdouglasmorrison/DuffyTools
R
false
false
778
rd
\name{phredScoreStringToInt} \alias{phredScoreStringToInt} \title{ Convert Phred Quality Score Strings to Integers } \description{ Turn the cryptic Phred quality scores from FASTQ files, etc., into integers } \usage{ phredScoreStringToInt(txt, scoreType = "Phred33") } \arguments{ \item{txt}{ character vector of Phred...
iris$Flower <- 1:nrow(iris) iris.wide <- gather(iris, part_measure, val, -Species, -Flower ) iris.wide <- separate(iris.wide, part_measure, c("part","measure")) iris.wide <- spread(iris.wide, measure, val) iris.group <- group_by(iris, Species) iris.group <- summarise(iris.group, PLM = mean(Petal.Length), PWM = m...
/aula07/aula07.R
no_license
tetsufmbio/IMD0601
R
false
false
492
r
iris$Flower <- 1:nrow(iris) iris.wide <- gather(iris, part_measure, val, -Species, -Flower ) iris.wide <- separate(iris.wide, part_measure, c("part","measure")) iris.wide <- spread(iris.wide, measure, val) iris.group <- group_by(iris, Species) iris.group <- summarise(iris.group, PLM = mean(Petal.Length), PWM = m...
#' Return Scorelines that only occurred n times in history #' #' note don't try this with 0 - won't return infinite possible scorelines #' If you pick crazy numbers for the number of times e.g. 34223, #' you'll get an error message this function is meant for small #' numbers of occurrences #' #' @param df The results d...
/R/n_offs.R
no_license
jalapic/engsoccerdata
R
false
false
2,163
r
#' Return Scorelines that only occurred n times in history #' #' note don't try this with 0 - won't return infinite possible scorelines #' If you pick crazy numbers for the number of times e.g. 34223, #' you'll get an error message this function is meant for small #' numbers of occurrences #' #' @param df The results d...
#'@rdname get_rm_hmc_kernel #'@title Construct Riemann manifold Hamiltonian Monte Carlo kernel for Cox process application #'@param logtarget evaluates log density of the target distribution #'@param gradlogtarget evaluates gradient of the log target density #' @param parameters list with keys: #' \code{stepsize} s...
/R/rm_hmc_kernel.R
no_license
jeremyhengjm/GibbsFlow
R
false
false
2,187
r
#'@rdname get_rm_hmc_kernel #'@title Construct Riemann manifold Hamiltonian Monte Carlo kernel for Cox process application #'@param logtarget evaluates log density of the target distribution #'@param gradlogtarget evaluates gradient of the log target density #' @param parameters list with keys: #' \code{stepsize} s...
library(data.table) ## read file and create table x <- fread("household_power_consumption.txt") ## subset intended rows y <- x[x$Date %in% c("1/2/2007", "2/2/2007")] ## arrange variables as appropriate y$Global_active_power <- as.numeric(y$Global_active_power) y$Date <- as.POSIXct(y$Date) y$weekday <- weekday...
/exploratory-analysis-course-project-1/plot2.R
no_license
Nanonny/datasciencecoursera
R
false
false
661
r
library(data.table) ## read file and create table x <- fread("household_power_consumption.txt") ## subset intended rows y <- x[x$Date %in% c("1/2/2007", "2/2/2007")] ## arrange variables as appropriate y$Global_active_power <- as.numeric(y$Global_active_power) y$Date <- as.POSIXct(y$Date) y$weekday <- weekday...
install.packages("stats") # get center and scaling values m <- apply(data4$data, 2, mean) s <- apply(data4$data, 2, sd) val<-data4$model val2<- unscale(val) valval<-t((t(val) * s[1]) + m[1]) plot(data4$data$year,data4$data$temp,xlab = "Girth",ylab = "Height",main = "Height vs Girth") lines(valval, x_g,col = 'dark...
/R/Assignment2/test.R
no_license
Harshie/MastersCourseWork
R
false
false
1,007
r
install.packages("stats") # get center and scaling values m <- apply(data4$data, 2, mean) s <- apply(data4$data, 2, sd) val<-data4$model val2<- unscale(val) valval<-t((t(val) * s[1]) + m[1]) plot(data4$data$year,data4$data$temp,xlab = "Girth",ylab = "Height",main = "Height vs Girth") lines(valval, x_g,col = 'dark...
PathNames <- function(rowNum,InputInitializeMat){ ColOnes=which(InputInitializeMat[rowNum,]==1) if(length(ColOnes)!=0){ PName=names(InputInitializeMat)[ColOnes] PName=paste(PName,collapse=" ") PName=paste(row.names(InputInitializeMat)[rowNum],PName,sep=" ON ") PName=paste0(PName,";","\n") }else{ PName="" } ...
/R/PathNames.R
no_license
cran/PathSelectMP
R
false
false
341
r
PathNames <- function(rowNum,InputInitializeMat){ ColOnes=which(InputInitializeMat[rowNum,]==1) if(length(ColOnes)!=0){ PName=names(InputInitializeMat)[ColOnes] PName=paste(PName,collapse=" ") PName=paste(row.names(InputInitializeMat)[rowNum],PName,sep=" ON ") PName=paste0(PName,";","\n") }else{ PName="" } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/asana_move_task.R \name{asana_move_task} \alias{asana_move_task} \title{Move A Task Within A Project Relative To Other Tasks} \usage{ asana_move_task(task_to_move, insert_before = NULL, project, ASANA_ACCESS_TOKEN = Sys.getenv("ASANA_ACCESS...
/man/asana_move_task.Rd
no_license
ayormark/decider
R
false
true
986
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/asana_move_task.R \name{asana_move_task} \alias{asana_move_task} \title{Move A Task Within A Project Relative To Other Tasks} \usage{ asana_move_task(task_to_move, insert_before = NULL, project, ASANA_ACCESS_TOKEN = Sys.getenv("ASANA_ACCESS...
## caching the inverse of a matrix ## Below are a pair of functions that are used to create a special object that ## stores a matrix and caches its inverse. ##The first function, `makeCacheMatrix` creates a special "matrix", which is ##really a list containing a function to cache the inverse of the matrix. makeCache...
/cachematrix.R
no_license
rikucherry1993/ProgrammingAssignment2
R
false
false
1,234
r
## caching the inverse of a matrix ## Below are a pair of functions that are used to create a special object that ## stores a matrix and caches its inverse. ##The first function, `makeCacheMatrix` creates a special "matrix", which is ##really a list containing a function to cache the inverse of the matrix. makeCache...
#model fitting: Informativity predicted by social effects on top of random phylogenetic and spatial factors #Script was written by Sam Passmore and modified by Olena Shcherbakova source("requirements.R") source("install_and_load_INLA.R") source("set_up_inla.R") metrics_joined <- metrics_joined %>% filter(!is.na...
/models_Informativity_social_only.R
permissive
OlenaShcherbakova/Sociodemographic_factors_complexity
R
false
false
20,644
r
#model fitting: Informativity predicted by social effects on top of random phylogenetic and spatial factors #Script was written by Sam Passmore and modified by Olena Shcherbakova source("requirements.R") source("install_and_load_INLA.R") source("set_up_inla.R") metrics_joined <- metrics_joined %>% filter(!is.na...
library(shiny) library(dplyr) library(leaflet) library(leafletplugins) library(tidyr) library(ggplot2) library(htmltools) ## Village Level APP: # Load the required data sets # Field verification dataset for map: field_data_map <- read.csv('data/field-verification-clean.csv',header = TRUE) # Field ver...
/app.R
permissive
jmunene/shiny
R
false
false
7,778
r
library(shiny) library(dplyr) library(leaflet) library(leafletplugins) library(tidyr) library(ggplot2) library(htmltools) ## Village Level APP: # Load the required data sets # Field verification dataset for map: field_data_map <- read.csv('data/field-verification-clean.csv',header = TRUE) # Field ver...
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinverse <- function(inverse) inv <<- inverse getinverse <- function() inv list(set = set, get = get, setinverse = setinverse, getinverse = getinverse)...
/Matrix.R
no_license
Imag101fuk1/Dadada
R
false
false
601
r
makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setinverse <- function(inverse) inv <<- inverse getinverse <- function() inv list(set = set, get = get, setinverse = setinverse, getinverse = getinverse)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-Pop.R \docType{class} \name{RawPop-class} \alias{RawPop-class} \alias{[,RawPop-method} \alias{c,RawPop-method} \alias{show,RawPop-method} \title{Raw Population} \usage{ \S4method{[}{RawPop}(x, i) \S4method{c}{RawPop}(x, ......
/fuzzedpackages/AlphaSimR/man/RawPop-class.Rd
no_license
akhikolla/testpackages
R
false
true
1,211
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Class-Pop.R \docType{class} \name{RawPop-class} \alias{RawPop-class} \alias{[,RawPop-method} \alias{c,RawPop-method} \alias{show,RawPop-method} \title{Raw Population} \usage{ \S4method{[}{RawPop}(x, i) \S4method{c}{RawPop}(x, ......
######### functions ######### top.pairs<-function(summ,featureMatrix.snp,numhits=40) { ## this function returns a table with the most significan feature-TF pairs # requires (entrez2symbol) toppair<-head(sort(unlist(summ),decreasing=TRUE),numhits) outtab <-matrix(ncol=6,nrow=length(toppair)) rownames(outta...
/poor_mindy.r
no_license
gonzolgarcia/R-sources
R
false
false
9,074
r
######### functions ######### top.pairs<-function(summ,featureMatrix.snp,numhits=40) { ## this function returns a table with the most significan feature-TF pairs # requires (entrez2symbol) toppair<-head(sort(unlist(summ),decreasing=TRUE),numhits) outtab <-matrix(ncol=6,nrow=length(toppair)) rownames(outta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/to_m.R \name{to_m} \alias{to_m} \title{Convert time series data to matrix with defined number of columns} \usage{ to_m(x, n_cols) } \arguments{ \item{x}{- dataframe with one column} \item{n_cols}{- number of columns in the matrix} } \value{ ...
/man/to_m.Rd
permissive
vladdsm/lazytrade
R
false
true
661
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/to_m.R \name{to_m} \alias{to_m} \title{Convert time series data to matrix with defined number of columns} \usage{ to_m(x, n_cols) } \arguments{ \item{x}{- dataframe with one column} \item{n_cols}{- number of columns in the matrix} } \value{ ...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service NULL METADATA <- list( service_name = "workmail", endpoints = list("*" = "workmail.{region}.amazonaws.com", "cn-*" = "workmail.{region}.amazonaws.com.cn"), service_id = "WorkMail", api_version =...
/service/paws.workmail/R/paws.workmail_service.R
permissive
CR-Mercado/paws
R
false
false
533
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_handlers new_service NULL METADATA <- list( service_name = "workmail", endpoints = list("*" = "workmail.{region}.amazonaws.com", "cn-*" = "workmail.{region}.amazonaws.com.cn"), service_id = "WorkMail", api_version =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kfilter.R \name{ukf} \alias{ukf} \title{Unscented Kalman Filtering} \usage{ ukf(model, alpha = 0.001, beta = 2, kappa = 0) } \arguments{ \item{model}{Model of class \code{ssm_nlg}.} \item{alpha}{Positive tuning parameter of the UKF. Default ...
/man/ukf.Rd
no_license
helske/bssm
R
false
true
1,946
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kfilter.R \name{ukf} \alias{ukf} \title{Unscented Kalman Filtering} \usage{ ukf(model, alpha = 0.001, beta = 2, kappa = 0) } \arguments{ \item{model}{Model of class \code{ssm_nlg}.} \item{alpha}{Positive tuning parameter of the UKF. Default ...
dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] library(rpart) regressor = rpart(formula=Salary~., data=dataset, control=rpart.control(minsplit=1)) y_pred = predict(regressor, data.frame(Level=6.5)) library(ggplot2) x_grid = seq(min(dataset$Level), ...
/Regression/Decision Tree Regression/Decision_test.R
no_license
prashant-shekhar/Machine-Learning
R
false
false
649
r
dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] library(rpart) regressor = rpart(formula=Salary~., data=dataset, control=rpart.control(minsplit=1)) y_pred = predict(regressor, data.frame(Level=6.5)) library(ggplot2) x_grid = seq(min(dataset$Level), ...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), ra = numeric(0), relh = numeric(0), rs = numeric(0), temp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(meteor:::ET0_Penma...
/meteor/inst/testfiles/ET0_PenmanMonteith/libFuzzer_ET0_PenmanMonteith/ET0_PenmanMonteith_valgrind_files/1612736404-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
351
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = numeric(0), ra = numeric(0), relh = numeric(0), rs = numeric(0), temp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- do.call(meteor:::ET0_Penma...
a = readRDS("code.rds") head(a) names(a) View(head(a)) b = readRDS("data.rds") names(b) table(b$Emissions) Total.Pollution <- with(b, tapply(b$Emissions, b$year, sum, na.rm = TRUE)) Total.Pollution Total.Pollution <- data.frame( year = names(Total.Pollution), quantity = Total.Pollution) plot(Total.Pollution$year, Tot...
/raw.R
no_license
SiddhantUchil/ExDA-Week-4-Course-Assignment
R
false
false
3,099
r
a = readRDS("code.rds") head(a) names(a) View(head(a)) b = readRDS("data.rds") names(b) table(b$Emissions) Total.Pollution <- with(b, tapply(b$Emissions, b$year, sum, na.rm = TRUE)) Total.Pollution Total.Pollution <- data.frame( year = names(Total.Pollution), quantity = Total.Pollution) plot(Total.Pollution$year, Tot...
library(clusternor) ### Name: KmeansPP ### Title: Perform the k-means++ clustering algorithm on a data matrix. ### Aliases: KmeansPP ### ** Examples iris.mat <- as.matrix(iris[,1:4]) k <- length(unique(iris[, dim(iris)[2]])) # Number of unique classes nstart <- 3 km <- KmeansPP(iris.mat, k, nstart=nstart)
/data/genthat_extracted_code/clusternor/examples/KmeansPP.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
315
r
library(clusternor) ### Name: KmeansPP ### Title: Perform the k-means++ clustering algorithm on a data matrix. ### Aliases: KmeansPP ### ** Examples iris.mat <- as.matrix(iris[,1:4]) k <- length(unique(iris[, dim(iris)[2]])) # Number of unique classes nstart <- 3 km <- KmeansPP(iris.mat, k, nstart=nstart)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/count.tags.in.bins.r \name{count.tags.in.bins} \alias{count.tags.in.bins} \title{A function to compute number of tags in the selected bins.} \usage{ count.tags.in.bins(profs = NULL, chr.stat = NULL, chrn = NULL, mc.cores = 2, bin = NULL, sc...
/man/count.tags.in.bins.Rd
no_license
jakubmie/MACC
R
false
true
1,004
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/count.tags.in.bins.r \name{count.tags.in.bins} \alias{count.tags.in.bins} \title{A function to compute number of tags in the selected bins.} \usage{ count.tags.in.bins(profs = NULL, chr.stat = NULL, chrn = NULL, mc.cores = 2, bin = NULL, sc...
##' DNAnexus R Client Library ##' ##' dxR is an R extension containing API wrapper functions for interacting with ##' the new DNAnexus platform. ##' ##' \tabular{ll}{ Package: \tab dxR\cr Type: \tab Package\cr Version: \tab ##' 0.142.0\cr License: \tab Apache License (== 2.0)\cr ##' } ##' ##' @name dxR-package ##' @...
/src/R/dxR/R/dxR-package.R
permissive
alexey84/dx-toolkit
R
false
false
498
r
##' DNAnexus R Client Library ##' ##' dxR is an R extension containing API wrapper functions for interacting with ##' the new DNAnexus platform. ##' ##' \tabular{ll}{ Package: \tab dxR\cr Type: \tab Package\cr Version: \tab ##' 0.142.0\cr License: \tab Apache License (== 2.0)\cr ##' } ##' ##' @name dxR-package ##' @...
library(testthat) library(sparklyr.nested) test_check("sparklyr.nested")
/tests/testthat.R
permissive
mitre/sparklyr.nested
R
false
false
74
r
library(testthat) library(sparklyr.nested) test_check("sparklyr.nested")
context("Testing Algorithms 1, 2, and Stability Selection") library(jointMeanCov) test_that("Algorithm 1 (group centering)", { n1 <- 5 n2 <- 5 n <- n1 + n2 group.one.indices <- 1:5 group.two.indices <- 6:10 m <- 20 X <- matrix(rnorm(n * m), nrow=n, ncol=m) rowpen <- sqrt(log(m) / n) out <- jointMeanC...
/tests/testthat/test-algorithms.R
no_license
cran/jointMeanCov
R
false
false
2,820
r
context("Testing Algorithms 1, 2, and Stability Selection") library(jointMeanCov) test_that("Algorithm 1 (group centering)", { n1 <- 5 n2 <- 5 n <- n1 + n2 group.one.indices <- 1:5 group.two.indices <- 6:10 m <- 20 X <- matrix(rnorm(n * m), nrow=n, ncol=m) rowpen <- sqrt(log(m) / n) out <- jointMeanC...
## mfraccheck.r C. Sattarhoff 07.10.2020 #' multifractal check #' \code{mfraccheck} computes the absolute empirical moments of the differenced series for various lags #' and moment orders. E.g. for lag = 3 and moment order = 1 ...
/R/mfraccheck.r
no_license
cran/tsapp
R
false
false
1,627
r
## mfraccheck.r C. Sattarhoff 07.10.2020 #' multifractal check #' \code{mfraccheck} computes the absolute empirical moments of the differenced series for various lags #' and moment orders. E.g. for lag = 3 and moment order = 1 ...
data <- read.table("household_power_consumption.txt",header=TRUE,sep=";") date <- as.Date(data$Date,"%d/%m/%Y") data <- data[(date=="2007-02-01")|(date=="2007-02-02"),] png(file="plot2.png",width=480,height=480) plot(strptime(paste(data$Date,data$Time,sep=" "),"%d/%m/%Y %H:%M:%S"),as.numeric(as.character(data$Global_ac...
/plot2.R
no_license
boonkasa/ExData_Plotting1
R
false
false
399
r
data <- read.table("household_power_consumption.txt",header=TRUE,sep=";") date <- as.Date(data$Date,"%d/%m/%Y") data <- data[(date=="2007-02-01")|(date=="2007-02-02"),] png(file="plot2.png",width=480,height=480) plot(strptime(paste(data$Date,data$Time,sep=" "),"%d/%m/%Y %H:%M:%S"),as.numeric(as.character(data$Global_ac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ipw.ate.R \name{ipw.ate} \alias{ipw.ate} \title{Estimates average treatment effect through IPW} \usage{ ipw.ate( x, y, treated, alpha_initial, solver = "optim", kernel = "EPAN", explicit_bandwidth = FALSE, recalc_bandwidth = T...
/man/ipw.ate.Rd
permissive
ehsanx/SDRcausal
R
false
true
3,990
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ipw.ate.R \name{ipw.ate} \alias{ipw.ate} \title{Estimates average treatment effect through IPW} \usage{ ipw.ate( x, y, treated, alpha_initial, solver = "optim", kernel = "EPAN", explicit_bandwidth = FALSE, recalc_bandwidth = T...
setwd("/Users/matteo/Desktop/") library("Gviz") library("DESeq2") options(ucscChromosomeNames=FALSE) #make genomic ranges annotation<-read.table("gene_info.txt",header=TRUE) annotation <- annotation[order(annotation$gene_id),] GR<-makeGRangesFromDataFrame(annotation, seqnames.field=c("scaffold")) a <- AnnotationTrac...
/Supporting_figure_2_mapping_to_melpomene:cydno_genomes.R
no_license
MatteoRossiLMU/neural_genes_heliconius
R
false
false
13,410
r
setwd("/Users/matteo/Desktop/") library("Gviz") library("DESeq2") options(ucscChromosomeNames=FALSE) #make genomic ranges annotation<-read.table("gene_info.txt",header=TRUE) annotation <- annotation[order(annotation$gene_id),] GR<-makeGRangesFromDataFrame(annotation, seqnames.field=c("scaffold")) a <- AnnotationTrac...
library(R6) library(zoo) #' Es un wrapper para los diferentes fuentes de datos openConnection = function(DB="CTC") { conn = .SQLDBConnect(DB) conn } closeConnection = function(conn=NULL) { # cnx = conn # if (is.null(conn) && !is.null(vars$SQLConn)) cnx = vars$SQLConn # .SQLDBDisconnect(cnx) #...
/YATACore/R/PKG_IO.R
no_license
Grandez/YATA
R
false
false
5,775
r
library(R6) library(zoo) #' Es un wrapper para los diferentes fuentes de datos openConnection = function(DB="CTC") { conn = .SQLDBConnect(DB) conn } closeConnection = function(conn=NULL) { # cnx = conn # if (is.null(conn) && !is.null(vars$SQLConn)) cnx = vars$SQLConn # .SQLDBDisconnect(cnx) #...
\name{gFOBI} \alias{gFOBI} \alias{gFOBI.default} \alias{gFOBI.ts} \alias{gFOBI.xts} \alias{gFOBI.zoo} \title{ Generalized FOBI } \description{ The gFOBI (generalized Fourth Order Blind Identification) method for blind source separation of time series with stochastic volatility. The method is a generalizatio...
/man/gFOBI.Rd
no_license
cran/tsBSS
R
false
false
6,240
rd
\name{gFOBI} \alias{gFOBI} \alias{gFOBI.default} \alias{gFOBI.ts} \alias{gFOBI.xts} \alias{gFOBI.zoo} \title{ Generalized FOBI } \description{ The gFOBI (generalized Fourth Order Blind Identification) method for blind source separation of time series with stochastic volatility. The method is a generalizatio...
#this code compares fitted model outputs for PIRGd against BIT data from the middle model #to assess the spatial locations where the model is performing better/worse #load packages library(rgdal) library(sp) library(raster) library(dynatopmodel) library(tidyverse) library(data.table) library(lme4) library(tictoc) libr...
/compare_bit_baseline_pirgd_grid.R
no_license
bermane/climate-pheno-wy
R
false
false
6,724
r
#this code compares fitted model outputs for PIRGd against BIT data from the middle model #to assess the spatial locations where the model is performing better/worse #load packages library(rgdal) library(sp) library(raster) library(dynatopmodel) library(tidyverse) library(data.table) library(lme4) library(tictoc) libr...
#' #' Classifies sequences against reference training dataset. #' #' assignTaxonomy implements the RDP Naive Bayesian Classifier algorithm described in #' Wang et al. Applied and Environmental Microbiology 2007, with kmer size 8 and 100 bootstrap #' replicates. Properly formatted reference files for several popular ta...
/R/taxonomy.R
no_license
rlh13/dada2
R
false
false
20,278
r
#' #' Classifies sequences against reference training dataset. #' #' assignTaxonomy implements the RDP Naive Bayesian Classifier algorithm described in #' Wang et al. Applied and Environmental Microbiology 2007, with kmer size 8 and 100 bootstrap #' replicates. Properly formatted reference files for several popular ta...
#' Designing, random assigning and evaluating Randomized Control Trials #' #' RCT provides three important group of functions: #' a) functions for pre-processing the design of the RCT #' b) Functions for assigning treatment status and checking for balances #' c) Function for evaluating the impact of the RCT #' #'...
/R/RCT.R
no_license
haro-ca/RCT
R
false
false
2,035
r
#' Designing, random assigning and evaluating Randomized Control Trials #' #' RCT provides three important group of functions: #' a) functions for pre-processing the design of the RCT #' b) Functions for assigning treatment status and checking for balances #' c) Function for evaluating the impact of the RCT #' #'...
#Functions to convert object to base.bal.tab input x2base <- function(...) UseMethod("x2base") x2base.matchit <- function(m, ...) { A <- list(...) X.names <- c("covs", "treat", "weights", "distance", "addl", "s.d.denom", ...
/R/x2base.R
no_license
guhjy/cobalt
R
false
false
162,641
r
#Functions to convert object to base.bal.tab input x2base <- function(...) UseMethod("x2base") x2base.matchit <- function(m, ...) { A <- list(...) X.names <- c("covs", "treat", "weights", "distance", "addl", "s.d.denom", ...
#' @name GNAbstractManager #' @title GNAbstractManager #' @aliases GNAbstractManager #' #' @docType class #' #' @export #' @keywords geonetwork rest api #' @return Object of \code{\link{R6Class}} with methods for communication with #' the REST API of a GeoNetwork instance. #' @format \code{\link{R6Class}} ob...
/R/GNAbstractManager.R
no_license
cran/geonapi
R
false
false
5,889
r
#' @name GNAbstractManager #' @title GNAbstractManager #' @aliases GNAbstractManager #' #' @docType class #' #' @export #' @keywords geonetwork rest api #' @return Object of \code{\link{R6Class}} with methods for communication with #' the REST API of a GeoNetwork instance. #' @format \code{\link{R6Class}} ob...
\name{Soybean} \title{Soybean Database} \usage{data(Soybean)} \alias{Soybean} \format{A data frame with 683 observations on 36 variables. There are 35 categorical attributes, all numerical and a nominal denoting the class. \tabular{cll}{ [,1] \tab Class \tab the 19 classes\cr [,2] \tab date \tab apr(0),m...
/man/Soybean.Rd
no_license
cran/mlbench
R
false
false
4,727
rd
\name{Soybean} \title{Soybean Database} \usage{data(Soybean)} \alias{Soybean} \format{A data frame with 683 observations on 36 variables. There are 35 categorical attributes, all numerical and a nominal denoting the class. \tabular{cll}{ [,1] \tab Class \tab the 19 classes\cr [,2] \tab date \tab apr(0),m...
library(tidyverse) library(wesanderson) library(ggExtra) iris.graph = ggplot(data = iris, aes(x = Sepal.Length, y = Petal.Length))+ geom_point(aes(col = Species))+ labs(x = 'Sepal Length', y = 'Petal Length')+ theme_bw()+ scale_color_manual(values = wes_palette('Darjeeling1', n = 6, type ='continuous'))+ the...
/MarginplotRscript.R
no_license
PhDMattyB/MarginPlot
R
false
false
486
r
library(tidyverse) library(wesanderson) library(ggExtra) iris.graph = ggplot(data = iris, aes(x = Sepal.Length, y = Petal.Length))+ geom_point(aes(col = Species))+ labs(x = 'Sepal Length', y = 'Petal Length')+ theme_bw()+ scale_color_manual(values = wes_palette('Darjeeling1', n = 6, type ='continuous'))+ the...
data_new <- read.csv("C://Users//tanuj//Desktop//Subjects//SDM//Data Sets//Rossmann_data_new.csv") head(data_new) hist(data_new$Sales) data1 <- data_new[ , data_new$Date == "2015"] head(data1) hist(log(data_new$Sales)) model_sales <- lm(Sales~CompetitionDistance,data = data_new) summary(model_sales) m2 <- l...
/new.R
no_license
tanujsawant/Multiple-Effect-Model-for-Rosmann-Sales-Prediction
R
false
false
3,109
r
data_new <- read.csv("C://Users//tanuj//Desktop//Subjects//SDM//Data Sets//Rossmann_data_new.csv") head(data_new) hist(data_new$Sales) data1 <- data_new[ , data_new$Date == "2015"] head(data1) hist(log(data_new$Sales)) model_sales <- lm(Sales~CompetitionDistance,data = data_new) summary(model_sales) m2 <- l...
tfrproj95l <- read.delim(file='tfrproj95l.txt', comment.char='#', check.names=FALSE)
/data/tfrproj95l.R
no_license
cran/wpp2017
R
false
false
86
r
tfrproj95l <- read.delim(file='tfrproj95l.txt', comment.char='#', check.names=FALSE)
rm(list=ls(all=TRUE)) B = 100 pc = seq(1,40,1) accuracy = matrix(0, nrow = length(pc), ncol = 2) colnames(accuracy) = c("No. PCs","accuracy") k = 1 for (j in 1:length(pc)) { final_table_LDA = matrix(0, nrow = 2, ncol = 2) for(i in 1:B){ load(sprintf("C:/Users/Piotr/Documents/NMR.test/data%d.RData",i)) ...
/Chapter-4/NMR.diabetes.autoscaling.PC-LDA.r
no_license
Biospec/Application-of-chemometrics-for-the-robust-analysis-of-chemical-and-biochemical-data
R
false
false
1,272
r
rm(list=ls(all=TRUE)) B = 100 pc = seq(1,40,1) accuracy = matrix(0, nrow = length(pc), ncol = 2) colnames(accuracy) = c("No. PCs","accuracy") k = 1 for (j in 1:length(pc)) { final_table_LDA = matrix(0, nrow = 2, ncol = 2) for(i in 1:B){ load(sprintf("C:/Users/Piotr/Documents/NMR.test/data%d.RData",i)) ...
#sorting a dataframe library(mlbench) library(caret) data(PimaIndiansDiabetes) # sort by glucose sorted_data <- PimaIndiansDiabetes[order(glucose),] # View the output head(sorted_data) # sort by glucose and pressure sorted_data <- PimaIndiansDiabetes[order( glucose, pressure),] head(sorted_data) #sort in asc...
/Lesson02/Exercise06/Sorting.R
permissive
MeiRey/Practical-Machine-Learning-with-R
R
false
false
650
r
#sorting a dataframe library(mlbench) library(caret) data(PimaIndiansDiabetes) # sort by glucose sorted_data <- PimaIndiansDiabetes[order(glucose),] # View the output head(sorted_data) # sort by glucose and pressure sorted_data <- PimaIndiansDiabetes[order( glucose, pressure),] head(sorted_data) #sort in asc...
#this is a test #my first change
/new code.R
no_license
EdB-DHSC/covid-worldwide
R
false
false
33
r
#this is a test #my first change
## Un par de funciones que se utilizan para crear un objeto especial que ## almacena una matriz y a su vez almacena en caché su inverso. ## Esta primera función crea un objeto especial "matriz" que se puede almacenar en el caché su inverso. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(...
/Lexical Scoping.R
no_license
dfsanchez2020/ProgrammingAssignment2
R
false
false
1,037
r
## Un par de funciones que se utilizan para crear un objeto especial que ## almacena una matriz y a su vez almacena en caché su inverso. ## Esta primera función crea un objeto especial "matriz" que se puede almacenar en el caché su inverso. makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(...
library(tidyverse) library(caret) # Package for easy timing in R library(tictoc) # Demo of timer function -------------------------------------------------- # Run the next 5 lines at once tic() Sys.sleep(3) timer_info <- toc() runtime <- timer_info$toc - timer_info$tic runtime # Get data ------------------------...
/PS08.R
no_license
saraculhane/PS08
R
false
false
1,641
r
library(tidyverse) library(caret) # Package for easy timing in R library(tictoc) # Demo of timer function -------------------------------------------------- # Run the next 5 lines at once tic() Sys.sleep(3) timer_info <- toc() runtime <- timer_info$toc - timer_info$tic runtime # Get data ------------------------...
oaxacablinder <- function(model_A, model_B, model_names = c("A", "B"), groups_labels = NULL, groups_vars = NULL) { # two way Blinder-Oaxaca decomposition with A as reference group, see # Jann, Ben (2008). The Blinder-Oaxaca decomposition for linear regression models. The Stata Journal 8(4): 453-479. mode...
/code/cXX_oaxacablinder.R
no_license
jduras/cps-flows
R
false
false
9,377
r
oaxacablinder <- function(model_A, model_B, model_names = c("A", "B"), groups_labels = NULL, groups_vars = NULL) { # two way Blinder-Oaxaca decomposition with A as reference group, see # Jann, Ben (2008). The Blinder-Oaxaca decomposition for linear regression models. The Stata Journal 8(4): 453-479. mode...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/consensus_funs.R \name{k_modes} \alias{k_modes} \title{K-modes} \usage{ k_modes(E, is.relabelled = TRUE, seed = 1) } \arguments{ \item{E}{a matrix of clusterings with number of rows equal to the number of cases to be clustered, number of colu...
/man/k_modes.Rd
no_license
mosaddek-hossain/diceR
R
false
true
1,491
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/consensus_funs.R \name{k_modes} \alias{k_modes} \title{K-modes} \usage{ k_modes(E, is.relabelled = TRUE, seed = 1) } \arguments{ \item{E}{a matrix of clusterings with number of rows equal to the number of cases to be clustered, number of colu...
#load leaflet and other packages #devtools::install_github('rstudio/leaflet') library(leaflet) library(dplyr) library(knitr) library(ggplot2) #Load htmltools library(htmltools) library(htmlwidgets) #Load spatial packages library(rgdal) library(rmapshaper) library(geojsonio) library(ggmap) library(sf) #register_googl...
/Baw_Baw_GG.R
no_license
JustinCally/WOTCH_Map
R
false
false
4,102
r
#load leaflet and other packages #devtools::install_github('rstudio/leaflet') library(leaflet) library(dplyr) library(knitr) library(ggplot2) #Load htmltools library(htmltools) library(htmlwidgets) #Load spatial packages library(rgdal) library(rmapshaper) library(geojsonio) library(ggmap) library(sf) #register_googl...
#' @param subset [\code{integer} | \code{logical} | \code{NULL}]\cr #' Selected cases. Either a logical or an index vector. #' By default (\code{NULL}) all observations are used.
/man-roxygen/arg_subset.R
no_license
NamwooPark/mlr
R
false
false
183
r
#' @param subset [\code{integer} | \code{logical} | \code{NULL}]\cr #' Selected cases. Either a logical or an index vector. #' By default (\code{NULL}) all observations are used.
# ------------------------------- # Erica's code # ------------------------------------ # setwd("/Users/erica_kilbride/Downloads") load("tweet_all.rda", envir = parent.frame(), verbose = FALSE) candidates <- c("Bernie", "Hillary", "Marco", "Ted", "Donald") regexes <- list(c("(Bernie|Sanders|BernieSanders|Feelthebern)...
/Assignment3/sharedcode.R
no_license
arg2211/DataViz
R
false
false
10,107
r
# ------------------------------- # Erica's code # ------------------------------------ # setwd("/Users/erica_kilbride/Downloads") load("tweet_all.rda", envir = parent.frame(), verbose = FALSE) candidates <- c("Bernie", "Hillary", "Marco", "Ted", "Donald") regexes <- list(c("(Bernie|Sanders|BernieSanders|Feelthebern)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convert.sample.mapping.to.case.control.R \name{convert.sample.mapping.to.case.control} \alias{convert.sample.mapping.to.case.control} \title{Convert sample mapping to case control from conditions} \usage{ convert.sample.mapping.to.case.contro...
/man/convert.sample.mapping.to.case.control.Rd
no_license
emreg00/pepper
R
false
true
962
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/convert.sample.mapping.to.case.control.R \name{convert.sample.mapping.to.case.control} \alias{convert.sample.mapping.to.case.control} \title{Convert sample mapping to case control from conditions} \usage{ convert.sample.mapping.to.case.contro...
# Loic Dutrieux # April 2014 # Each function needs to return a vector of indices (band numbers) and a function to be passed to overlay # NDVI -------------------------------------------------------------------- .ndvi <- function() { ind <- c('band3','band4') fun <- function(x1, x2) { ndvi <- 10000 *...
/R/LandsatVIs.R
permissive
mengluchu/bfastspatial2
R
false
false
3,608
r
# Loic Dutrieux # April 2014 # Each function needs to return a vector of indices (band numbers) and a function to be passed to overlay # NDVI -------------------------------------------------------------------- .ndvi <- function() { ind <- c('band3','band4') fun <- function(x1, x2) { ndvi <- 10000 *...
# Simple Linear Regression # Importing the dataset dataset = read.csv('Salary_Data.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Salary, SplitRatio = 2/3) training_set = subset(dataset, split == TRUE...
/LinearRegression/simple_linear_regression.R
no_license
Xander999/DataSets
R
false
false
1,517
r
# Simple Linear Regression # Importing the dataset dataset = read.csv('Salary_Data.csv') # Splitting the dataset into the Training set and Test set # install.packages('caTools') library(caTools) set.seed(123) split = sample.split(dataset$Salary, SplitRatio = 2/3) training_set = subset(dataset, split == TRUE...
#Page.No 5.25 # (i) scores<-c(10,8,25,24,30,45) median(scores) #(ii) Scores<-c(40,48,43,42,41) median(Scores) #(iii) score<-c(11,13,15,15,15,18,21) median(score) lower_value<-median(score)-0.5 # from the lower limit corrected_median<-lower_value+2/3 cat("median is ",corrected_median)
/Statistics_In_Education_And_Psychology_by_P._C._Dash_And_Bhabagrahi_Biswal/CH5/EX5.4.3/Ex5.4_3.R
permissive
FOSSEE/R_TBC_Uploads
R
false
false
307
r
#Page.No 5.25 # (i) scores<-c(10,8,25,24,30,45) median(scores) #(ii) Scores<-c(40,48,43,42,41) median(Scores) #(iii) score<-c(11,13,15,15,15,18,21) median(score) lower_value<-median(score)-0.5 # from the lower limit corrected_median<-lower_value+2/3 cat("median is ",corrected_median)
res <- function(n, p) { x = rbinom(n,1,p) mean = mean(x) L = mean - 1.96 * sqrt(mean*(1-mean)/n) U = mean + 1.96 * sqrt(mean*(1-mean)/n) if(p >= L && p <= U){ value = 1 }else{ value = 0 } return(value) } #Following runs are where n = 5 with varying values of p. n = 5 p = 0.05 ans ...
/Coverage probability.R
permissive
sriraam23/Coverage-probability-using-Monte-Carlo-Simulation-in-R
R
false
false
4,891
r
res <- function(n, p) { x = rbinom(n,1,p) mean = mean(x) L = mean - 1.96 * sqrt(mean*(1-mean)/n) U = mean + 1.96 * sqrt(mean*(1-mean)/n) if(p >= L && p <= U){ value = 1 }else{ value = 0 } return(value) } #Following runs are where n = 5 with varying values of p. n = 5 p = 0.05 ans ...
##### RegMC1 ##### library(gridExtra) # the pacakge needed for this particular question to create multiple grid-level plots in a page RegMC1= function( title = "RegMC1", # Question-bank title that will be easily viewable in e-learning n = 200, # Number of questions to generate type = "MC", # The question type, one of m...
/RegMC1.R
no_license
IKapenga/Stat1600-QGen
R
false
false
5,983
r
##### RegMC1 ##### library(gridExtra) # the pacakge needed for this particular question to create multiple grid-level plots in a page RegMC1= function( title = "RegMC1", # Question-bank title that will be easily viewable in e-learning n = 200, # Number of questions to generate type = "MC", # The question type, one of m...
#' Rcpp extension for polmineR. #' #' Based on the functionality of the cl corpus library, this package #' offers wrappers for core functions of the corpus library, and #' functions for performance critial tasks in the polmineR package. #' #' @author Andreas Blaette (andreas.blaette@@uni-due.de) #' @references http:...
/R/polmineR.Rcpp_package.R
no_license
PolMine/polmineR.Rcpp
R
false
false
3,634
r
#' Rcpp extension for polmineR. #' #' Based on the functionality of the cl corpus library, this package #' offers wrappers for core functions of the corpus library, and #' functions for performance critial tasks in the polmineR package. #' #' @author Andreas Blaette (andreas.blaette@@uni-due.de) #' @references http:...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/amcatr.r \name{amcat.flush} \alias{amcat.flush} \title{Ask AmCAT to flush the elasticsearch} \usage{ amcat.flush(conn) } \arguments{ \item{conn}{the connection object from \code{\link{amcat.connect}}} } \description{ Ask AmCAT to flus...
/man/amcat.flush.Rd
permissive
decenergy/amcat-r
R
false
false
343
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/amcatr.r \name{amcat.flush} \alias{amcat.flush} \title{Ask AmCAT to flush the elasticsearch} \usage{ amcat.flush(conn) } \arguments{ \item{conn}{the connection object from \code{\link{amcat.connect}}} } \description{ Ask AmCAT to flus...
#Data import and Management #Loading all appropriate packages required for running code library(ggplot2) library(gtools) library(caTools) library(dplyr) #Data processing ##Reading the dataset d<- read.csv('KaggleV2-May-2016.csv') head(d) str(d) ##Treating variables types: change all the binary variables to “factor”...
/noshow5.R
no_license
jiaona9994/Insights-of-Medical-No-Shows-Exploratory-Data-Analysis-in-R
R
false
false
9,629
r
#Data import and Management #Loading all appropriate packages required for running code library(ggplot2) library(gtools) library(caTools) library(dplyr) #Data processing ##Reading the dataset d<- read.csv('KaggleV2-May-2016.csv') head(d) str(d) ##Treating variables types: change all the binary variables to “factor”...
################################################################## ## BEGIN: gen_summary(): ################################################################## # Wrapper around the summary functions gen_summary <- function(x, top_n = 10, level, what = "general", plot = FALSE, select_com = NULL){ require(kableExtra) ...
/R/functions_summary.R
no_license
daniel-hain/TidyScientometrix
R
false
false
13,314
r
################################################################## ## BEGIN: gen_summary(): ################################################################## # Wrapper around the summary functions gen_summary <- function(x, top_n = 10, level, what = "general", plot = FALSE, select_com = NULL){ require(kableExtra) ...
output$errortext <- renderText({ validate(checkInputValueGeneric(dmin, dmax, input$d1ui, g_cavern_panel1_descr)) validate(checkInputValueGeneric(dmin, dmax, input$d2ui, g_cavern_panel2_descr)) validate(checkInputValueGeneric(dmin, dmax, input$d3ui, g_cavern_panel3_descr)) validate(checkInputValueGeneric(tmin...
/ui_mpp_validation.R
no_license
kreitmew/mpp
R
false
false
1,414
r
output$errortext <- renderText({ validate(checkInputValueGeneric(dmin, dmax, input$d1ui, g_cavern_panel1_descr)) validate(checkInputValueGeneric(dmin, dmax, input$d2ui, g_cavern_panel2_descr)) validate(checkInputValueGeneric(dmin, dmax, input$d3ui, g_cavern_panel3_descr)) validate(checkInputValueGeneric(tmin...
household_power_consumption <- read.table("D:/Coursera Data/Exploratory Data Analysis/household_power_consumption.txt", sep=";", quote="\"") #read the data library("dplyr") household_power<-filter(household_power_consumption,V1=="1/2/2007"|V1=="2/2/2007") #creat new subset household_power only using data from the dates...
/plot1.R
no_license
Vesna0715/Explore-Data-Project1
R
false
false
611
r
household_power_consumption <- read.table("D:/Coursera Data/Exploratory Data Analysis/household_power_consumption.txt", sep=";", quote="\"") #read the data library("dplyr") household_power<-filter(household_power_consumption,V1=="1/2/2007"|V1=="2/2/2007") #creat new subset household_power only using data from the dates...
library(dplyr) data = read.csv("Q6.csv",header=T,sep=",")
/Midterm/MT/s1076050_Q6.R
no_license
jiatiancheng7/YZU_R_Practice
R
false
false
60
r
library(dplyr) data = read.csv("Q6.csv",header=T,sep=",")
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R") source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R") reps<-50 outerreps<-1000 size<-rev(round(10^seq(2, 5, 0.25)))[ 11 ] nc<-12 plan(strategy=multisession, workers=nc) map(rev(1:outerreps), function(x){ start<-Sys.time() out<-checkp...
/scripts/checkplots_for_parallel_amarel/asy_887.R
no_license
dushoff/diversity_metrics
R
false
false
536
r
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R") source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R") reps<-50 outerreps<-1000 size<-rev(round(10^seq(2, 5, 0.25)))[ 11 ] nc<-12 plan(strategy=multisession, workers=nc) map(rev(1:outerreps), function(x){ start<-Sys.time() out<-checkp...
# Rattle: A GUI for Data Mining in R # # AUDIT DATASET # # Time-stamp: <2014-09-05 21:28:19 gjw> # # Copyright (c) 2009-2014 Togaware Pty Ltd # # This file is part of Rattle. # # Rattle is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the F...
/rattleM/R/acquireAuditData.R
no_license
LJanulis/RattleM
R
false
false
6,777
r
# Rattle: A GUI for Data Mining in R # # AUDIT DATASET # # Time-stamp: <2014-09-05 21:28:19 gjw> # # Copyright (c) 2009-2014 Togaware Pty Ltd # # This file is part of Rattle. # # Rattle is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the F...
#R file for the statistical analysis of the csv file irisdataset = read.csv("D:/Users/Mordecai/Dev/Programming-Playground/Machine Learning Samples/Iris Flower Classification/Dataset/iris.csv", header = FALSE) pythonalgorithmresults = read.csv("D:/Users/Mordecai/Dev/Programming-Playground/Machine Learning Samples/Iris F...
/Machine Learning Samples/Iris Flower Classification/IrisFlowerClassificationDataAnalysis.R
no_license
alittleton98/Programming-Playground
R
false
false
1,473
r
#R file for the statistical analysis of the csv file irisdataset = read.csv("D:/Users/Mordecai/Dev/Programming-Playground/Machine Learning Samples/Iris Flower Classification/Dataset/iris.csv", header = FALSE) pythonalgorithmresults = read.csv("D:/Users/Mordecai/Dev/Programming-Playground/Machine Learning Samples/Iris F...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{cc_dict} \alias{cc_dict} \title{Country code dictionary} \format{ data.table object, with 8626 obs. of 3 variables: \describe{ \item{country_name }{Country names. Character string.} \item{country_name_alt }{Al...
/man/cc_dict.Rd
no_license
zhukovyuri/SUNGEO
R
false
true
762
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{cc_dict} \alias{cc_dict} \title{Country code dictionary} \format{ data.table object, with 8626 obs. of 3 variables: \describe{ \item{country_name }{Country names. Character string.} \item{country_name_alt }{Al...
SSDBoot <- function(Sex, Indices, Size, log = F, ...) { ## Bootstrap statistic for SSD if (isFALSE(log)) { SSD <- SSDLM(Size[Indices], Sex[Indices]) } else if (isTRUE(log)) { SSD <- SSDLog(Size[Indices], Sex[Indices], ...) } else {stop("log argument must be a logical value.")} SSD }
/R/SSDBoot.R
no_license
TWilliamBell/angler
R
false
false
304
r
SSDBoot <- function(Sex, Indices, Size, log = F, ...) { ## Bootstrap statistic for SSD if (isFALSE(log)) { SSD <- SSDLM(Size[Indices], Sex[Indices]) } else if (isTRUE(log)) { SSD <- SSDLog(Size[Indices], Sex[Indices], ...) } else {stop("log argument must be a logical value.")} SSD }
testlist <- list(bytes1 = integer(0), pmutation = 1.12906650559382e-312) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612802157-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
136
r
testlist <- list(bytes1 = integer(0), pmutation = 1.12906650559382e-312) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
#### Extract Features from the Time Series #### #### Load R package with data #### library(M4comp2018) library(itsmr) library(forecast) library(changepoint) library(lmtest) library(tsfeatures) library(foreach) library(doParallel) cl <- parallel::makeCluster(10) registerDoParallel(cl,cores=10) data("M4") #### Extract...
/Time Series Reading Course/Project Code/FeatureExtractor.R
no_license
daveveitch/UofT
R
false
false
2,325
r
#### Extract Features from the Time Series #### #### Load R package with data #### library(M4comp2018) library(itsmr) library(forecast) library(changepoint) library(lmtest) library(tsfeatures) library(foreach) library(doParallel) cl <- parallel::makeCluster(10) registerDoParallel(cl,cores=10) data("M4") #### Extract...
# Post 1 # Word2Vec Tags # Loading Thigs #### source('src/utils/utils.R') library(magrittr) library(tidyverse) # devtools::install_github("elbersb/tidylog") # library(tidylog) library(skimr) library(ggthemes) library(lubridate) library(scales) library(tidytext) library(h2o) library(Rtsne) library(dbscan) library(ggwor...
/1 - TagsWord2Vec.R
no_license
gioferreira/mediumlytics
R
false
false
11,776
r
# Post 1 # Word2Vec Tags # Loading Thigs #### source('src/utils/utils.R') library(magrittr) library(tidyverse) # devtools::install_github("elbersb/tidylog") # library(tidylog) library(skimr) library(ggthemes) library(lubridate) library(scales) library(tidytext) library(h2o) library(Rtsne) library(dbscan) library(ggwor...
#' @title Fuzzy Sum #' @description Calculates the fuzzy sum of a vector #' #' @param x Vector of values to apply fuzzy sum #' #' @return Value of fuzzy sum #' #' @note #' The fuzzy sum is an increasing linear combination of values. #' This can be used to sum probabilities or results of multiple #' den...
/R/fuzzySum.R
no_license
cran/spatialEco
R
false
false
611
r
#' @title Fuzzy Sum #' @description Calculates the fuzzy sum of a vector #' #' @param x Vector of values to apply fuzzy sum #' #' @return Value of fuzzy sum #' #' @note #' The fuzzy sum is an increasing linear combination of values. #' This can be used to sum probabilities or results of multiple #' den...
library(ggraph) library(igraph) library(binaryLogic) library(tidygraph) library(tidyr) library(dplyr) library(graphlayouts) library(stringr) library(gganimate) library(readr) source("draw_tesseract.R") concentrations <- read_csv("/home/emily/repos/evolution_speed/concentrations.csv") cd_data <- import_data_set("/hom...
/analysis/animation_concentration_nocd_errorbars.R
permissive
hincz-lab/Evolution-Counterdiabatic-Driving
R
false
false
5,592
r
library(ggraph) library(igraph) library(binaryLogic) library(tidygraph) library(tidyr) library(dplyr) library(graphlayouts) library(stringr) library(gganimate) library(readr) source("draw_tesseract.R") concentrations <- read_csv("/home/emily/repos/evolution_speed/concentrations.csv") cd_data <- import_data_set("/hom...
x <- as.integer('5.3') y <- as.double(3.5) z <- as.character(x) q <- as.character(y)
/zad4.R
no_license
marcin-mulawa/Zadania-R
R
false
false
84
r
x <- as.integer('5.3') y <- as.double(3.5) z <- as.character(x) q <- as.character(y)
library("sp") library(dplyr) library("spdep") library(CARBayesST) library(tidyr) library(mgcv) library(splines) library(ggplot2) library(rgdal) library(maptools) require(descr) require(RColorBrewer) require(plotrix) library(lfe) library("CARBayes") library(tmaptools) library(tmap) rm(list = ls()) ### collapse to year...
/from_ayesha/code/plot_yearly_dengue.R
no_license
eroubenoff/chagas_modeling
R
false
false
13,508
r
library("sp") library(dplyr) library("spdep") library(CARBayesST) library(tidyr) library(mgcv) library(splines) library(ggplot2) library(rgdal) library(maptools) require(descr) require(RColorBrewer) require(plotrix) library(lfe) library("CARBayes") library(tmaptools) library(tmap) rm(list = ls()) ### collapse to year...
library(testthat) library(checkmate) test_that("Test if works for mixed ps + every argument in use + maximize", { set.seed(1) data <- data.frame(a = runif(50,10,5555), b = runif(50,-30000,-500), c = runif(50,0,1000))#, #d = sample(c("nitrogen","air","argon"), 50, replace =...
/tests/testthat/test-benchmarkMbo.R
no_license
ascheppach/EBO
R
false
false
1,789
r
library(testthat) library(checkmate) test_that("Test if works for mixed ps + every argument in use + maximize", { set.seed(1) data <- data.frame(a = runif(50,10,5555), b = runif(50,-30000,-500), c = runif(50,0,1000))#, #d = sample(c("nitrogen","air","argon"), 50, replace =...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/central_nervous_system.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.1,family="gaussian",standardize=TRUE) sink('./central_nervo...
/Model/EN/Correlation/central_nervous_system/central_nervous_system_027.R
no_license
esbgkannan/QSMART
R
false
false
381
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/central_nervous_system.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.1,family="gaussian",standardize=TRUE) sink('./central_nervo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chimeras.R \name{isBimeraDenovoTable} \alias{isBimeraDenovoTable} \title{Identify bimeras in a sequence table.} \usage{ isBimeraDenovoTable(seqtab, minSampleFraction = 0.9, ignoreNNegatives = 1, minFoldParentOverAbundance = 1, minParentAbun...
/man/isBimeraDenovoTable.Rd
no_license
marcomeola/dada2
R
false
true
3,244
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chimeras.R \name{isBimeraDenovoTable} \alias{isBimeraDenovoTable} \title{Identify bimeras in a sequence table.} \usage{ isBimeraDenovoTable(seqtab, minSampleFraction = 0.9, ignoreNNegatives = 1, minFoldParentOverAbundance = 1, minParentAbun...
library(microbiome) library(tidyverse) source("sim_data_soil.R") source("ancom_bc.R") source("ancom_simple.R") data("GlobalPatterns") pseq = GlobalPatterns # Simulations were evaluated for soil environments meta.data = meta(pseq) pseq.subset = subset_samples(pseq, SampleType == "Soil") # Prune taxa pseq.prune = prune_...
/simulations/sim_soil/sim_ancom.R
permissive
wnq13579/ANCOM-BC-Code-Archive
R
false
false
3,599
r
library(microbiome) library(tidyverse) source("sim_data_soil.R") source("ancom_bc.R") source("ancom_simple.R") data("GlobalPatterns") pseq = GlobalPatterns # Simulations were evaluated for soil environments meta.data = meta(pseq) pseq.subset = subset_samples(pseq, SampleType == "Soil") # Prune taxa pseq.prune = prune_...