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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rf_train.R \name{rf_train} \alias{rf_train} \title{dt_train} \usage{ rf_train( df, formula = NULL, df_test = NULL, p = 0.8, params_ = list(ntree = 500, sampsize = NULL, nodesize = NULL, maxnodes = NULL, replace = TRUE, mtry = NU...
/man/rf_train.Rd
no_license
ningzesun1993/adaRFTrain
R
false
true
1,574
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rf_train.R \name{rf_train} \alias{rf_train} \title{dt_train} \usage{ rf_train( df, formula = NULL, df_test = NULL, p = 0.8, params_ = list(ntree = 500, sampsize = NULL, nodesize = NULL, maxnodes = NULL, replace = TRUE, mtry = NU...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lgb.Dataset.R \name{dimnames.lgb.Dataset} \alias{dimnames.lgb.Dataset} \alias{dimnames<-.lgb.Dataset} \title{Handling of column names of \code{lgb.Dataset}} \usage{ \method{dimnames}{lgb.Dataset}(x) \method{dimnames}{lgb.Dataset}(x) <- value...
/R-package/man/dimnames.lgb.Dataset.Rd
permissive
LinuxHaus/LightGBM
R
false
true
1,100
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lgb.Dataset.R \name{dimnames.lgb.Dataset} \alias{dimnames.lgb.Dataset} \alias{dimnames<-.lgb.Dataset} \title{Handling of column names of \code{lgb.Dataset}} \usage{ \method{dimnames}{lgb.Dataset}(x) \method{dimnames}{lgb.Dataset}(x) <- value...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gt_theme_nytimes.R \name{gt_theme_nytimes} \alias{gt_theme_nytimes} \title{Apply NY Times theme to a \code{gt} table} \usage{ gt_theme_nytimes(gt_object, ...) } \arguments{ \item{gt_object}{An existing gt table object of class \code{gt_tbl}} ...
/man/gt_theme_nytimes.Rd
permissive
adamkemberling/gtExtras
R
false
true
1,054
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gt_theme_nytimes.R \name{gt_theme_nytimes} \alias{gt_theme_nytimes} \title{Apply NY Times theme to a \code{gt} table} \usage{ gt_theme_nytimes(gt_object, ...) } \arguments{ \item{gt_object}{An existing gt table object of class \code{gt_tbl}} ...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "delta_ailerons") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = ma...
/models/openml_delta_ailerons/classification_binaryClass/0158fd11ecc4b6b065e6b6564abdab4b/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
699
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "delta_ailerons") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = ma...
############################################################################################ ### Jose A Espinosa. NPMMD/CB-CRG Group. Jan 2017 ### ############################################################################################ ### Shiny app to show pergola data ...
/shiny-pergola/ui.R
no_license
ionase/shiny-pergola-docker
R
false
false
4,053
r
############################################################################################ ### Jose A Espinosa. NPMMD/CB-CRG Group. Jan 2017 ### ############################################################################################ ### Shiny app to show pergola data ...
library(igraph) library(Matrix) ## save plots dirname <- "C:\\Users\\T430\\Google Drive\\PhD\\Dissertation\\competition networks\\acquisitions" setwd(dirname) ## cache default params .par = par() ## # ## plot2 <- function(gx, layout=layout.random, vertex.size=15, focal.firm=NA, fam='sans', edge.curved=F, seed=11111,...
/R/acqmmc_bipartite_acq_centrality_example.R
no_license
sdownin/compnet-venus
R
false
false
17,952
r
library(igraph) library(Matrix) ## save plots dirname <- "C:\\Users\\T430\\Google Drive\\PhD\\Dissertation\\competition networks\\acquisitions" setwd(dirname) ## cache default params .par = par() ## # ## plot2 <- function(gx, layout=layout.random, vertex.size=15, focal.firm=NA, fam='sans', edge.curved=F, seed=11111,...
\name{SNHT} \alias{SNHT} \alias{Buishand_R} \title{Buishand Range Test and Standard Normal Homogeneity Test} \description{ Compute Buishand Range Test or Standard Normal Homogeneity Test for a serie, NAs allow in both Test } \usage{ SNHT(serie,n_period=10,dstr='norm',simulations = 1000, seed_set =...
/man/SNHT.Rd
no_license
cran/BreakPoints
R
false
false
2,369
rd
\name{SNHT} \alias{SNHT} \alias{Buishand_R} \title{Buishand Range Test and Standard Normal Homogeneity Test} \description{ Compute Buishand Range Test or Standard Normal Homogeneity Test for a serie, NAs allow in both Test } \usage{ SNHT(serie,n_period=10,dstr='norm',simulations = 1000, seed_set =...
# Similarity network fusion ## Load packages library(data.table) library(dplyr) library(ggplot2) library(magrittr) library(reshape2) library(SNFtool) # Array of RepoDB unique drug IDs repodb.ids <- fread("../data/repoDB_full.csv") %>% `$`(drug_id) %>% unique() # PREPROCESSING # Chemical structu...
/scripts/snf.r
no_license
prvaldez/thesis
R
false
false
5,904
r
# Similarity network fusion ## Load packages library(data.table) library(dplyr) library(ggplot2) library(magrittr) library(reshape2) library(SNFtool) # Array of RepoDB unique drug IDs repodb.ids <- fread("../data/repoDB_full.csv") %>% `$`(drug_id) %>% unique() # PREPROCESSING # Chemical structu...
library(ggplot2) library(RColorBrewer) library(ggtree) library(colorspace) divecol<-c(sequential_hcl(6, palette = "Purple-Blue",rev = T)[2:6]) #count number of orders present in the full phylogenetic tree orderdf<-avgdf %>% count(Order) #make a phylogeny with each unique order present g2<-avgdf[!duplicated(avgdf$Ord...
/plot ecology on circular phylogeny.R
no_license
jzeyl/Zeyl-et-al-2022-Sci-Rep
R
false
false
9,180
r
library(ggplot2) library(RColorBrewer) library(ggtree) library(colorspace) divecol<-c(sequential_hcl(6, palette = "Purple-Blue",rev = T)[2:6]) #count number of orders present in the full phylogenetic tree orderdf<-avgdf %>% count(Order) #make a phylogeny with each unique order present g2<-avgdf[!duplicated(avgdf$Ord...
#' @export print.reactibble <- function(x, ..., n = NULL, width = NULL, n_extra = NULL) { txt <- format(as_reactibble0(x), ..., n = n, width = width, n_extra = n_extra) cli::cat_line(txt) invisible(x) } # we define a class reactibble0 so we can print without calling [.reactibble, # which is costly as it triggers...
/R/print.R
no_license
moodymudskipper/reactibble
R
false
false
2,225
r
#' @export print.reactibble <- function(x, ..., n = NULL, width = NULL, n_extra = NULL) { txt <- format(as_reactibble0(x), ..., n = n, width = width, n_extra = n_extra) cli::cat_line(txt) invisible(x) } # we define a class reactibble0 so we can print without calling [.reactibble, # which is costly as it triggers...
# init a <- c(8, 9, 11, 4, 7, 8, 5) b <- c(7, 17, 10, 14, 12, 24, 11, 22) c <- c(28, 21, 26, 11, 24, 19) d <- c(26, 16, 13, 12, 9, 10, 11, 17, 15) # calculate the mean of each vector ma <- mean(a) ma mb <- mean(b) mb mc <- mean(c) mc md <- mean(d) md average <- (sum(a) + sum(b) + sum(c) + sum(d))/(na + nb + nc +...
/variance.R
no_license
nbmhoang/r-data-analysis
R
false
false
1,405
r
# init a <- c(8, 9, 11, 4, 7, 8, 5) b <- c(7, 17, 10, 14, 12, 24, 11, 22) c <- c(28, 21, 26, 11, 24, 19) d <- c(26, 16, 13, 12, 9, 10, 11, 17, 15) # calculate the mean of each vector ma <- mean(a) ma mb <- mean(b) mb mc <- mean(c) mc md <- mean(d) md average <- (sum(a) + sum(b) + sum(c) + sum(d))/(na + nb + nc +...
setwd('C:/Users/longtan/Desktop/00-Code Project/05-ERI') require(ggplot2) library("ggthemes") library("reshape2") library("plyr") ERI_sys<-read.csv("ERI system.csv",sep=';',header=T) ERI_sys<-ERI_sys[1:73,] ERI_sys$Engine.production.week<-factor(ERI_sys$Engine.production.week,levels=ERI_sys$Engine.production.week) ggp...
/src/ERI_archives/ERI visualization system.R
permissive
yasir2000/Survival-analysis
R
false
false
604
r
setwd('C:/Users/longtan/Desktop/00-Code Project/05-ERI') require(ggplot2) library("ggthemes") library("reshape2") library("plyr") ERI_sys<-read.csv("ERI system.csv",sep=';',header=T) ERI_sys<-ERI_sys[1:73,] ERI_sys$Engine.production.week<-factor(ERI_sys$Engine.production.week,levels=ERI_sys$Engine.production.week) ggp...
#' Gradient Boosting with Linear Models #' #' Gradient boosting for optimizing arbitrary loss functions where #' component-wise linear models are utilized as base-learners. #' #' @param family optional \code{\link[mboost]{Family}} object. Set #' automatically according to the class type of the response variable. #' ...
/R/ML_GLMBoostModel.R
no_license
Drbuxie/MachineShop
R
false
false
3,770
r
#' Gradient Boosting with Linear Models #' #' Gradient boosting for optimizing arbitrary loss functions where #' component-wise linear models are utilized as base-learners. #' #' @param family optional \code{\link[mboost]{Family}} object. Set #' automatically according to the class type of the response variable. #' ...
################################################### ### code chunk: Chap19mer_init: Panels R19.1 - R19.7. ### code for panels R19.8 - R19.13 is stored in ../Ch19.R ################################################### options(digits = 5, show.signif.stars = FALSE) packageVersion("nlmeU") sessionInfo() require(nl...
/nlmeU/inst/scriptsR2.15.0/lme4.0/Ch19mer.R
no_license
ingted/R-Examples
R
false
false
4,759
r
################################################### ### code chunk: Chap19mer_init: Panels R19.1 - R19.7. ### code for panels R19.8 - R19.13 is stored in ../Ch19.R ################################################### options(digits = 5, show.signif.stars = FALSE) packageVersion("nlmeU") sessionInfo() require(nl...
#' Source for database backends #' #' @description #' \Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")} #' #' These functions have been deprecated; instead please use [tbl()] #' directly on an `DBIConnection`. See <https://dbplyr.tidyverse.org/> for #' more details. #' #' @param dbname Database name #' @...
/R/deprec-dbi.R
permissive
earowang/dplyr
R
false
false
3,521
r
#' Source for database backends #' #' @description #' \Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")} #' #' These functions have been deprecated; instead please use [tbl()] #' directly on an `DBIConnection`. See <https://dbplyr.tidyverse.org/> for #' more details. #' #' @param dbname Database name #' @...
.libPaths("/home/cog/inijman/Rlibs/3.4.1") library(ExomeDepth) library(methods) target.file <-"/hpc/cog_bioinf/diagnostiek/projects/WES_CNV/exomeCopy_crev2_20bp_flat/annotated_ENSEMBL_UCSC_merged_collapsed_sorted_v2_20bpflank_flatnoMT.bed" # set path to BED file pathToBams <- getwd() bam.files <- paste0(pathToBams,"/...
/plot_exomeDepth_events.R
no_license
UMCUGenetics/exomedepth_scripts
R
false
false
2,644
r
.libPaths("/home/cog/inijman/Rlibs/3.4.1") library(ExomeDepth) library(methods) target.file <-"/hpc/cog_bioinf/diagnostiek/projects/WES_CNV/exomeCopy_crev2_20bp_flat/annotated_ENSEMBL_UCSC_merged_collapsed_sorted_v2_20bpflank_flatnoMT.bed" # set path to BED file pathToBams <- getwd() bam.files <- paste0(pathToBams,"/...
## ## ## Analysis of syn and non-syn mutation rate between homoeologs ## ## ##usage kaks(x, verbose = FALSE, debug = FALSE, forceUpperCase = TRUE, rmgap = TRUE) ## ## input alignment file as x; need to be aligned at amino-acid level, then converted back to the relevant codons. (consider reverse.align) ## ...
/scripts/KaKs/kaks_developmentset_UPLOAD.R
no_license
Musketeer-D/WheatHomoeologExpression
R
false
false
18,188
r
## ## ## Analysis of syn and non-syn mutation rate between homoeologs ## ## ##usage kaks(x, verbose = FALSE, debug = FALSE, forceUpperCase = TRUE, rmgap = TRUE) ## ## input alignment file as x; need to be aligned at amino-acid level, then converted back to the relevant codons. (consider reverse.align) ## ...
% Generated by roxygen2 (4.0.1): do not edit by hand \name{sc} \alias{sc} \title{Like paste0 but returns an empty vector if some string is empty} \usage{ sc(..., sep = "", collapse = NULL) } \description{ Like paste0 but returns an empty vector if some string is empty }
/man/sc.Rd
no_license
skranz/YamlObjects
R
false
false
272
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \name{sc} \alias{sc} \title{Like paste0 but returns an empty vector if some string is empty} \usage{ sc(..., sep = "", collapse = NULL) } \description{ Like paste0 but returns an empty vector if some string is empty }
library(Cairo) G1Cells = function( wellPath, G1, DNAChannel=1, zCutoff=2.5 ){ DNA = read.table( paste( wellPath, '-', DNAChannel, '.csv',sep='' ), stringsAsFactors=F, header=T, sep=',') cvs = DNA$std_nucleus / DNA$mean_nucleus keep = cvs < G1$CV.max & cvs > G1$CV.min logDNA = log( DNA$sum_nucleus ) ...
/FIGS/insulation/readoutInformation.r
permissive
adam-coster/dissertation
R
false
false
4,443
r
library(Cairo) G1Cells = function( wellPath, G1, DNAChannel=1, zCutoff=2.5 ){ DNA = read.table( paste( wellPath, '-', DNAChannel, '.csv',sep='' ), stringsAsFactors=F, header=T, sep=',') cvs = DNA$std_nucleus / DNA$mean_nucleus keep = cvs < G1$CV.max & cvs > G1$CV.min logDNA = log( DNA$sum_nucleus ) ...
library(gimme) #datalocation <- '/Users/gateskm/Dropbox/gateslab/GG_Workshop Materials/gimme/Data example/sub_2_prop_0.5_n_25_rep_1' #Mac datalocation <- 'C:\\Users\\gateskm\\Dropbox\\gateslab\\GG_Workshop Materials\\gimme\\Data example\\t_120_n_25_v_5' #windows library(tools) # necessary to get file names wit...
/GIMME options code.R
no_license
kaduffy/gimme-OLD
R
false
false
3,250
r
library(gimme) #datalocation <- '/Users/gateskm/Dropbox/gateslab/GG_Workshop Materials/gimme/Data example/sub_2_prop_0.5_n_25_rep_1' #Mac datalocation <- 'C:\\Users\\gateskm\\Dropbox\\gateslab\\GG_Workshop Materials\\gimme\\Data example\\t_120_n_25_v_5' #windows library(tools) # necessary to get file names wit...
################################################################################################ ################# TESTS STATISTIQUES COMPARAISON MOYENNE A VALEUR DE REFERENCE ################# ################################################################################################ ########################...
/Tests_statistiques.R
no_license
Milie-Mimi/Datamining
R
false
false
33,635
r
################################################################################################ ################# TESTS STATISTIQUES COMPARAISON MOYENNE A VALEUR DE REFERENCE ################# ################################################################################################ ########################...
convertmlx <- function(data, dataIn){ g <- dataIn$group for(k in seq(1,length(g))) g[[k]]$output=NULL cv <- dataIn$catvar var <- dataIn$variability if (length(unique(var$id))==1) var$id <- NULL iop.group <- 0 if (length(g)>1){ gr=numeric(0) for(k in seq(1,length(g)...
/R/convertmlx.R
no_license
arturochian/mlxR
R
false
false
3,812
r
convertmlx <- function(data, dataIn){ g <- dataIn$group for(k in seq(1,length(g))) g[[k]]$output=NULL cv <- dataIn$catvar var <- dataIn$variability if (length(unique(var$id))==1) var$id <- NULL iop.group <- 0 if (length(g)>1){ gr=numeric(0) for(k in seq(1,length(g)...
dir.create("plots/total", showWarnings = FALSE, recursive = TRUE) dir.create("plots/total", showWarnings = FALSE, recursive = TRUE) totalChanges <- function(proj){ completeData <- subset(completeData, ProjectName == proj) completeData <- completeData[! duplicated(completeData[, c('parentSha')]),] complete...
/coverage-analysis/generateTotalPlots.R
no_license
olapiv/fetch-analyze-coverage
R
false
false
4,041
r
dir.create("plots/total", showWarnings = FALSE, recursive = TRUE) dir.create("plots/total", showWarnings = FALSE, recursive = TRUE) totalChanges <- function(proj){ completeData <- subset(completeData, ProjectName == proj) completeData <- completeData[! duplicated(completeData[, c('parentSha')]),] complete...
#' Calculating RV-TDT statistic for user-defined windows #' #' `RV_TDT` returns a data frame containing the RV_TDT statistic for a VCF file. Note that `RV_TDT` only works for Linux and Mac OS X. #' #' @param vcf vcf file in 'CollapsedVCF' format #' @param ped data frame containing pedigree information for the VCF #' ...
/R/RV_TDT.R
no_license
lindagai/rvtrio
R
false
false
16,240
r
#' Calculating RV-TDT statistic for user-defined windows #' #' `RV_TDT` returns a data frame containing the RV_TDT statistic for a VCF file. Note that `RV_TDT` only works for Linux and Mac OS X. #' #' @param vcf vcf file in 'CollapsedVCF' format #' @param ped data frame containing pedigree information for the VCF #' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{floodlightConfigurations.update} \alias{floodlightConfigurations.update} \title{Updates an existing floodlight configuration.} \usage{ floodlightConfigurations.update(FloodlightConfiguration, profileId) } \argum...
/googledfareportingv23.auto/man/floodlightConfigurations.update.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,147
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{floodlightConfigurations.update} \alias{floodlightConfigurations.update} \title{Updates an existing floodlight configuration.} \usage{ floodlightConfigurations.update(FloodlightConfiguration, profileId) } \argum...
myplot2<-function(x) { mydata = read.table("household_power_consumption.txt",sep=";", header=TRUE, fill=FALSE, strip.white=TRUE,na.string="?") ## read in data mydata$Date<-as.Date(mydata$Date,format="%d/%m/%Y") ## get column 1 in correct date format p<-mydata[mydata$Date==(as.Date("2007-02-01",format="%Y-%m-%d"))|myd...
/plot2.R
no_license
calliegs/ExData_Plotting1
R
false
false
801
r
myplot2<-function(x) { mydata = read.table("household_power_consumption.txt",sep=";", header=TRUE, fill=FALSE, strip.white=TRUE,na.string="?") ## read in data mydata$Date<-as.Date(mydata$Date,format="%d/%m/%Y") ## get column 1 in correct date format p<-mydata[mydata$Date==(as.Date("2007-02-01",format="%Y-%m-%d"))|myd...
projectIncomes <- function(ageVectList, incomeVectList, enrollVectList, nameString){ coeffVect = data.frame(matrix(ncol = 5, nrow = dim(ENROLL_DATA)[1])) colnames(coeffVect)=c("b0","b1" ,"b2", "R2", "NumObservations") outMatrix = data.frame(matrix(ncol = length(ENROLL_DATA), nrow =82)) for (i in 1:nrow(ENROLL_D...
/fun_projectIncomes.R
no_license
katlbest/LifecycleChoice
R
false
false
1,903
r
projectIncomes <- function(ageVectList, incomeVectList, enrollVectList, nameString){ coeffVect = data.frame(matrix(ncol = 5, nrow = dim(ENROLL_DATA)[1])) colnames(coeffVect)=c("b0","b1" ,"b2", "R2", "NumObservations") outMatrix = data.frame(matrix(ncol = length(ENROLL_DATA), nrow =82)) for (i in 1:nrow(ENROLL_D...
helloVariable <- "Hello World" helloVariable outFunc <- function(inp) { temp <- inp temp } outFunc("hello world") outFunc2 <- function(inp1, inp2) { temp2 <- inp1 * inp2 return(temp2) } outFunc2(2,4) #Conditionals 1 outFunc3 <- function(inp1, inp2, bool) { if(bool){ return(inp1 + inp2) } else { ...
/basic.r
no_license
scott1541/QA_R
R
false
false
863
r
helloVariable <- "Hello World" helloVariable outFunc <- function(inp) { temp <- inp temp } outFunc("hello world") outFunc2 <- function(inp1, inp2) { temp2 <- inp1 * inp2 return(temp2) } outFunc2(2,4) #Conditionals 1 outFunc3 <- function(inp1, inp2, bool) { if(bool){ return(inp1 + inp2) } else { ...
fahr_to_kelvin <- function(temp = 60){ kelvin <- ((temp - 32) * (5/9)) + 273.5 return(kelvin) }
/scripts/temperature_conversion.R
permissive
oulib-resdata/repetitive_r
R
false
false
100
r
fahr_to_kelvin <- function(temp = 60){ kelvin <- ((temp - 32) * (5/9)) + 273.5 return(kelvin) }
#--------notes # need to add .dat to filename in name files sheet and spell the file name EXACTLY as it is named including spaces and symbols # in the name file Sample_Name must be spelled this exact way #----------------------------- library(tidyverse) library(shiny) library(plotly) library(DT) ui <- fluidPage( tag...
/app.R
permissive
jaredbrabazon/FluoroLogger
R
false
false
15,766
r
#--------notes # need to add .dat to filename in name files sheet and spell the file name EXACTLY as it is named including spaces and symbols # in the name file Sample_Name must be spelled this exact way #----------------------------- library(tidyverse) library(shiny) library(plotly) library(DT) ui <- fluidPage( tag...
library(listarrays) ### Name: shuffle_rows ### Title: Shuffle along the first dimension multiple arrays in sync ### Aliases: shuffle_rows ### ** Examples x <- 1:3 y <- matrix(1:9, ncol = 3) z <- array(1:27, c(3,3,3)) if(require(zeallot)) { c(xs, ys, zs) %<-% shuffle_rows(x, y, z) l <- lapply(seq_along_rows(y)...
/data/genthat_extracted_code/listarrays/examples/shuffle_rows.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
544
r
library(listarrays) ### Name: shuffle_rows ### Title: Shuffle along the first dimension multiple arrays in sync ### Aliases: shuffle_rows ### ** Examples x <- 1:3 y <- matrix(1:9, ncol = 3) z <- array(1:27, c(3,3,3)) if(require(zeallot)) { c(xs, ys, zs) %<-% shuffle_rows(x, y, z) l <- lapply(seq_along_rows(y)...
#' @importFrom magrittr %>% NULL #' @importFrom rlang %||% NULL
/R/imports.R
no_license
cran/cuml
R
false
false
65
r
#' @importFrom magrittr %>% NULL #' @importFrom rlang %||% NULL
library(ape) testtree <- read.tree("12038_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="12038_0_unrooted.txt")
/codeml_files/newick_trees_processed_and_cleaned/12038_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("12038_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="12038_0_unrooted.txt")
###################################### # Getting enrichment score for geneA # ###################################### library("GSEABase") library("GOstats") library(parallel) library(data.table) # path <- "/Users/Carolina/Documents/GitHub/DegreeProject/" respath <- "/Users/Carolina/Documents/GitHub/DegreeProject/resul...
/code/2020-02-12/12_02_2020_GOenrichment_geneA.R
no_license
CarolinaPB/DegreeProject
R
false
false
5,028
r
###################################### # Getting enrichment score for geneA # ###################################### library("GSEABase") library("GOstats") library(parallel) library(data.table) # path <- "/Users/Carolina/Documents/GitHub/DegreeProject/" respath <- "/Users/Carolina/Documents/GitHub/DegreeProject/resul...
# use render for rmarkdown centerColumn = function(data,columnName) { newName = (paste(columnName,"Centered",sep=".")) data[,newName] <- data[,columnName] - mean(data[,columnName], na.rm = TRUE) data[,newName] <- data[,newName] / sd(data[,columnName], na.rm = TRUE) return(data) } data = read.csv("../Submiterator...
/24-corpus/results/analyze.r
no_license
m-hahn/adjective-ordering
R
false
false
23,095
r
# use render for rmarkdown centerColumn = function(data,columnName) { newName = (paste(columnName,"Centered",sep=".")) data[,newName] <- data[,columnName] - mean(data[,columnName], na.rm = TRUE) data[,newName] <- data[,newName] / sd(data[,columnName], na.rm = TRUE) return(data) } data = read.csv("../Submiterator...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/geocode.R \name{geocode} \alias{geocode} \alias{geocodeQueryCheck} \title{Geocode} \usage{ geocode(location, output = c("latlon", "latlona", "more", "all"), source = c("dsk", "google"), messaging = FALSE, sensor = FALSE, override_...
/man/geocode.Rd
no_license
arifelk/ggmap
R
false
false
3,092
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/geocode.R \name{geocode} \alias{geocode} \alias{geocodeQueryCheck} \title{Geocode} \usage{ geocode(location, output = c("latlon", "latlona", "more", "all"), source = c("dsk", "google"), messaging = FALSE, sensor = FALSE, override_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diff_cvma.R \name{compare_control_logratio} \alias{compare_control_logratio} \title{compare_control for taking a ratio of cross-validated maximal association measures, but computing CI and hypothesis test on log scale.} \usage{ compare_contr...
/man/compare_control_logratio.Rd
permissive
bdwilliamson/cvma
R
false
true
488
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diff_cvma.R \name{compare_control_logratio} \alias{compare_control_logratio} \title{compare_control for taking a ratio of cross-validated maximal association measures, but computing CI and hypothesis test on log scale.} \usage{ compare_contr...
library(biogeo) ### Name: parsecoords ### Title: Parse coordinates into separate fields ### Aliases: parsecoords ### ** Examples fmtstr<-c("dd mm.m","dd mm ss.ss","dd mm ss") uf<-uniqueformats(places$long[1:3]) px<-parsecoords(places$long[1:3],uf,fmtstr)
/data/genthat_extracted_code/biogeo/examples/parsecoords.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
264
r
library(biogeo) ### Name: parsecoords ### Title: Parse coordinates into separate fields ### Aliases: parsecoords ### ** Examples fmtstr<-c("dd mm.m","dd mm ss.ss","dd mm ss") uf<-uniqueformats(places$long[1:3]) px<-parsecoords(places$long[1:3],uf,fmtstr)
day <- 1:length(work$total_cases) df <- data.frame(day = day, total_cases = work$total_cases)
/scripts/creat_df.R
no_license
hgfernan/r4prog
R
false
false
94
r
day <- 1:length(work$total_cases) df <- data.frame(day = day, total_cases = work$total_cases)
library(LearningRlab) ### Name: interactive.median ### Title: User Interactive Median Calculus ### Aliases: interactive.median ### Keywords: ~median ~interactive ~interactiva ~mediana.interactiva ### ** Examples ## Not run: ##D interactive.median() ##D ## End(Not run)
/data/genthat_extracted_code/LearningRlab/examples/interactive.median.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
286
r
library(LearningRlab) ### Name: interactive.median ### Title: User Interactive Median Calculus ### Aliases: interactive.median ### Keywords: ~median ~interactive ~interactiva ~mediana.interactiva ### ** Examples ## Not run: ##D interactive.median() ##D ## End(Not run)
#!/usr/bin/env Rscript ################################################################### # This file is part of RiboWave. # RiboWave is powerful Ribo-seq analysis tool that is able to # denoise the Ribo-seq data and serve for multiple functions. # # RiboWave can be used for multiple purposes: # ...
/metagene_psite.R
no_license
xanthexu/ribosome-profiling
R
false
false
2,536
r
#!/usr/bin/env Rscript ################################################################### # This file is part of RiboWave. # RiboWave is powerful Ribo-seq analysis tool that is able to # denoise the Ribo-seq data and serve for multiple functions. # # RiboWave can be used for multiple purposes: # ...
#### Configuracion #### # verifiquemos el directorio de trabajo getwd() #Para ejecutar un o mas lineas de codigo, los pasos son #La remarcamos y usamos CTRL + ENTER #Modico mi directorio actual de trabajo setwd("E:/Escritorio/Rclase 1/") dir() #### definicion de variables #### x <- 12.5 # <- es el operador de asign...
/ejemplo04.R
no_license
MarZapatta/Clase1RMar
R
false
false
1,641
r
#### Configuracion #### # verifiquemos el directorio de trabajo getwd() #Para ejecutar un o mas lineas de codigo, los pasos son #La remarcamos y usamos CTRL + ENTER #Modico mi directorio actual de trabajo setwd("E:/Escritorio/Rclase 1/") dir() #### definicion de variables #### x <- 12.5 # <- es el operador de asign...
test_that("select_query() print method output is as expected", { mf <- select_query(lazy_frame(x = 1, con = simulate_dbi())) expect_snapshot(mf) }) test_that("queries generated by select() don't alias unnecessarily", { lf_build <- lazy_frame(x = 1) %>% select(x) %>% sql_build() lf_render <- sql_render...
/tests/testthat/test-query-select.R
permissive
edgararuiz/dbplyr
R
false
false
1,699
r
test_that("select_query() print method output is as expected", { mf <- select_query(lazy_frame(x = 1, con = simulate_dbi())) expect_snapshot(mf) }) test_that("queries generated by select() don't alias unnecessarily", { lf_build <- lazy_frame(x = 1) %>% select(x) %>% sql_build() lf_render <- sql_render...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/h3_algorithms.R \name{get_centerchild} \alias{get_centerchild} \title{get central child H3 cell index} \usage{ get_centerchild(h3_address = NULL, res = NULL, simple = TRUE) } \arguments{ \item{h3_address}{Character; 15-character index generat...
/man/get_centerchild.Rd
permissive
dcooley/h3jsr
R
false
true
954
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/h3_algorithms.R \name{get_centerchild} \alias{get_centerchild} \title{get central child H3 cell index} \usage{ get_centerchild(h3_address = NULL, res = NULL, simple = TRUE) } \arguments{ \item{h3_address}{Character; 15-character index generat...
#' @title symmetryContext #' #' @description Calculate the symmetry of a binding context. #' #' @param dir_stereogene_output Directory of Stereogene output for protein. #' Default current directory. #' @param context_file Name of the context file input to Stereogene. File #' names must exclude extensions such as ".bedG...
/R/symmetryContext.R
no_license
vbusa1/nearBynding
R
false
false
5,270
r
#' @title symmetryContext #' #' @description Calculate the symmetry of a binding context. #' #' @param dir_stereogene_output Directory of Stereogene output for protein. #' Default current directory. #' @param context_file Name of the context file input to Stereogene. File #' names must exclude extensions such as ".bedG...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analyseKlemm.R \name{analyseKlemm} \alias{analyseKlemm} \title{Analyse Klemm matrices} \usage{ analyseKlemm(klemmadj, n) } \arguments{ \item{klemmadj}{list of Klemm matrices} \item{n}{number of replicates} \item{setname}{name of simulation}...
/man/analyseKlemm.Rd
no_license
ramellose/NetworkUtils
R
false
true
584
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analyseKlemm.R \name{analyseKlemm} \alias{analyseKlemm} \title{Analyse Klemm matrices} \usage{ analyseKlemm(klemmadj, n) } \arguments{ \item{klemmadj}{list of Klemm matrices} \item{n}{number of replicates} \item{setname}{name of simulation}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LANDSCAPE-Site.R \name{get_sugar_Site} \alias{get_sugar_Site} \title{Site: Return Sugar Feeding Resource} \usage{ get_sugar_Site(i) } \description{ Returns a reference to a first \code{\link{Sugar_Resource}} object at this site. \itemize{ \it...
/MASH-dev/SeanWu/MBITES/man/get_sugar_Site.Rd
no_license
aucarter/MASH-Main
R
false
true
358
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LANDSCAPE-Site.R \name{get_sugar_Site} \alias{get_sugar_Site} \title{Site: Return Sugar Feeding Resource} \usage{ get_sugar_Site(i) } \description{ Returns a reference to a first \code{\link{Sugar_Resource}} object at this site. \itemize{ \it...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/probs_to_odds.R \name{probs_to_odds} \alias{probs_to_odds} \title{Convert probabilities to (log)odds.} \usage{ probs_to_odds(probs, log = FALSE) } \arguments{ \item{probs}{Probabilities values in vector or dataframe.} \item{log}{Compute log ...
/man/probs_to_odds.Rd
permissive
HugoNjb/psycho.R
R
false
true
536
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/probs_to_odds.R \name{probs_to_odds} \alias{probs_to_odds} \title{Convert probabilities to (log)odds.} \usage{ probs_to_odds(probs, log = FALSE) } \arguments{ \item{probs}{Probabilities values in vector or dataframe.} \item{log}{Compute log ...
\name{bn.cv} \alias{bn.cv} \alias{plot.bn.kcv} \alias{plot.bn.kcv.list} \alias{loss} \title{Cross-validation for Bayesian networks} \description{ Perform a k-fold or hold-out cross-validation for a learning algorithm or a fixed network structure. } \usage{ bn.cv(data, bn, loss = NULL, ..., algorithm.args = list()...
/man/bn.cv.Rd
no_license
ai-edu/bnlearn
R
false
false
10,160
rd
\name{bn.cv} \alias{bn.cv} \alias{plot.bn.kcv} \alias{plot.bn.kcv.list} \alias{loss} \title{Cross-validation for Bayesian networks} \description{ Perform a k-fold or hold-out cross-validation for a learning algorithm or a fixed network structure. } \usage{ bn.cv(data, bn, loss = NULL, ..., algorithm.args = list()...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_formwq.R \name{read_formwq} \alias{read_formwq} \title{Format water quality data} \usage{ read_formwq(datin) } \arguments{ \item{datin}{input \code{data.frame} loaded from \code{\link{read_importwq}}} } \value{ A lightly formatted \code{...
/man/read_formwq.Rd
permissive
mikewessel/tbeptools
R
false
true
788
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_formwq.R \name{read_formwq} \alias{read_formwq} \title{Format water quality data} \usage{ read_formwq(datin) } \arguments{ \item{datin}{input \code{data.frame} loaded from \code{\link{read_importwq}}} } \value{ A lightly formatted \code{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class_calc_character.R \name{vec_cast.borg_calc_character.character} \alias{vec_cast.borg_calc_character.character} \title{Casting character to borg_calc_characteracter} \usage{ \method{vec_cast.borg_calc_character}{character}(x, to, ...) } \...
/man/vec_cast.borg_calc_character.character.Rd
no_license
zackarno/koborg
R
false
true
381
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class_calc_character.R \name{vec_cast.borg_calc_character.character} \alias{vec_cast.borg_calc_character.character} \title{Casting character to borg_calc_characteracter} \usage{ \method{vec_cast.borg_calc_character}{character}(x, to, ...) } \...
# # Example 3.1.3 on Page 124 # # u = a / ||a|| a = c(4,-3) a / sqrt( sum(a^2) ) # Using the vector.norm in the previous Example vector.norm = function(x) sqrt( sum(x^2) ) a / vector.norm(a) # --------------------------------------------- # Make a unit vector function unit.vector = function(x) x / sqrt( sum(x^2) ) ...
/Linear/R/Example-3-1-03.r
no_license
AppliedStat/class
R
false
false
611
r
# # Example 3.1.3 on Page 124 # # u = a / ||a|| a = c(4,-3) a / sqrt( sum(a^2) ) # Using the vector.norm in the previous Example vector.norm = function(x) sqrt( sum(x^2) ) a / vector.norm(a) # --------------------------------------------- # Make a unit vector function unit.vector = function(x) x / sqrt( sum(x^2) ) ...
####----------------------------------------------------------------------------------------------- #### OPTIMIZATION OF ROCKY SHORE SAMPLING FROM P2P / multSE using SSP # ####----------------------------------------------------------------------------------------------- #####---------------...
/SSP_P2P/multSE_SSP.R
no_license
hart2/asymmetric
R
false
false
16,151
r
####----------------------------------------------------------------------------------------------- #### OPTIMIZATION OF ROCKY SHORE SAMPLING FROM P2P / multSE using SSP # ####----------------------------------------------------------------------------------------------- #####---------------...
library(crayon) cat(blue$bold("snake river"), '\n') library(alr3) data(snake) 'dim(snake)'; dim(snake) 'head(snake)'; head(snake) 'names(snake)' names(snake) <- c('content', 'yield') attach(snake) cat(blue$bold("after attach(snake)"), '\n') head(snake) plot(content, yield, xlab = 'water content of snow', yla...
/02Mastering Machine Learning with R/ch2linear_regression/i1snake.R
no_license
greatabel/RStudy
R
false
false
340
r
library(crayon) cat(blue$bold("snake river"), '\n') library(alr3) data(snake) 'dim(snake)'; dim(snake) 'head(snake)'; head(snake) 'names(snake)' names(snake) <- c('content', 'yield') attach(snake) cat(blue$bold("after attach(snake)"), '\n') head(snake) plot(content, yield, xlab = 'water content of snow', yla...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FMIWFSRequest.R \docType{data} \name{FMIWFSRequest} \alias{FMIWFSRequest} \title{A class to build WFS request URL to the FMI API} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ FMIWFSRequest } \description{ TBA } \e...
/man/FMIWFSRequest.Rd
permissive
rOpenGov/fmi
R
false
true
565
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FMIWFSRequest.R \docType{data} \name{FMIWFSRequest} \alias{FMIWFSRequest} \title{A class to build WFS request URL to the FMI API} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ FMIWFSRequest } \description{ TBA } \e...
epcdata <- read.table("household_power_consumption.txt", header=TRUE, sep=";") boxdata <- data[epcdata$Date == "1/2/2007" | data$Date == "2/2/2007", ] boxdata$daytime <- mapply(function(s1, s2){as.POSIXct(paste(s1, s2), format = "%d/%m/%Y %H:%M:%S")}, boxdata$Date,boxdata$Time) png("plot3....
/Plot3.R
no_license
battery514/ExData_Plotting1
R
false
false
771
r
epcdata <- read.table("household_power_consumption.txt", header=TRUE, sep=";") boxdata <- data[epcdata$Date == "1/2/2007" | data$Date == "2/2/2007", ] boxdata$daytime <- mapply(function(s1, s2){as.POSIXct(paste(s1, s2), format = "%d/%m/%Y %H:%M:%S")}, boxdata$Date,boxdata$Time) png("plot3....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Data.R \docType{data} \name{Exam_data} \alias{Exam_data} \title{Exam Data} \format{ A data frame with 2 columns and 10 rows \describe{ \item{\code{No.of.alpha}}{No of Alphas} \item{\code{fre}}{Observed frequencies} } } \source{ Extracted from...
/man/Exam_data.Rd
no_license
cran/fitODBOD
R
false
true
1,447
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Data.R \docType{data} \name{Exam_data} \alias{Exam_data} \title{Exam Data} \format{ A data frame with 2 columns and 10 rows \describe{ \item{\code{No.of.alpha}}{No of Alphas} \item{\code{fre}}{Observed frequencies} } } \source{ Extracted from...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gadgetSim.R, R/package_documentation.R \docType{package} \name{gadgetSim} \alias{gadgetSim} \alias{gadgetSim-package} \alias{gadgetSim} \alias{gadgetSim-package} \title{gadgetSim: A package for creating simulated datasets from Gadget output} ...
/man/gadgetSim.Rd
no_license
inspktrgadget/gadgetSim
R
false
true
7,273
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gadgetSim.R, R/package_documentation.R \docType{package} \name{gadgetSim} \alias{gadgetSim} \alias{gadgetSim-package} \alias{gadgetSim} \alias{gadgetSim-package} \title{gadgetSim: A package for creating simulated datasets from Gadget output} ...
require(data.table) require(anytime) #save paths matches_file_path = "HW1_Files/df9b1196-e3cf-4cc7-9159-f236fe738215_matches.rds" odd_details_file_path = "HW1_Files/df9b1196-e3cf-4cc7-9159-f236fe738215_odd_details.rds" #load data matches=readRDS(matches_file_path) odds=readRDS(odd_details_file_path) #keep only uniq...
/HW1/HW1_v2.R
no_license
emreemil/fall18-bugracnr
R
false
false
18,965
r
require(data.table) require(anytime) #save paths matches_file_path = "HW1_Files/df9b1196-e3cf-4cc7-9159-f236fe738215_matches.rds" odd_details_file_path = "HW1_Files/df9b1196-e3cf-4cc7-9159-f236fe738215_odd_details.rds" #load data matches=readRDS(matches_file_path) odds=readRDS(odd_details_file_path) #keep only uniq...
#' Difference at the weights #' #' Calculates the difference at the weights, taking into account the number of #' lbs behind the winner the horse was, and the weight the horse carried #' compared to the winner. #' #' @param \strong{btn_lbs} beaten lbs between runners #' @param \strong{wgt_carried} weight carried (in ...
/R/diff_at_wgts.R
no_license
OHRacing/RcappeR
R
false
false
545
r
#' Difference at the weights #' #' Calculates the difference at the weights, taking into account the number of #' lbs behind the winner the horse was, and the weight the horse carried #' compared to the winner. #' #' @param \strong{btn_lbs} beaten lbs between runners #' @param \strong{wgt_carried} weight carried (in ...
## Output : Hospital Name with lowest 30-day death for input outcome. ## Input : State 2digit code, Outcome ## [2] "Hospital.Name" ## [7] "State" ## [11] "Hospital.30.Day.Death..Mortality..Rates.from.Heart.Attack" ## [17] "Hospital.30.Day.Death..Mortality..Rates.from.Heart.Failure" ## [23] "Hospital.30.Day.Death.....
/best.R
no_license
NikhilsCodeHub/ProgrammingAssignment3
R
false
false
1,836
r
## Output : Hospital Name with lowest 30-day death for input outcome. ## Input : State 2digit code, Outcome ## [2] "Hospital.Name" ## [7] "State" ## [11] "Hospital.30.Day.Death..Mortality..Rates.from.Heart.Attack" ## [17] "Hospital.30.Day.Death..Mortality..Rates.from.Heart.Failure" ## [23] "Hospital.30.Day.Death.....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllMethods.R \name{mcmc_plots} \alias{mcmc_plots} \alias{mcmc_intervals} \alias{mcmc_intervals,bayesGAMfit-method} \alias{mcmc_areas} \alias{mcmc_areas,bayesGAMfit-method} \alias{mcmc_hist} \alias{mcmc_hist,bayesGAMfit-method} \alias{mcmc_his...
/fuzzedpackages/bayesGAM/man/mcmc_plots.Rd
no_license
akhikolla/testpackages
R
false
true
8,818
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/AllMethods.R \name{mcmc_plots} \alias{mcmc_plots} \alias{mcmc_intervals} \alias{mcmc_intervals,bayesGAMfit-method} \alias{mcmc_areas} \alias{mcmc_areas,bayesGAMfit-method} \alias{mcmc_hist} \alias{mcmc_hist,bayesGAMfit-method} \alias{mcmc_his...
rm(list = ls()) source("config_paths.R") source("config_general.R") source("config_splitting.R") source("jasa_utils.R") library(parallel) library(fBasics) library(msm) library(gtools) library(forecast) library(abind) library(glmnet) load(file.path(work.folder, "myinfo.Rdata")) node_nbkids <- apply(Sagg, 1, sum) nod...
/code/plot_series.R
no_license
bsouhaib/jasa
R
false
false
1,995
r
rm(list = ls()) source("config_paths.R") source("config_general.R") source("config_splitting.R") source("jasa_utils.R") library(parallel) library(fBasics) library(msm) library(gtools) library(forecast) library(abind) library(glmnet) load(file.path(work.folder, "myinfo.Rdata")) node_nbkids <- apply(Sagg, 1, sum) nod...
plotTOM <- function(TOMData, proteinDendro, moduleColors, fileName = "Results/NetworkHeatmap.png", ...){ message("Begin generating TOM plot.") message("Please be patient. This may take a while") dev.new() png(filename = fileName) TOMplot(TOMData, prote...
/R/plotTOM.R
permissive
avcarr2/MetaNetworkDownloadable
R
false
false
553
r
plotTOM <- function(TOMData, proteinDendro, moduleColors, fileName = "Results/NetworkHeatmap.png", ...){ message("Begin generating TOM plot.") message("Please be patient. This may take a while") dev.new() png(filename = fileName) TOMplot(TOMData, prote...
\name{rrmvarlmomco} \alias{rrmvarlmomco} \title{Reversed Variance Residual Quantile Function of the Distributions} \description{ This function computes the Reversed Variance Residual Quantile Function for a quantile function \eqn{x{F}} (\code{\link{par2qua}}, \code{\link{qlmomco}}). The variance is defined by Nair et a...
/man/rrmvarlmomco.Rd
no_license
wasquith/lmomco
R
false
false
1,704
rd
\name{rrmvarlmomco} \alias{rrmvarlmomco} \title{Reversed Variance Residual Quantile Function of the Distributions} \description{ This function computes the Reversed Variance Residual Quantile Function for a quantile function \eqn{x{F}} (\code{\link{par2qua}}, \code{\link{qlmomco}}). The variance is defined by Nair et a...
library(tidyverse) library(here) proj_dir <- here() # this file of exported geo search results # "expression profiling by high throughput sequencing"[DataSet Type] AND "single cell"[All Fields] fileloc <- file.path(proj_dir, "data", "geo_query", "gds_result_allsc.txt") gds <- read_table(fileloc, col_names = FALSE) %>...
/utils/geo_query.R
no_license
SidhantPuntambekar/scmetadata
R
false
false
1,973
r
library(tidyverse) library(here) proj_dir <- here() # this file of exported geo search results # "expression profiling by high throughput sequencing"[DataSet Type] AND "single cell"[All Fields] fileloc <- file.path(proj_dir, "data", "geo_query", "gds_result_allsc.txt") gds <- read_table(fileloc, col_names = FALSE) %>...
#'@name isEndOfDataDS #'@title Verifies the end of some encoded data on the server has been reached #'@description This server function indicates whether the number of rows transferred has exceeded #'of equal to the number of rows in the encoded data frame. #'@param data_encoded - character argument specifying the na...
/R/isEndOfDataDS.R
no_license
patRyserWelch8/dsShareServerOldVersion
R
false
false
1,044
r
#'@name isEndOfDataDS #'@title Verifies the end of some encoded data on the server has been reached #'@description This server function indicates whether the number of rows transferred has exceeded #'of equal to the number of rows in the encoded data frame. #'@param data_encoded - character argument specifying the na...
#' Creation of augmentation functions #' #' @description Creates an augmentation function that optionally utilizes cross-fitting #' #' @param family The response type (see options in \code{\link[glmnet]{glmnet}} help file) #' @param crossfit A logical value indicating whether to use cross-fitting (\code{TRUE}) or no...
/R/augmentation_utils.R
no_license
jaredhuling/personalized
R
false
false
14,999
r
#' Creation of augmentation functions #' #' @description Creates an augmentation function that optionally utilizes cross-fitting #' #' @param family The response type (see options in \code{\link[glmnet]{glmnet}} help file) #' @param crossfit A logical value indicating whether to use cross-fitting (\code{TRUE}) or no...
sum.stat <- function(data){ mean <- mean(data) standard.dev <- sd(data) skewness <- skewness(data) kurtosis <- kurtosis(data) rbind(mean,standard.dev,skewness,kurtosis) }
/Scripts/summary statistics.R
no_license
kclt/BU_MA415_Project
R
false
false
177
r
sum.stat <- function(data){ mean <- mean(data) standard.dev <- sd(data) skewness <- skewness(data) kurtosis <- kurtosis(data) rbind(mean,standard.dev,skewness,kurtosis) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kobo_encode_repeat.R \name{kobo_encode_repeat} \alias{kobo_encode_repeat} \title{Encode variable} \usage{ kobo_encode_repeat(data, dico) } \arguments{ \item{data}{Dataframe to re-label} \item{dico}{Data dictionnary generated from kobo_dico} ...
/man/kobo_encode_repeat.Rd
no_license
unhcr/koboloadeR
R
false
true
717
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kobo_encode_repeat.R \name{kobo_encode_repeat} \alias{kobo_encode_repeat} \title{Encode variable} \usage{ kobo_encode_repeat(data, dico) } \arguments{ \item{data}{Dataframe to re-label} \item{dico}{Data dictionnary generated from kobo_dico} ...
F=5.96 # computed from 9.3 alpha=0.05 MSError=.0153 F_value=qf(1-alpha,df1=4,df2 = 25) # as the F >F_value print(" we reject H0 and conclude that at least one of the population means differs from the rest") t.alpha=qt(1-alpha/2,df=25) LSD=t.alpha*(sqrt((2*MSError)/6)) print(LSD)
/An_Introduction_To_Statistical_Methods_And_Data_Analysis_by_R_Lyman_Ott_And_Michael_Longnecker/CH9/EX9.7/Ex9_7.r
permissive
FOSSEE/R_TBC_Uploads
R
false
false
290
r
F=5.96 # computed from 9.3 alpha=0.05 MSError=.0153 F_value=qf(1-alpha,df1=4,df2 = 25) # as the F >F_value print(" we reject H0 and conclude that at least one of the population means differs from the rest") t.alpha=qt(1-alpha/2,df=25) LSD=t.alpha*(sqrt((2*MSError)/6)) print(LSD)
##' add tree scale to a tree ##' ##' 'geom_treescale' automatically adds a scale bar for evolutionary distance ##' ##' ##' @title geom_treescale ##' @param x set x position of the scale ##' @param y set y position of the scale ##' @param width set the length of the tree scale ##' @param offset set offset of text to lin...
/R/geom_treescale.R
no_license
xiangpin/ggtree
R
false
false
8,274
r
##' add tree scale to a tree ##' ##' 'geom_treescale' automatically adds a scale bar for evolutionary distance ##' ##' ##' @title geom_treescale ##' @param x set x position of the scale ##' @param y set y position of the scale ##' @param width set the length of the tree scale ##' @param offset set offset of text to lin...
## This implementation fo the cached matrix inversion function ## This is factory function used to initialise the matrix with the ## cache options. Assigne it to the object you want to used as cached matrix makeCacheMatrix <- function(x = matrix()) { ## check matrix at construction time. We do not want to use no...
/cachematrix.R
no_license
nicksi/ProgrammingAssignment2
R
false
false
1,826
r
## This implementation fo the cached matrix inversion function ## This is factory function used to initialise the matrix with the ## cache options. Assigne it to the object you want to used as cached matrix makeCacheMatrix <- function(x = matrix()) { ## check matrix at construction time. We do not want to use no...
#!/usr/bin/env Rscript library(jsonlite) library(dplyr) library(tidyr) getData <- function(raw, country_="Taiwan*", province_=NA, type="cases"){ raw_ <- raw %>% filter(country=="Taiwan*") dat <- raw_[["timeline"]][[type]] %>% gather(key = "date", value="cases") %>% mutate(date=as.Date(date, "%m...
/R/main.R
permissive
exactone/COVID-19-Forecasts
R
false
false
2,088
r
#!/usr/bin/env Rscript library(jsonlite) library(dplyr) library(tidyr) getData <- function(raw, country_="Taiwan*", province_=NA, type="cases"){ raw_ <- raw %>% filter(country=="Taiwan*") dat <- raw_[["timeline"]][[type]] %>% gather(key = "date", value="cases") %>% mutate(date=as.Date(date, "%m...
data.dir<-"d:/downloaded_data/pes/" cores<-paste("core", c("21-91","4-89","9","30-91B","48-91","43-91","20-91B")) core.data<-lapply(cores,function(core){ print(core) tab<-read.table(paste(data.dir,core,".txt",sep=""), header=T, row.names=1, sep="\t", skip=1) tab<-tab[order(rownames(tab)),] colnames(tab)...
/coredata.r
no_license
richardjtelford/PES
R
false
false
2,115
r
data.dir<-"d:/downloaded_data/pes/" cores<-paste("core", c("21-91","4-89","9","30-91B","48-91","43-91","20-91B")) core.data<-lapply(cores,function(core){ print(core) tab<-read.table(paste(data.dir,core,".txt",sep=""), header=T, row.names=1, sep="\t", skip=1) tab<-tab[order(rownames(tab)),] colnames(tab)...
library(ape) testtree <- read.tree("13083_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="13083_0_unrooted.txt")
/codeml_files/newick_trees_processed/13083_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("13083_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="13083_0_unrooted.txt")
% Generated by roxygen2 (4.0.0): do not edit by hand \name{loadResampleModels} \alias{loadResampleModels} \title{Loads all resample models, for the base fit and resample fits} \usage{ loadResampleModels(modelType, countryAbbrev, energyType = "none", factor = NA, archive = NULL, baseResample) } \arguments{ \item{mod...
/Packages/EconModels0/man/loadResampleModels.Rd
no_license
anhnguyendepocen/MacroGrowth
R
false
false
1,461
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{loadResampleModels} \alias{loadResampleModels} \title{Loads all resample models, for the base fit and resample fits} \usage{ loadResampleModels(modelType, countryAbbrev, energyType = "none", factor = NA, archive = NULL, baseResample) } \arguments{ \item{mod...
library(CBCgrps) ### Name: twogrps ### Title: Compare Baseline Characteristics between two groups ### Aliases: twogrps ### Keywords: Compare baseline ### ** Examples data(df) a<-twogrps(df,"mort")
/data/genthat_extracted_code/CBCgrps/examples/twogrps.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
205
r
library(CBCgrps) ### Name: twogrps ### Title: Compare Baseline Characteristics between two groups ### Aliases: twogrps ### Keywords: Compare baseline ### ** Examples data(df) a<-twogrps(df,"mort")
#' @rdname rspm_api #' #' @name rspm_api #' #' @title API to interact with RStudio package manager #' #' @description These functions provide an interface with the RStudio #' package manager API as functions with the prefix 'rspm'. #' URL: https://packagemanager.rstudio.com/__api__/swagger/index.html to #' ...
/R/rspm_api.R
no_license
nturaga/BiocPkgSysReqs
R
false
false
4,848
r
#' @rdname rspm_api #' #' @name rspm_api #' #' @title API to interact with RStudio package manager #' #' @description These functions provide an interface with the RStudio #' package manager API as functions with the prefix 'rspm'. #' URL: https://packagemanager.rstudio.com/__api__/swagger/index.html to #' ...
library(tidyverse) #dimentions of the plate y <- 1:8 x <- (1:12)/1.5 t <- as.data.frame(expand.grid(x,y)) names(t) <- c("x", "y") t <-t %>% arrange(desc(y)) #Generating a vector for the coatings of the plate. # Will results in the colour of the well # To get text or fill, generate a 96 long vector filling the plat...
/96well_plate_figure.R
no_license
ChrisgKent/96well_plate_figure
R
false
false
1,626
r
library(tidyverse) #dimentions of the plate y <- 1:8 x <- (1:12)/1.5 t <- as.data.frame(expand.grid(x,y)) names(t) <- c("x", "y") t <-t %>% arrange(desc(y)) #Generating a vector for the coatings of the plate. # Will results in the colour of the well # To get text or fill, generate a 96 long vector filling the plat...
#' List of informations on Gene Ontology of selected genes #' @author Simon J Pelletier #' @param results A topTable with only the genes considered significant (according to #' the p-value and logFC limits provided in the function results_topTable) #' @param ngenes A list of WGCNA results #' @param go An object that co...
/R/geneOntology.R
no_license
spell098/rnaseqFunctions
R
false
false
5,029
r
#' List of informations on Gene Ontology of selected genes #' @author Simon J Pelletier #' @param results A topTable with only the genes considered significant (according to #' the p-value and logFC limits provided in the function results_topTable) #' @param ngenes A list of WGCNA results #' @param go An object that co...
context("sarprobit") library(spatialprobit) set.seed(2) n <- 200 I_n <- sparseMatrix(i=1:n, j=1:n, x=1) rho <- 0.75 W <- kNearestNeighbors(x=rnorm(n), y=rnorm(n)) rho <- 0.5 S <- (I_n - rho * W) QR <- qr(S) x <- rnorm(n) test_that("sarprobit() only accepts valid inputs for y", { # y must only have 0 o...
/inst/tests/test-sarprobit.R
no_license
cran/spatialprobit
R
false
false
1,191
r
context("sarprobit") library(spatialprobit) set.seed(2) n <- 200 I_n <- sparseMatrix(i=1:n, j=1:n, x=1) rho <- 0.75 W <- kNearestNeighbors(x=rnorm(n), y=rnorm(n)) rho <- 0.5 S <- (I_n - rho * W) QR <- qr(S) x <- rnorm(n) test_that("sarprobit() only accepts valid inputs for y", { # y must only have 0 o...
## plot4.R ## ----getData, results='hold', purl=TRUE, cache=FALSE--------------------- library(data.table, warn.conflicts = FALSE, quietly = TRUE, verbose=FALSE) dataFile <- "household_power_consumption.txt" zipFile <- "household_power_consumption.zip" if (!file.exists(dataFile)) { url <- "https://d396qusza40orc....
/plot4.R
no_license
ronalstal/ExData_Plotting1
R
false
false
2,716
r
## plot4.R ## ----getData, results='hold', purl=TRUE, cache=FALSE--------------------- library(data.table, warn.conflicts = FALSE, quietly = TRUE, verbose=FALSE) dataFile <- "household_power_consumption.txt" zipFile <- "household_power_consumption.zip" if (!file.exists(dataFile)) { url <- "https://d396qusza40orc....
hhPower <- read.table("./ExData_Plotting1/household_power_consumption.txt", skip = 66637, nrows = 2880, sep=';', na.strings="?", check.names=FALSE) colnames(hhPower) = c("date", "time", "gActivePower", "gRPower", "voltage", "gIntensity", "sub1", "sub...
/plot2.R
no_license
girangtoh/ExData_Plotting1
R
false
false
811
r
hhPower <- read.table("./ExData_Plotting1/household_power_consumption.txt", skip = 66637, nrows = 2880, sep=';', na.strings="?", check.names=FALSE) colnames(hhPower) = c("date", "time", "gActivePower", "gRPower", "voltage", "gIntensity", "sub1", "sub...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annot_EPIC-data.R \docType{data} \name{annot_EPIC} \alias{annot_EPIC} \title{Genetic variants associated to Illumina Infinium MethylationEPIC Beadchip probes} \format{ An object of class list } \usage{ data(annot_EPIC) } \description{ Include...
/man/annot_EPIC.Rd
permissive
BenjaminPlanterose/UMtools
R
false
true
2,017
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/annot_EPIC-data.R \docType{data} \name{annot_EPIC} \alias{annot_EPIC} \title{Genetic variants associated to Illumina Infinium MethylationEPIC Beadchip probes} \format{ An object of class list } \usage{ data(annot_EPIC) } \description{ Include...
library(data.table) set.seed(1) nrec <- 50 connTab <- data.table( uid = sample(c("du43", "b4ud", "37du", "jhje"), nrec, replace = TRUE), type = sample(c("desktop", "phone"), nrec, replace = TRUE), date = sample(as.Date(1:5, "2019-10-31"), nrec, replace = TRUE) ) userTab <- data.table( uid = c("du43",...
/data/slides/makeSlideData.R
no_license
jmt2080ad/intro_to_datatable
R
false
false
708
r
library(data.table) set.seed(1) nrec <- 50 connTab <- data.table( uid = sample(c("du43", "b4ud", "37du", "jhje"), nrec, replace = TRUE), type = sample(c("desktop", "phone"), nrec, replace = TRUE), date = sample(as.Date(1:5, "2019-10-31"), nrec, replace = TRUE) ) userTab <- data.table( uid = c("du43",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transform.R \name{translog} \alias{translog} \title{translog} \usage{ translog(x) } \arguments{ \item{x}{A numeric vector} } \description{ A simple log transformation } \examples{ translog(exp(rnorm(7))) }
/man/translog.Rd
no_license
nandakallugjeri/bmarketing
R
false
true
285
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transform.R \name{translog} \alias{translog} \title{translog} \usage{ translog(x) } \arguments{ \item{x}{A numeric vector} } \description{ A simple log transformation } \examples{ translog(exp(rnorm(7))) }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model_plots.R \name{mplot_importance} \alias{mplot_importance} \title{Variables Importances Plot} \usage{ mplot_importance( var, imp, colours = NA, limit = 15, model_name = NA, subtitle = NA, save = FALSE, subdir = NA, file_...
/man/mplot_importance.Rd
no_license
laresbernardo/lares
R
false
true
1,907
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model_plots.R \name{mplot_importance} \alias{mplot_importance} \title{Variables Importances Plot} \usage{ mplot_importance( var, imp, colours = NA, limit = 15, model_name = NA, subtitle = NA, save = FALSE, subdir = NA, file_...
if ( requireNamespace("tinytest", quietly = TRUE) && utils::packageVersion("tinytest") >= "1.0.0") { # home <- length(unclass(packageVersion("ctrdata"))[[1]]) == 4 home <- Sys.getenv("AT_HOME") != "" tinytest::test_package("ctrdata", at_home = home) }
/tests/tinytest.R
permissive
danielmana/ctrdata
R
false
false
265
r
if ( requireNamespace("tinytest", quietly = TRUE) && utils::packageVersion("tinytest") >= "1.0.0") { # home <- length(unclass(packageVersion("ctrdata"))[[1]]) == 4 home <- Sys.getenv("AT_HOME") != "" tinytest::test_package("ctrdata", at_home = home) }
library(xlsx) setwd("~/Dropbox/- Code/- Github/us emissions by state/code") states = tolower(state.name) states = append(states, 'district of columbia') states = gsub('[[:space:]]','%20', states) dat = c() for (i in states) { states = i temp = read.xlsx(paste0('../rawData/byState/', states, '.xlsx'),...
/code/codeDataCleanCO2.R
no_license
nikostsafos/State-level-CO2-emissions-by-fuel-and-sector
R
false
false
2,177
r
library(xlsx) setwd("~/Dropbox/- Code/- Github/us emissions by state/code") states = tolower(state.name) states = append(states, 'district of columbia') states = gsub('[[:space:]]','%20', states) dat = c() for (i in states) { states = i temp = read.xlsx(paste0('../rawData/byState/', states, '.xlsx'),...
x<- 5 if ( x > 3){ y <- 10 print('greater than') } else { y <-0 print('less than') } # Doesn't work so well for me... z <- if(5>3) { 10 } else { 0 } z
/if-else.R
no_license
kamilien1/R-Data-Science
R
false
false
167
r
x<- 5 if ( x > 3){ y <- 10 print('greater than') } else { y <-0 print('less than') } # Doesn't work so well for me... z <- if(5>3) { 10 } else { 0 } z
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ubiquity.R \name{toc} \alias{toc} \title{Implementation of Matlab \code{toc()} command} \usage{ toc() } \value{ time in seconds since tic() was called } \description{ Used in conjunction with \code{tic()} to find the elapsed time when code is...
/man/toc.Rd
permissive
minghao2016/ubiquity
R
false
true
482
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ubiquity.R \name{toc} \alias{toc} \title{Implementation of Matlab \code{toc()} command} \usage{ toc() } \value{ time in seconds since tic() was called } \description{ Used in conjunction with \code{tic()} to find the elapsed time when code is...
#' Use a usethis-style template for TidyTuesdy #' Thank you Jenny + Sharla + Sharleen! #' #' Creates a file from data and a template. #' Combine your template file with your data. #' @param title_subject a single topic for this week's data #' @param dataset_name a single dataset name in the pattern of `filename` - the ...
/R/use_tidytuesday_template.R
permissive
jthomasmock/tidytuesdaymeta
R
false
false
1,125
r
#' Use a usethis-style template for TidyTuesdy #' Thank you Jenny + Sharla + Sharleen! #' #' Creates a file from data and a template. #' Combine your template file with your data. #' @param title_subject a single topic for this week's data #' @param dataset_name a single dataset name in the pattern of `filename` - the ...
# Need to install then load gplots library print("Need to issue library(gplots)", quote=FALSE) source("iccranalysis.r") source("calcZCorrelations.r") colourList=c("black", "red", "blue", "green", "magenta", "brown","slategrey"); #Root name for all files rootName="IC20090521" # TRUE (FALSE) for c (c/r) cNotCoverR=FA...
/R/ImperialPapers/bkold/backups/20110808/runiccranalysis.r
no_license
xuzhikethinker/PRG
R
false
false
18,126
r
# Need to install then load gplots library print("Need to issue library(gplots)", quote=FALSE) source("iccranalysis.r") source("calcZCorrelations.r") colourList=c("black", "red", "blue", "green", "magenta", "brown","slategrey"); #Root name for all files rootName="IC20090521" # TRUE (FALSE) for c (c/r) cNotCoverR=FA...
## Testul Z pt medie (se cunoaste sigma^2 a intregii populatii) # I.2 sigma^2 = 144, n = 49, x barat = 88, miu0 = 90 # 1) H0: miu = miu0 = 90 (ipoteza nula) # 2) Ha: miu < miu0 (asimetrica stanga) # 3: alfa = {0.01, 0.05} # 4) scorul testului (valoarea calculata): z = (x barat - miu0)/(sigma/sqrt(miu)) = -1.16 # 5) cr...
/Semestru II/PS/Statistică/Lab6/Lab6.R
no_license
Andreea15B/Facultate_an_I
R
false
false
8,596
r
## Testul Z pt medie (se cunoaste sigma^2 a intregii populatii) # I.2 sigma^2 = 144, n = 49, x barat = 88, miu0 = 90 # 1) H0: miu = miu0 = 90 (ipoteza nula) # 2) Ha: miu < miu0 (asimetrica stanga) # 3: alfa = {0.01, 0.05} # 4) scorul testului (valoarea calculata): z = (x barat - miu0)/(sigma/sqrt(miu)) = -1.16 # 5) cr...
# Mapping Baltimore Life Expectancy # Data from CDC USALEEP (https://www.cdc.gov/nchs/nvss/usaleep/usaleep.html) # Libraries library(rgdal) library(tidyverse) library(ggmap) library(leaflet) library(leaflet.extras) library(tigris) # Bring in the Maryland life expectancy data and Baltimore shapefile md_leep <- read.c...
/Baltimore Life Expectancy.R
no_license
RFNajera/maryland-life-expectancy
R
false
false
1,963
r
# Mapping Baltimore Life Expectancy # Data from CDC USALEEP (https://www.cdc.gov/nchs/nvss/usaleep/usaleep.html) # Libraries library(rgdal) library(tidyverse) library(ggmap) library(leaflet) library(leaflet.extras) library(tigris) # Bring in the Maryland life expectancy data and Baltimore shapefile md_leep <- read.c...
# @knitr setup_flight_seq_2dmap # 2D map flight sequence frames setwd("/workspace/UA/mfleonawicz/leonawicz/GlobalNetworks/workspaces") #setwd("C:/leonawicz/GlobalNetworks/workspaces") load("flight_sequence_breakDL_10kboot.RData") load("points.RData") library(parallel) library(png) library(ggplot2) library(gridExtra) ...
/code/flight_frames_2dmap.R
no_license
leonawicz/gnet-dev
R
false
false
2,617
r
# @knitr setup_flight_seq_2dmap # 2D map flight sequence frames setwd("/workspace/UA/mfleonawicz/leonawicz/GlobalNetworks/workspaces") #setwd("C:/leonawicz/GlobalNetworks/workspaces") load("flight_sequence_breakDL_10kboot.RData") load("points.RData") library(parallel) library(png) library(ggplot2) library(gridExtra) ...
\name{TTD} \alias{TTD} \title{Time to Quality of Life score deterioration} \description{ A program that computes the time to deterioration in a quality of life score.} \usage{ TTD(X, score = "", MCID, ref.init = "baseline", order = 1, no_baseline = "censored", no_follow = "censored", death = NA, sensitivity =...
/man/TTD.Rd
no_license
cran/QoLR
R
false
false
4,940
rd
\name{TTD} \alias{TTD} \title{Time to Quality of Life score deterioration} \description{ A program that computes the time to deterioration in a quality of life score.} \usage{ TTD(X, score = "", MCID, ref.init = "baseline", order = 1, no_baseline = "censored", no_follow = "censored", death = NA, sensitivity =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/1b_random_tree.R \name{generate_tree_states} \alias{generate_tree_states} \title{Convert tree to states list, used later by the gold standard to determine where there are bifurcations The modules of each bifurcation will be added later by `fr...
/man/generate_tree_states.Rd
no_license
atuldeshpande/dyngen
R
false
true
653
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/1b_random_tree.R \name{generate_tree_states} \alias{generate_tree_states} \title{Convert tree to states list, used later by the gold standard to determine where there are bifurcations The modules of each bifurcation will be added later by `fr...
test_that('basic object classes and print methods', { expect_snapshot(print(bag_mars())) expect_snapshot(print(bag_tree())) expect_snapshot(print(bart())) expect_true(inherits(bart(engine = 'dbarts'), 'bart')) expect_snapshot(print(boost_tree())) expect_true(inherits(boost_tree(engine = 'C5.0'), 'boost_t...
/tests/testthat/test_model_basics.R
permissive
tidymodels/parsnip
R
false
false
4,043
r
test_that('basic object classes and print methods', { expect_snapshot(print(bag_mars())) expect_snapshot(print(bag_tree())) expect_snapshot(print(bart())) expect_true(inherits(bart(engine = 'dbarts'), 'bart')) expect_snapshot(print(boost_tree())) expect_true(inherits(boost_tree(engine = 'C5.0'), 'boost_t...