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
library('hamcrest') print(paste("123 is valid =", validateString("123"))) assertThat(validateString("123"), equalTo(TRUE)) assertThat(validateString(NULL), equalTo(FALSE))
/singleton/src/test/R/SingletonTest.R
permissive
perNyfelt/renjinSamplesAndTests
R
false
false
175
r
library('hamcrest') print(paste("123 is valid =", validateString("123"))) assertThat(validateString("123"), equalTo(TRUE)) assertThat(validateString(NULL), equalTo(FALSE))
library(emuR) ### Name: splitstring ### Title: Split a string into words. ### Aliases: splitstring ### Keywords: misc ### ** Examples splitstring("/home/recog/steve/foo", "/") #[1] "home" "recog" "steve" "foo"
/data/genthat_extracted_code/emuR/examples/splitstring.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
219
r
library(emuR) ### Name: splitstring ### Title: Split a string into words. ### Aliases: splitstring ### Keywords: misc ### ** Examples splitstring("/home/recog/steve/foo", "/") #[1] "home" "recog" "steve" "foo"
\name{match.bb} \alias{match.bb} \title{ Branch and Bound algorithm implementation for performing multigroup non-bipartite matching } \description{ This function performs multigroup non-bipartite matching of observations based on a provided distance/dissimilarity matrix 'd'. The number of elements in each submatc...
/man/match.bb.Rd
no_license
cran/hamlet
R
false
false
3,642
rd
\name{match.bb} \alias{match.bb} \title{ Branch and Bound algorithm implementation for performing multigroup non-bipartite matching } \description{ This function performs multigroup non-bipartite matching of observations based on a provided distance/dissimilarity matrix 'd'. The number of elements in each submatc...
library(mclust) ### Name: hypvol ### Title: Aproximate Hypervolume for Multivariate Data ### Aliases: hypvol ### Keywords: cluster ### ** Examples hypvol(iris[,-5])
/data/genthat_extracted_code/mclust/examples/hypvol.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
172
r
library(mclust) ### Name: hypvol ### Title: Aproximate Hypervolume for Multivariate Data ### Aliases: hypvol ### Keywords: cluster ### ** Examples hypvol(iris[,-5])
library(tidyverse) library(lubridate) library(patchwork) library(extrafont) big_mac <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-12-22/big-mac.csv') %>% mutate(year=format(date, format = "%Y")) %>% mutate(year=as.numeric(year)) post_soviet <- big_mac %>...
/2020/week 52/week 52 (big mac).r
no_license
baltti/TidyTuesday
R
false
false
1,664
r
library(tidyverse) library(lubridate) library(patchwork) library(extrafont) big_mac <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-12-22/big-mac.csv') %>% mutate(year=format(date, format = "%Y")) %>% mutate(year=as.numeric(year)) post_soviet <- big_mac %>...
\name{quadratcount} \alias{quadratcount} \alias{quadratcount.ppp} \alias{quadratcount.splitppp} \title{Quadrat counting for a point pattern} \description{ Divides window into quadrats and counts the numbers of points in each quadrat. } \usage{ quadratcount(X, \dots) \method{quadratcount}{ppp}(X, nx=5, ny=nx, ...
/man/quadratcount.Rd
no_license
jdtuck/spatstat
R
false
false
6,095
rd
\name{quadratcount} \alias{quadratcount} \alias{quadratcount.ppp} \alias{quadratcount.splitppp} \title{Quadrat counting for a point pattern} \description{ Divides window into quadrats and counts the numbers of points in each quadrat. } \usage{ quadratcount(X, \dots) \method{quadratcount}{ppp}(X, nx=5, ny=nx, ...
misc_RNA.F <- function(Feat, SQuali, SQualiN){ Item <- c("/allele=", "/citation=", "/db_xref=", "/experiment=", "/function=", "/gene=", "/gene_synonym=", "/inference=", "/locus_tag=", "/map=", "/note=", "/old_locus_tag=", "/operon=", "/product=", "/pseudogene=", "/standard_name=") ItemN <- c("allele", "citation",...
/R/misc_RNA.F.R
no_license
Largon-Denayah/read.gb-2.0.1
R
false
false
2,046
r
misc_RNA.F <- function(Feat, SQuali, SQualiN){ Item <- c("/allele=", "/citation=", "/db_xref=", "/experiment=", "/function=", "/gene=", "/gene_synonym=", "/inference=", "/locus_tag=", "/map=", "/note=", "/old_locus_tag=", "/operon=", "/product=", "/pseudogene=", "/standard_name=") ItemN <- c("allele", "citation",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CeTFdemo-data.R \docType{data} \name{CeTFdemo} \alias{CeTFdemo} \title{CeTFdemo class object example} \format{ An CeTF class object } \usage{ data(CeTFdemo) } \description{ A CeTFdemo class object to run the examples in functions. This object...
/man/CeTFdemo.Rd
no_license
cbiagii/CeTF
R
false
true
562
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CeTFdemo-data.R \docType{data} \name{CeTFdemo} \alias{CeTFdemo} \title{CeTFdemo class object example} \format{ An CeTF class object } \usage{ data(CeTFdemo) } \description{ A CeTFdemo class object to run the examples in functions. This object...
## NightLord - Data ## NightLord - VMatrix PasSkills <- c("QuadrapleThrow", "SuddenRaid", "MarkofNightLord", "DarkFlare", "Showdown", "FourSeasons") PasLvs <- c(50, 50, 50, 50, 50, 50) PasMP <- c(10, 10, 10, 5, 5, 5) ActSkills <- c("SpreadThrow", "ThrowingKnife", "SecretBook", "ThrowBlasting", "Ultimate...
/NightLord.R
no_license
gongqianlin/Maplestory_DPM
R
false
false
32,376
r
## NightLord - Data ## NightLord - VMatrix PasSkills <- c("QuadrapleThrow", "SuddenRaid", "MarkofNightLord", "DarkFlare", "Showdown", "FourSeasons") PasLvs <- c(50, 50, 50, 50, 50, 50) PasMP <- c(10, 10, 10, 5, 5, 5) ActSkills <- c("SpreadThrow", "ThrowingKnife", "SecretBook", "ThrowBlasting", "Ultimate...
example.table = function() { ref = c("1A","1B","2","3_4A","4B") content = paste0("<p> Cell ",seq_along(ref),"</p>") html = html.table(content, ref=ref) app = eventsApp() app$ui = fluidPage( HTML('<style> table, th, td { border: 1px solid black; } </style>'), HTML(html)) runEventsApp(app,launch...
/R/table.r
no_license
skranz/EconCurves
R
false
false
2,457
r
example.table = function() { ref = c("1A","1B","2","3_4A","4B") content = paste0("<p> Cell ",seq_along(ref),"</p>") html = html.table(content, ref=ref) app = eventsApp() app$ui = fluidPage( HTML('<style> table, th, td { border: 1px solid black; } </style>'), HTML(html)) runEventsApp(app,launch...
PV <- function(num, A,i,t,m) switch(num, satu = { bungatunggal = K= A/(1+i*t) #PV TUNGGAL print(bungatunggal) }, dua = { bungamajemuknominal = K = A*(1+i/m)^(-m*t) #PV NOMINAL print(bungamajemuknominal) }, tiga={ ...
/PV.R
no_license
reni20/statistika-keuangan
R
false
false
434
r
PV <- function(num, A,i,t,m) switch(num, satu = { bungatunggal = K= A/(1+i*t) #PV TUNGGAL print(bungatunggal) }, dua = { bungamajemuknominal = K = A*(1+i/m)^(-m*t) #PV NOMINAL print(bungamajemuknominal) }, tiga={ ...
PREP2 <- read.csv(".\\Datos\\GTO_DIP_LOC_2021.csv", na.strings = c("Ilegible","Sin dato","","-","Sin datos")) Diputaciones <- function(PREP){ # IND PAN PRI-PRD PRI MORENA VERDE MC PRD RSP PT PES NA FM ---- # Quitamos aqui nulos y no reg PREP %<>% transmute( "DISTRITO_LOCAL" = DISTRITO_LOCAL,...
/PREP_Analysis/Functions/Diputaciones.R
no_license
jfran20/PREPGTO2021
R
false
false
6,146
r
PREP2 <- read.csv(".\\Datos\\GTO_DIP_LOC_2021.csv", na.strings = c("Ilegible","Sin dato","","-","Sin datos")) Diputaciones <- function(PREP){ # IND PAN PRI-PRD PRI MORENA VERDE MC PRD RSP PT PES NA FM ---- # Quitamos aqui nulos y no reg PREP %<>% transmute( "DISTRITO_LOCAL" = DISTRITO_LOCAL,...
library(lmtest) ## RANDOMIZED BLOCK DESIGN # A randomized block design eliminates the effect of the block factor so that it does not affect the factor(s) of interest. # Blocking eliminates the effect of extraneous variables # Note: In each block, each treatment is represented once # Randomized Block Design : In add...
/Session_12.R
no_license
gayanithalagoda/Introduction_to_R_Programming
R
false
false
4,250
r
library(lmtest) ## RANDOMIZED BLOCK DESIGN # A randomized block design eliminates the effect of the block factor so that it does not affect the factor(s) of interest. # Blocking eliminates the effect of extraneous variables # Note: In each block, each treatment is represented once # Randomized Block Design : In add...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1838 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1718 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1718 c c Input Parameter (command line, fil...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Rintanen/Sorting_networks/sortnetsort6.v.stepl.006/sortnetsort6.v.stepl.006.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
982
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 1838 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1718 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 1718 c c Input Parameter (command line, fil...
print('hello') X<-10 Y<-12 Z<-X+Y x<-c('male','female','male','male','female') x y<-factor(x) y library(gapminder) data("gapminder") summary(gapminder) x<-mean(gapminder$gdpPercap) x attach(gapminder) median(pop) hist(lifeExp) hist(log(pop)) scatter.smooth(lifeExp~log(gdpPercap)) install.package...
/L1.R
no_license
rlankelahotmail/Lankela-Rajasekhar-Rep
R
false
false
952
r
print('hello') X<-10 Y<-12 Z<-X+Y x<-c('male','female','male','male','female') x y<-factor(x) y library(gapminder) data("gapminder") summary(gapminder) x<-mean(gapminder$gdpPercap) x attach(gapminder) median(pop) hist(lifeExp) hist(log(pop)) scatter.smooth(lifeExp~log(gdpPercap)) install.package...
library(IMIFA) ### Name: mgpControl ### Title: Control settings for the MGP prior and AGS for infinite factor ### models ### Aliases: mgpControl ### Keywords: control ### ** Examples mgpctrl <- mgpControl(phi.hyper=c(2.5, 1), eps=1e-02) # data(olive) # sim <- mcmc_IMIFA(olive, "IMIFA", n.iters=5000, MGP=mgpctr...
/data/genthat_extracted_code/IMIFA/examples/mgpControl.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
460
r
library(IMIFA) ### Name: mgpControl ### Title: Control settings for the MGP prior and AGS for infinite factor ### models ### Aliases: mgpControl ### Keywords: control ### ** Examples mgpctrl <- mgpControl(phi.hyper=c(2.5, 1), eps=1e-02) # data(olive) # sim <- mcmc_IMIFA(olive, "IMIFA", n.iters=5000, MGP=mgpctr...
library(UsingR) data("father.son") x<-father.son$sheight (mean(x)+c(-1,1)*qnorm(0.975)*sd(x)/sqrt(length(x)))/12
/StatisticalInference/Semana2/Asymptotic.R
no_license
jspaz/DataScience
R
false
false
112
r
library(UsingR) data("father.son") x<-father.son$sheight (mean(x)+c(-1,1)*qnorm(0.975)*sd(x)/sqrt(length(x)))/12
#' @import assertive #' @title Check device type #' @description Check what type a device is given platform and device indices #' @param device_idx An integer value indicating which device to query. #' @param context_idx An integer value indicating which context to query. #' @return A character string indicati...
/R/wrappers-utils.R
no_license
cran/gpuR
R
false
false
12,333
r
#' @import assertive #' @title Check device type #' @description Check what type a device is given platform and device indices #' @param device_idx An integer value indicating which device to query. #' @param context_idx An integer value indicating which context to query. #' @return A character string indicati...
#' @importFrom stats pt qnorm pchisq #' @importFrom survey svydesign svyranktest #' @importFrom stats kruskal.test #' @importFrom verbs Sum calcPvaluesForOneVariable <- function(x, group, weights, is.binary = FALSE, non.parametric = FALSE) { if (!is.factor(group)) group <- factor(group) n.levels <- nlev...
/R/calcpvalue.R
no_license
Displayr/flipAnalysisOfVariance
R
false
false
12,039
r
#' @importFrom stats pt qnorm pchisq #' @importFrom survey svydesign svyranktest #' @importFrom stats kruskal.test #' @importFrom verbs Sum calcPvaluesForOneVariable <- function(x, group, weights, is.binary = FALSE, non.parametric = FALSE) { if (!is.factor(group)) group <- factor(group) n.levels <- nlev...
library(edgeR) library(stringr) library(dplyr) library(pcProfile) library(ggplot2) library(gplots) source('./R/lib.R') biomart <- distinct(pf.get.biomart(), ensembl_gene_id, .keep_all = TRUE) counts <- pf.get.count()[,c(500:551,1:499)]# 1:499 tumor, 500:551: normal group <- c(rep('N',52),rep('T', 499)) genes <- biomar...
/R/01_dea_TCGA.R
no_license
hcyvan/pcNetwork
R
false
false
5,417
r
library(edgeR) library(stringr) library(dplyr) library(pcProfile) library(ggplot2) library(gplots) source('./R/lib.R') biomart <- distinct(pf.get.biomart(), ensembl_gene_id, .keep_all = TRUE) counts <- pf.get.count()[,c(500:551,1:499)]# 1:499 tumor, 500:551: normal group <- c(rep('N',52),rep('T', 499)) genes <- biomar...
#' Re-map filename/URL (date) for 2012 download logs. #' #' To get the "right" log. #' @param date Character. Date. "yyyy-mm-dd". #' @note This date problem does not affect \code{cranDownlaods()}. #' @return A one unit R date or character vector. #' @noRd fixDate_2012 <- function(date = "2012-12-31") { if (!inherits...
/R/fixDate_2012.R
no_license
lindbrook/packageRank
R
false
false
1,664
r
#' Re-map filename/URL (date) for 2012 download logs. #' #' To get the "right" log. #' @param date Character. Date. "yyyy-mm-dd". #' @note This date problem does not affect \code{cranDownlaods()}. #' @return A one unit R date or character vector. #' @noRd fixDate_2012 <- function(date = "2012-12-31") { if (!inherits...
KochSnowflakeExample <- function(n,length){ iterate <- function(T,i){ A = T[ ,1]; B=T[ ,2]; C = T[,3]; if (i == 1){ d = (A + B)/2; h = (C-d); d = d-(1/3)*h; e = (2/3)*B + (1/3)*A; f = (1/3)*B + (2/3)*A; } if (i == 2){ d = B; e = (2/3)*B + (1/3)*C; f = (2/3)*B + (1/3)*...
/LongitudDeCurvaDeUnCopo/codigo.R
no_license
SantiagoChaparro/Analisis-Numerico
R
false
false
1,898
r
KochSnowflakeExample <- function(n,length){ iterate <- function(T,i){ A = T[ ,1]; B=T[ ,2]; C = T[,3]; if (i == 1){ d = (A + B)/2; h = (C-d); d = d-(1/3)*h; e = (2/3)*B + (1/3)*A; f = (1/3)*B + (2/3)*A; } if (i == 2){ d = B; e = (2/3)*B + (1/3)*C; f = (2/3)*B + (1/3)*...
library("arules") library("arulesViz") Abook <- read.csv(file.choose()) class(Abook) colnames(Abook) Abook$ChildBks <- factor(Abook$ChildBks,levels = c("1","0"),labels = c("ChildBks","")) Abook$YouthBks <- factor(Abook$YouthBks,levels = c("1","0"),labels = c("YouthBks","")) Abook$CookBks <- factor(...
/BookR1.R
no_license
surajbaraik/Data-Mining-Unsupervised-Learning---Association-Rule-bookdata-Rcode
R
false
false
1,673
r
library("arules") library("arulesViz") Abook <- read.csv(file.choose()) class(Abook) colnames(Abook) Abook$ChildBks <- factor(Abook$ChildBks,levels = c("1","0"),labels = c("ChildBks","")) Abook$YouthBks <- factor(Abook$YouthBks,levels = c("1","0"),labels = c("YouthBks","")) Abook$CookBks <- factor(...
\name{tool.cluster.static} \alias{tool.cluster.static} \title{ Static hierarchical clustering } \description{ \code{tool.cluster.static} takes dendrogram (clustering tree) and its cutting height; then, obtains cluster labels for the nodes of the tree. } \usage{ tool.cluster.static(dendro, hlim) } \argumen...
/man/tool.cluster.static.Rd
no_license
zeynebkurt/Mergeomics
R
false
false
1,280
rd
\name{tool.cluster.static} \alias{tool.cluster.static} \title{ Static hierarchical clustering } \description{ \code{tool.cluster.static} takes dendrogram (clustering tree) and its cutting height; then, obtains cluster labels for the nodes of the tree. } \usage{ tool.cluster.static(dendro, hlim) } \argumen...
\name{granovagg.1w} \alias{granovagg.1w} \title{Elemental Graphic Display for One-Way ANOVA} \usage{ granovagg.1w(data, group = NULL, h.rng = 1, v.rng = 1, jj = NULL, dg = 2, resid = FALSE, print.squares = TRUE, xlab = "default_x_label", ylab = "default_y_label", main = "default_granova_title", plot.t...
/man/granovagg.1w.Rd
no_license
benmarwick/granovaGG
R
false
false
7,781
rd
\name{granovagg.1w} \alias{granovagg.1w} \title{Elemental Graphic Display for One-Way ANOVA} \usage{ granovagg.1w(data, group = NULL, h.rng = 1, v.rng = 1, jj = NULL, dg = 2, resid = FALSE, print.squares = TRUE, xlab = "default_x_label", ylab = "default_y_label", main = "default_granova_title", plot.t...
i = 532 library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/") # ------------------------------------------------------------------------- # read in the list of the SNP to be excluded # ------------------------------------------------------------------------- setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/") files = li...
/data_preparation/R_batch3/_step2/step2_filter_asCounts.531.R
no_license
jasa-acs/Mapping-Tumor-Specific-Expression-QTLs-in-Impure-Tumor-Samples
R
false
false
809
r
i = 532 library(asSeq, lib="/nas02/home/w/e/weisun/R/Rlibs/") # ------------------------------------------------------------------------- # read in the list of the SNP to be excluded # ------------------------------------------------------------------------- setwd("/lustre/scr/w/e/weisun/TCGA/hetSNP_EA/") files = li...
#' Plot proportions by a continuous covariate #' #' \code{plot_continuous_var} creates a plot of how the mixture proportions #' change according to a continuous covariate, as well as plots of the mixture #' proportions for the individuals with minimum, median, and maximum covariate #' values. Called by \code{\link{outp...
/plot_continuous_var_combine.R
no_license
AndrewLJackson/ISOECOL-2018-code-snippets
R
false
false
11,355
r
#' Plot proportions by a continuous covariate #' #' \code{plot_continuous_var} creates a plot of how the mixture proportions #' change according to a continuous covariate, as well as plots of the mixture #' proportions for the individuals with minimum, median, and maximum covariate #' values. Called by \code{\link{outp...
# uncomment these two lines to really start from scratch #cat('\014') # clear console #rm(list=ls()) # remove saved objects library(magrittr) library(data.table) library(ggplot2) library(slam) library(skmeans) source("Importer.r") # Import ------------------------------------------------------------------ # check if ...
/Script.r
no_license
johannkoehler/dissertation
R
false
false
4,620
r
# uncomment these two lines to really start from scratch #cat('\014') # clear console #rm(list=ls()) # remove saved objects library(magrittr) library(data.table) library(ggplot2) library(slam) library(skmeans) source("Importer.r") # Import ------------------------------------------------------------------ # check if ...
test_that("it should create a regex match_rule", { rule <- match_regex("\\d", as.integer) expect_s3_class(rule, "match_rule") expect_s3_class(rule, "regex_rule") }) test_that("it should apply a regex_rule", { rule <- match_regex("^\\d+$", as.integer) result <- apply_rule(rule, "11") expect_s3_class(result...
/tests/testthat/test-transmute.R
permissive
ropensci/rb3
R
false
false
9,073
r
test_that("it should create a regex match_rule", { rule <- match_regex("\\d", as.integer) expect_s3_class(rule, "match_rule") expect_s3_class(rule, "regex_rule") }) test_that("it should apply a regex_rule", { rule <- match_regex("^\\d+$", as.integer) result <- apply_rule(rule, "11") expect_s3_class(result...
library(CytobankAPI) ### Name: attachments ### Title: Attachment Endpoints ### Aliases: attachments attachments.delete,UserSession-method ### attachments.delete attachments.download,UserSession-method ### attachments.download attachments.download_zip,UserSession-method ### attachments.download_zip attachments.l...
/data/genthat_extracted_code/CytobankAPI/examples/attachments.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,014
r
library(CytobankAPI) ### Name: attachments ### Title: Attachment Endpoints ### Aliases: attachments attachments.delete,UserSession-method ### attachments.delete attachments.download,UserSession-method ### attachments.download attachments.download_zip,UserSession-method ### attachments.download_zip attachments.l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/col_styles.R \name{HTable_col_width} \alias{HTable_col_width} \title{Add a width style to a column} \usage{ obj$col_width(col = NULL, width = NULL) } \arguments{ \item{col}{Numeric or character vector of which columns to target.} \item{width...
/man/HTable_col_width.Rd
no_license
fazetu/htable
R
false
true
520
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/col_styles.R \name{HTable_col_width} \alias{HTable_col_width} \title{Add a width style to a column} \usage{ obj$col_width(col = NULL, width = NULL) } \arguments{ \item{col}{Numeric or character vector of which columns to target.} \item{width...
# Exercise 1-Time series models in Stan ----------------------------------- # a) ------------------------------------------------------------------ set.seed(123456) require(rstan) require(RColorBrewer) pal<-brewer.pal(8,"Set2") # set prior values mu=10 Sigma2=2 phi_grid=seq(-1,1,by=0.05);phi_grid=round(phi_grid,2)...
/Lab4/Lab4_code.R
permissive
quartermaine/Bayesian-Learning
R
false
false
7,416
r
# Exercise 1-Time series models in Stan ----------------------------------- # a) ------------------------------------------------------------------ set.seed(123456) require(rstan) require(RColorBrewer) pal<-brewer.pal(8,"Set2") # set prior values mu=10 Sigma2=2 phi_grid=seq(-1,1,by=0.05);phi_grid=round(phi_grid,2)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/useExamples.R \name{listEx} \alias{listEx} \title{List Shiny application} \usage{ listEx() } \description{ List all shiny applications present in shinyModulesTuto/applications/ } \examples{ \dontrun{ listEx() } }
/man/listEx.Rd
no_license
ardata-fr/Shiny-Modules-Tutorials
R
false
true
291
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/useExamples.R \name{listEx} \alias{listEx} \title{List Shiny application} \usage{ listEx() } \description{ List all shiny applications present in shinyModulesTuto/applications/ } \examples{ \dontrun{ listEx() } }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getProb.R \name{getProb} \alias{getProb} \title{Get probability matrix of three status (LOY, normal, XYY)} \usage{ getProb(x) } \arguments{ \item{x}{an object of class 'LOY'} } \value{ a matrix of probabilities } \description{ Get probability...
/man/getProb.Rd
no_license
isglobal-brge/MADloy
R
false
true
365
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getProb.R \name{getProb} \alias{getProb} \title{Get probability matrix of three status (LOY, normal, XYY)} \usage{ getProb(x) } \arguments{ \item{x}{an object of class 'LOY'} } \value{ a matrix of probabilities } \description{ Get probability...
# sunagriAPI # # An instance of OpenSILEX WebService # # OpenAPI spec version: 3.3.0 # # Generated by: https://github.com/swagger-api/swagger-codegen.git #' TokenResponseStructure Class #' #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export TokenResponseStructure <- R6::R6Class( 'TokenR...
/R/TokenResponseStructure.r
no_license
OpenSILEX/phis-ws-client-r-tool
R
false
false
964
r
# sunagriAPI # # An instance of OpenSILEX WebService # # OpenAPI spec version: 3.3.0 # # Generated by: https://github.com/swagger-api/swagger-codegen.git #' TokenResponseStructure Class #' #' #' @importFrom R6 R6Class #' @importFrom jsonlite fromJSON toJSON #' @export TokenResponseStructure <- R6::R6Class( 'TokenR...
# Output format for entries entry_format_functions <- new.env(parent = emptyenv()) set_entry_formats <- function(entry_format) { entry_format_functions$format <- entry_format } new_entry_formats <- function(brief, detailed) { list(brief = brief, detailed = detailed) }
/R/00_entries.R
no_license
mitchelloharawild/vitae
R
false
false
275
r
# Output format for entries entry_format_functions <- new.env(parent = emptyenv()) set_entry_formats <- function(entry_format) { entry_format_functions$format <- entry_format } new_entry_formats <- function(brief, detailed) { list(brief = brief, detailed = detailed) }
context("Overlays") test_that("Add two overlays", { bpmn_file <- system.file("examples/qr-code.bpmn", package = "bpmn") overlays <- list( overlay( element = "SCAN_OK", html = "<div style='color: red'>Mixed up the labels?</div>" ), overlay( element = "sid-52EB1772-F36E-433E-8F5B-D5...
/tests/testthat/test_overlays.R
permissive
changsongyang/bpmn
R
false
false
513
r
context("Overlays") test_that("Add two overlays", { bpmn_file <- system.file("examples/qr-code.bpmn", package = "bpmn") overlays <- list( overlay( element = "SCAN_OK", html = "<div style='color: red'>Mixed up the labels?</div>" ), overlay( element = "sid-52EB1772-F36E-433E-8F5B-D5...
.initial <- function() { pos <- 1 envir <- as.environment(pos) assign(".GOSemSimEnv", new.env(), envir = envir) assign(".SemSimCache", new.env(), envir = envir) .GOSemSimEnv <- get(".GOSemSimEnv", envir=.GlobalEnv) tryCatch(utils::data(list="gotbl", package="GOSemS...
/GOSemSim-master/GOSemSim-master/R/utilities.R
no_license
zhaochuanxu/GoSemsim_Compare
R
false
false
2,631
r
.initial <- function() { pos <- 1 envir <- as.environment(pos) assign(".GOSemSimEnv", new.env(), envir = envir) assign(".SemSimCache", new.env(), envir = envir) .GOSemSimEnv <- get(".GOSemSimEnv", envir=.GlobalEnv) tryCatch(utils::data(list="gotbl", package="GOSemS...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bnb.R \name{brandAndBound} \alias{brandAndBound} \title{Confidence sets for Causal Discovery} \usage{ brandAndBound(Y, K = c(3), bs = 200, aggType = 1, alpha = 0.05, pValueAgg = "tippett", intercept = 1, verbose = T) } \arguments{ \item{Y}{...
/man/brandAndBound.Rd
no_license
ysamwang/cdcs
R
false
true
1,372
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bnb.R \name{brandAndBound} \alias{brandAndBound} \title{Confidence sets for Causal Discovery} \usage{ brandAndBound(Y, K = c(3), bs = 200, aggType = 1, alpha = 0.05, pValueAgg = "tippett", intercept = 1, verbose = T) } \arguments{ \item{Y}{...
#' Calculate the proportion isolated and quarantined #' #' Calculates the proportion isolated and quarantined from a #' Detected-Quarantine-Community vector #' #' @template dqc #' #' @return Numeric value. Proportion identified. #' @export get_prop_identified <- function(dqc) { dqc <- check_dqc(dqc) dqc[["Ds"]] + ...
/R/get_prop_identified.R
permissive
HopkinsIDD/tti
R
false
false
416
r
#' Calculate the proportion isolated and quarantined #' #' Calculates the proportion isolated and quarantined from a #' Detected-Quarantine-Community vector #' #' @template dqc #' #' @return Numeric value. Proportion identified. #' @export get_prop_identified <- function(dqc) { dqc <- check_dqc(dqc) dqc[["Ds"]] + ...
setwd("C:/Users/Jessica/Box/McCowan Lab/Projects_Funded/SSD/SSD_DataPreparation/AffiliationData/NetworkStabilityAnalysis/NetworkMetricFiles/Grooming/") files <- list.files() files data <- read.csv(files[1],header = T, stringsAsFactors = F) #data IDs <- as.data.frame(data$name) names(IDs) <- "name" FullData <- IDs ...
/R_Code/MergingDatasetsCode.R
no_license
JJVandeleest/ExampleCodeFiles
R
false
false
7,005
r
setwd("C:/Users/Jessica/Box/McCowan Lab/Projects_Funded/SSD/SSD_DataPreparation/AffiliationData/NetworkStabilityAnalysis/NetworkMetricFiles/Grooming/") files <- list.files() files data <- read.csv(files[1],header = T, stringsAsFactors = F) #data IDs <- as.data.frame(data$name) names(IDs) <- "name" FullData <- IDs ...
rm(list=ls(all=TRUE)) library(ggplot2) #ggplot2_3.3.3 #root path setwd('U:\\independent studies\\LIDAR Tanguro\\LidarLDA_MS') #get data dat=read.csv('edited data\\2014\\y1.csv',as.is=T) ind=which(colnames(dat)%in%c('X','Y')) coord=dat[,ind] #get theta order1=c(3,2,4,1) theta.m=read.csv('results 2014\\theta.m.csv',as...
/CHM/compare thetas.R
no_license
drvalle1/LidarLDA_MS
R
false
false
1,662
r
rm(list=ls(all=TRUE)) library(ggplot2) #ggplot2_3.3.3 #root path setwd('U:\\independent studies\\LIDAR Tanguro\\LidarLDA_MS') #get data dat=read.csv('edited data\\2014\\y1.csv',as.is=T) ind=which(colnames(dat)%in%c('X','Y')) coord=dat[,ind] #get theta order1=c(3,2,4,1) theta.m=read.csv('results 2014\\theta.m.csv',as...
v1 <- c(1.1, -7.1, 5.4, -2.7) v2 <- c(-3.6, 4.1, 5.8, -8.0) sort(v1) rev(v1) str(v1) v1_2 <- append(v1,v2) v1_2 mean(c(sum(round(abs(v1)))), sum(round(abs(v2))))
/code/study4.R
no_license
stephaneb20017/R-code
R
false
false
180
r
v1 <- c(1.1, -7.1, 5.4, -2.7) v2 <- c(-3.6, 4.1, 5.8, -8.0) sort(v1) rev(v1) str(v1) v1_2 <- append(v1,v2) v1_2 mean(c(sum(round(abs(v1)))), sum(round(abs(v2))))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ajouter_zonage.R \name{ajouter_zonage} \alias{ajouter_zonage} \title{Ajouter un zonage supra communal spécifique à une table cogifiée \ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#experimental}{\figure{lifecycle-experim...
/man/ajouter_zonage.Rd
no_license
jengelaere/COGiter
R
false
true
1,327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ajouter_zonage.R \name{ajouter_zonage} \alias{ajouter_zonage} \title{Ajouter un zonage supra communal spécifique à une table cogifiée \ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#experimental}{\figure{lifecycle-experim...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmfi-rev-rainbow.R \name{rmfi_rev_rainbow} \alias{rmfi_rev_rainbow} \title{Reversed rainbow color palette} \usage{ rmfi_rev_rainbow(...) } \description{ Reversed rainbow color palette } \keyword{internal}
/man/rmfi_rev_rainbow.Rd
no_license
CasillasMX/RMODFLOW
R
false
true
283
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rmfi-rev-rainbow.R \name{rmfi_rev_rainbow} \alias{rmfi_rev_rainbow} \title{Reversed rainbow color palette} \usage{ rmfi_rev_rainbow(...) } \description{ Reversed rainbow color palette } \keyword{internal}
print("reading NC national map rasters and merging them in test mode") lat_lon_projection <- CRS("+proj=longlat +datum=WGS84") # the basic geographic lat,lon projections destination_file <- "/Users/mschwall/Desktop/impervious/NC_DEM_test_reduced_resolution.tif" source_file_img <- c("/Users/mschwall/Desktop/impervious/...
/old_NC_DEM_scripts/NC_test_raster_merge_.R
no_license
mschwaller/R_code
R
false
false
2,168
r
print("reading NC national map rasters and merging them in test mode") lat_lon_projection <- CRS("+proj=longlat +datum=WGS84") # the basic geographic lat,lon projections destination_file <- "/Users/mschwall/Desktop/impervious/NC_DEM_test_reduced_resolution.tif" source_file_img <- c("/Users/mschwall/Desktop/impervious/...
compweexp <- function(inf) { n <- length(inf) weiexp <- matrix(1,nrow=n,ncol=n) for(i in 1:n) { for(j in (i+1):n) { if(j > n) break aux1 <- (inf[i]-inf[j]) %*% t(inf[i]-inf[j]) weiexp[i,j] <- exp(-0.5*aux1) weiexp[j,i] <- weiexp[i,j] } } return(weiexp) }
/R/compweexp.R
no_license
cran/vrtest
R
false
false
301
r
compweexp <- function(inf) { n <- length(inf) weiexp <- matrix(1,nrow=n,ncol=n) for(i in 1:n) { for(j in (i+1):n) { if(j > n) break aux1 <- (inf[i]-inf[j]) %*% t(inf[i]-inf[j]) weiexp[i,j] <- exp(-0.5*aux1) weiexp[j,i] <- weiexp[i,j] } } return(weiexp) }
# run app locally in default browser ### INSTALL PACKAGE DEPENDENCIES install.packages('shiny') install.packages('gplots') install.packages('ggplot2') install.packages('data.table') install.packages('Hmisc') install.packages('DT') install.packages('RMINC') ### RUN THE APP library(shiny) # Linux setwd('//micehome//...
/run_mice_automatic_report_tool.R
no_license
jeffbruce/MICeAutomaticReportTool
R
false
false
1,013
r
# run app locally in default browser ### INSTALL PACKAGE DEPENDENCIES install.packages('shiny') install.packages('gplots') install.packages('ggplot2') install.packages('data.table') install.packages('Hmisc') install.packages('DT') install.packages('RMINC') ### RUN THE APP library(shiny) # Linux setwd('//micehome//...
##---------------------# # Demografic Summary # #----------------------#
/CleanData/DemographicSummary.R
no_license
meumesmo/Evaluation
R
false
false
76
r
##---------------------# # Demografic Summary # #----------------------#
#' @importFrom pkgbuild pkgbuild_process #' @importFrom withr with_envvar build_package <- function(path, tmpdir, build_args, libpath, quiet) { path <- normalizePath(path) check_for_tilde_file(path) dir.create(tmpdir, recursive = TRUE, showWarnings = FALSE) tmpdir <- normalizePath(tmpdir) if (file.info(p...
/R/build.R
permissive
cstepper/rcmdcheck
R
false
false
1,874
r
#' @importFrom pkgbuild pkgbuild_process #' @importFrom withr with_envvar build_package <- function(path, tmpdir, build_args, libpath, quiet) { path <- normalizePath(path) check_for_tilde_file(path) dir.create(tmpdir, recursive = TRUE, showWarnings = FALSE) tmpdir <- normalizePath(tmpdir) if (file.info(p...
## ----env, echo = F, warning = F, message = F----------------------------- pacman::p_load(knitr, tidyverse, ggplot2, lubridate, tidyr, dplyr, data.table, caret, zoo, RMySQL) opts_chunk$set(fig.path = "output/figure/", fig.align = "center", out.width = "85%", warning = F, message = F) theme_set(theme_bw(base_family = "...
/predict/predict.R
no_license
ntels-BI/dems_analysis
R
false
false
4,571
r
## ----env, echo = F, warning = F, message = F----------------------------- pacman::p_load(knitr, tidyverse, ggplot2, lubridate, tidyr, dplyr, data.table, caret, zoo, RMySQL) opts_chunk$set(fig.path = "output/figure/", fig.align = "center", out.width = "85%", warning = F, message = F) theme_set(theme_bw(base_family = "...
# Description ------------------------------------------------------------- ## The cachematrix programming assignment was prepared in partial fulfilment of ## the requirements of the R Programming Course offered by Coursera. The purpose ## of the assignment was to demonstrate not only an understanding of how to ...
/cachematrix.R
no_license
yohance-nicholas/R-Programming
R
false
false
1,939
r
# Description ------------------------------------------------------------- ## The cachematrix programming assignment was prepared in partial fulfilment of ## the requirements of the R Programming Course offered by Coursera. The purpose ## of the assignment was to demonstrate not only an understanding of how to ...
\name{cjs.hessian} \alias{cjs.hessian} \title{Compute variance-covariance matrix for fitted CJS model} \usage{ cjs.hessian(model) } \arguments{ \item{model}{fitted CJS model from function crm} } \value{ variance-covariance matrix for specified model or the model object with the stored vcv depending on whether the mod...
/marked/man/cjs.hessian.Rd
no_license
eldarrak/marked
R
false
false
504
rd
\name{cjs.hessian} \alias{cjs.hessian} \title{Compute variance-covariance matrix for fitted CJS model} \usage{ cjs.hessian(model) } \arguments{ \item{model}{fitted CJS model from function crm} } \value{ variance-covariance matrix for specified model or the model object with the stored vcv depending on whether the mod...
# Q1 replicate(50, rt(10, 5), simplify = FALSE) mapply(rt, df = 1:50, n = 10) lapply(1:20, seq) set.seed(2020) X <- matrix(rexp(200), 20, 10) apply(X, 2, min) sapply(CO2, is.numeric) # Q2 setwd("~/desktop/MSc/Statistical Programming") # we use skip = 2 (include row names) to skip the first commented line # we spec...
/Statistical Programming/P3/Worksheet 3.R
no_license
anhnguyendepocen/Coursework-2
R
false
false
2,182
r
# Q1 replicate(50, rt(10, 5), simplify = FALSE) mapply(rt, df = 1:50, n = 10) lapply(1:20, seq) set.seed(2020) X <- matrix(rexp(200), 20, 10) apply(X, 2, min) sapply(CO2, is.numeric) # Q2 setwd("~/desktop/MSc/Statistical Programming") # we use skip = 2 (include row names) to skip the first commented line # we spec...
sigmoid <- function(x, high = 1, slope = 1, ec50 = 0, low = 0) { a <- high - low scaler <- slope* (x - log(ec50)) a/(1 + exp(scaler)) + low } #' @export plot_sigmoid #' @title plot_sigmoid #' @description plot sigmoidal dose response curves #' @param data_dose_cpd data frame with viability ~ pert_effective_do...
/cdsr-master/R/plotDoseCurve.R
no_license
ssj1739/MyToolkit
R
false
false
1,863
r
sigmoid <- function(x, high = 1, slope = 1, ec50 = 0, low = 0) { a <- high - low scaler <- slope* (x - log(ec50)) a/(1 + exp(scaler)) + low } #' @export plot_sigmoid #' @title plot_sigmoid #' @description plot sigmoidal dose response curves #' @param data_dose_cpd data frame with viability ~ pert_effective_do...
myfunction <-- function(x) { y <-- rnorm(100) mean(y) } DIR() dir( )
/myfunction.R
no_license
JasJaxon/Kaggle_Titanic_DataAnalysis_R
R
false
false
70
r
myfunction <-- function(x) { y <-- rnorm(100) mean(y) } DIR() dir( )
library(tidyverse) library(readr) x1 <- read_csv("https://raw.githubusercontent.com/TheUpshot/2018-live-poll-results/master/data/elections-poll-nj03-1.csv") x2 <- read_csv("https://raw.githubusercontent.com/TheUpshot/2018-live-poll-results/master/data/elections-poll-nj03-3.csv") x...
/notebook.R
no_license
henryzhu88/class-04-09-2019
R
false
false
689
r
library(tidyverse) library(readr) x1 <- read_csv("https://raw.githubusercontent.com/TheUpshot/2018-live-poll-results/master/data/elections-poll-nj03-1.csv") x2 <- read_csv("https://raw.githubusercontent.com/TheUpshot/2018-live-poll-results/master/data/elections-poll-nj03-3.csv") x...
#' Query the Google Analytics API for the specified dimensions, metrics and other query parameters #' #' This function will retrieve the data by firing the query to the Core Reporting API. It also displays #' status messages after the completion of the query. The user also has the option split the query into #' daywise...
/R/GetReportData.R
no_license
perkaer/RGoogleAnalytics
R
false
false
8,108
r
#' Query the Google Analytics API for the specified dimensions, metrics and other query parameters #' #' This function will retrieve the data by firing the query to the Core Reporting API. It also displays #' status messages after the completion of the query. The user also has the option split the query into #' daywise...
##This is the series of commands (function) used to generate plot3.png. ## I used the data.table package to manipulate and subset the original raw data. ##First, I setwd("~/Shanset the working directory where the extracted householdconsumption.txt is found. setwd("E:/R Practice/AAA DOST PCIEERD Data Science Track/No...
/plot3.R
no_license
shanebimeda/ExData_Plotting1
R
false
false
2,057
r
##This is the series of commands (function) used to generate plot3.png. ## I used the data.table package to manipulate and subset the original raw data. ##First, I setwd("~/Shanset the working directory where the extracted householdconsumption.txt is found. setwd("E:/R Practice/AAA DOST PCIEERD Data Science Track/No...
source('lib.R') sst <- as.matrix(read.table('data/kaplan-sst-wy-1925-2003-revised.txt')) sst <- t(matrix(sst[,3],nrow=length(unique(sst[,1])),byrow=T)) sst.lat <- as.matrix(read.table('data/kaplan-sst-wy-1925-2003-II.txt')) sst.lon <- sst.lat[,2]; sst.lat <- sst.lat[,1] sst.lon[sst.lon < 0] <- sst.lon[sst.lon < 0] + 3...
/data-analysis/3-fields/src/1.R
no_license
cameronbracken/classy
R
false
false
1,339
r
source('lib.R') sst <- as.matrix(read.table('data/kaplan-sst-wy-1925-2003-revised.txt')) sst <- t(matrix(sst[,3],nrow=length(unique(sst[,1])),byrow=T)) sst.lat <- as.matrix(read.table('data/kaplan-sst-wy-1925-2003-II.txt')) sst.lon <- sst.lat[,2]; sst.lat <- sst.lat[,1] sst.lon[sst.lon < 0] <- sst.lon[sst.lon < 0] + 3...
shinyPanelBubbleplot <- fluidPage( tags$div( class = "container", h1("Bubbleplot"), p("Generic bubbleplot plotting panel for customized figure.", style = "color:grey;"), panel( h3("Assay to Plot"), fluidRow( column(width = 4, selectizeInput( in...
/inst/shiny/ui_08_4_bubbleplot.R
permissive
compbiomed/singleCellTK
R
false
false
2,052
r
shinyPanelBubbleplot <- fluidPage( tags$div( class = "container", h1("Bubbleplot"), p("Generic bubbleplot plotting panel for customized figure.", style = "color:grey;"), panel( h3("Assay to Plot"), fluidRow( column(width = 4, selectizeInput( in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Extend0rnd1.R \name{Extend0rnd1} \alias{Extend0rnd1} \alias{Extend0rnd2} \alias{Extend0rnd1b} \title{varGroups-attribute to Extend0, Example functions} \usage{ Extend0rnd1(data, varGroups, k = 1, rndSeed = 123) Extend0rnd2(...) ...
/man/Extend0rnd1.Rd
no_license
cran/SSBtools
R
false
true
2,268
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Extend0rnd1.R \name{Extend0rnd1} \alias{Extend0rnd1} \alias{Extend0rnd2} \alias{Extend0rnd1b} \title{varGroups-attribute to Extend0, Example functions} \usage{ Extend0rnd1(data, varGroups, k = 1, rndSeed = 123) Extend0rnd2(...) ...
/Unir_CSV_template.R
no_license
SergioJNM/Wind
R
false
false
901
r
#---- # Run locally: # hvset=4axes50pts # Rscript $scriptsP/hv/hvs_niche_set.r hvs/$hvset -p mc # Run in on hpc: # cd ~/results/huj_eobs_test # sbatch ~/projects/rsf/config/hvs_niche_set_mpi.sh # TODO: # should pass in hvjob and and optional path to hv folder. should default to looking for hypervolumes in wd/...
/workflow/hvs_niche_set.r
no_license
benscarlson/IndGrinNiche
R
false
false
6,222
r
#---- # Run locally: # hvset=4axes50pts # Rscript $scriptsP/hv/hvs_niche_set.r hvs/$hvset -p mc # Run in on hpc: # cd ~/results/huj_eobs_test # sbatch ~/projects/rsf/config/hvs_niche_set_mpi.sh # TODO: # should pass in hvjob and and optional path to hv folder. should default to looking for hypervolumes in wd/...
gsi<-function(data){ group=names(table(colnames(data))) index=colnames(data) GSI<-c() gmaxgroup<-c() for(i in 1:nrow(data)){ gsit<-0 gmax<-names(which.max(tapply(as.numeric(data[i,]),index,function(x) mean(x,na.rm=T)))) if(length(gmax)<1){print(data[i,])} for(j in 1:length(...
/monod/Manuscript/MONOD_analysis_scripts/bak/Figure5-Publish-Biomarker.R
no_license
Shicheng-Guo/methylation2020
R
false
false
2,221
r
gsi<-function(data){ group=names(table(colnames(data))) index=colnames(data) GSI<-c() gmaxgroup<-c() for(i in 1:nrow(data)){ gsit<-0 gmax<-names(which.max(tapply(as.numeric(data[i,]),index,function(x) mean(x,na.rm=T)))) if(length(gmax)<1){print(data[i,])} for(j in 1:length(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xstatic-package.R \docType{package} \name{xstatic} \alias{xstatic-package} \title{xstatic: Builds Queries And Retrieves Data From DWP Stat-Xplore}
/man/xstatic.Rd
permissive
evanodell/xstatic
R
false
true
225
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/xstatic-package.R \docType{package} \name{xstatic} \alias{xstatic-package} \title{xstatic: Builds Queries And Retrieves Data From DWP Stat-Xplore}
#Question 1, part a: library(leaps) attach(swiss) swiss allreg <- regsubsets(Fertility ~., data=swiss, nbest=5) best <- as.data.frame(summary(allreg)$outmat) best$adjr2 <- summary(allreg)$adjr2 best$mse <- (summary(allreg)$rss)/(dim(data)[1]-best$p) best$cp <- summary(allreg)$cp best$bic <- summary(allreg)$b...
/Homework 3, problem 1, Emily Lien.R
no_license
EmilyLien/Coding-Samples
R
false
false
2,394
r
#Question 1, part a: library(leaps) attach(swiss) swiss allreg <- regsubsets(Fertility ~., data=swiss, nbest=5) best <- as.data.frame(summary(allreg)$outmat) best$adjr2 <- summary(allreg)$adjr2 best$mse <- (summary(allreg)$rss)/(dim(data)[1]-best$p) best$cp <- summary(allreg)$cp best$bic <- summary(allreg)$b...
## project description get_project_meta <- function(SS=TRUE, fixLineEndings=TRUE) { # must have RODBC installed if(!requireNamespace('RODBC')) stop('please install the `RODBC` package', call.=FALSE) q <- "SELECT projectiid, uprojectid, projectname, projectdesc FROM project_View_1 ; ...
/inst/reports/region2/QA-summary/custom.R
no_license
kant/soilReports
R
false
false
1,185
r
## project description get_project_meta <- function(SS=TRUE, fixLineEndings=TRUE) { # must have RODBC installed if(!requireNamespace('RODBC')) stop('please install the `RODBC` package', call.=FALSE) q <- "SELECT projectiid, uprojectid, projectname, projectdesc FROM project_View_1 ; ...
## Assignment: Getting and Cleaning Data Course Project## library(reshape2)##Load library reshape2 filename <- "dataset.zip" ## Download and unzip the dataset: if (!file.exists(filename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip " download.file(fi...
/run_analysis.R
no_license
jsan4christ/Getting-and-Cleaning-Data-Course-Project
R
false
false
2,287
r
## Assignment: Getting and Cleaning Data Course Project## library(reshape2)##Load library reshape2 filename <- "dataset.zip" ## Download and unzip the dataset: if (!file.exists(filename)){ fileURL <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip " download.file(fi...
#' Require a package for use in the project #' #' This functions will require the given package. If the package is not installed #' it will stop execution and print a message to the user instructing them which #' package to install and which function caused the error. #' #' The function \code{.require.package} is calle...
/ProjectTemplate/R/require.package.R
no_license
ingted/R-Examples
R
false
false
2,635
r
#' Require a package for use in the project #' #' This functions will require the given package. If the package is not installed #' it will stop execution and print a message to the user instructing them which #' package to install and which function caused the error. #' #' The function \code{.require.package} is calle...
# Current working directory orig_dir = getwd() # Change to folder with subject data setwd('..') # Move up one folder setwd('Subjects') # Extract file names allFiles = dir() # Loop over all files SubjNum = c() Gender = c() Race = c() for (i in 1:length(allFiles)) { fname = allFiles[i] tmp = strsplit( fname, '...
/Experiment_1/Past_analyses/Demographics_script.R
no_license
rettopnivek/Gabor-priming-experiments
R
false
false
1,014
r
# Current working directory orig_dir = getwd() # Change to folder with subject data setwd('..') # Move up one folder setwd('Subjects') # Extract file names allFiles = dir() # Loop over all files SubjNum = c() Gender = c() Race = c() for (i in 1:length(allFiles)) { fname = allFiles[i] tmp = strsplit( fname, '...
#https://www.r-bloggers.com/clustering-mixed-data-types-in-r/ set.seed(1680) # for reproducibility library(dplyr) # for data cleaning library(ISLR) # for college dataset library(cluster) # for gower similarity and pam library(Rtsne) # for t-SNE plot library(ggplot2) # for visualization # Remove college name before c...
/R - clustering scripts/gower2.R
no_license
pmanlukas/thesisdata
R
false
false
2,101
r
#https://www.r-bloggers.com/clustering-mixed-data-types-in-r/ set.seed(1680) # for reproducibility library(dplyr) # for data cleaning library(ISLR) # for college dataset library(cluster) # for gower similarity and pam library(Rtsne) # for t-SNE plot library(ggplot2) # for visualization # Remove college name before c...
#' Taxonomic filtering helpers #' #' @name filtering-helpers #' @param ... quoted rank names, taxonomic names, taxonomic ids, or #' any of those with supported operators (See \strong{Supported Relational #' Operators} below) #' #' @note NSE is not supported at the moment, but may be in the future #' #' @section How do ...
/R/old_taxa--lazyhelpers.R
permissive
grunwaldlab/metacoder
R
false
false
4,635
r
#' Taxonomic filtering helpers #' #' @name filtering-helpers #' @param ... quoted rank names, taxonomic names, taxonomic ids, or #' any of those with supported operators (See \strong{Supported Relational #' Operators} below) #' #' @note NSE is not supported at the moment, but may be in the future #' #' @section How do ...
/deal/R/genlatex.R
no_license
ingted/R-Examples
R
false
false
6,330
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 107 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 25 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 19 c c Performing E1-Autarky iteration. c Rema...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/trueque_ntrivil_1344/trueque_ntrivil_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
1,049
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 107 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 25 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 19 c c Performing E1-Autarky iteration. c Rema...
#InsectSprays Datset library(ggplot2) library(reshape2) library(plotly) library(MASS) library(caret) data("InsectSprays") head(InsectSprays) ls.str(InsectSprays) summary(InsectSprays) table(InsectSprays$spray) insect=InsectSprays #assign the data values to an object called 'insect' library(data.table) #load in the n...
/Knitr/InsectSprays_Datset.R
no_license
mirkhalegajanan/R_Programming
R
false
false
1,399
r
#InsectSprays Datset library(ggplot2) library(reshape2) library(plotly) library(MASS) library(caret) data("InsectSprays") head(InsectSprays) ls.str(InsectSprays) summary(InsectSprays) table(InsectSprays$spray) insect=InsectSprays #assign the data values to an object called 'insect' library(data.table) #load in the n...
context("testing bad remotes") test_that("bad remotes file", { path = system.file("bad_remotes_DESCRIPTION", package = "neuroc.deps") tfile = tempfile() testthat::expect_error(desc::description$new(path)) fixed = fix_desc_remotes(path, tfile) testthat::expect_silent(desc::description$new...
/tests/testthat/test-bad_remotes.R
no_license
muschellij2/neuroc.deps
R
false
false
331
r
context("testing bad remotes") test_that("bad remotes file", { path = system.file("bad_remotes_DESCRIPTION", package = "neuroc.deps") tfile = tempfile() testthat::expect_error(desc::description$new(path)) fixed = fix_desc_remotes(path, tfile) testthat::expect_silent(desc::description$new...
library(tidyverse) library(readr) #PCA IN R #Once again subset data for drug 1014 only screen.dat <- readRDS("C:/Users/yasha/Desktop/BDSI/Data Mining/screening.rds") meth.dat <- readRDS("C:/Users/yasha/Desktop/BDSI/Data Mining/methylation.rds") effective.1014 <- subset(screen.dat, DRUG_ID_lib == "1014")[,c("CL","CELL...
/Methylation/Methylation Data With PCA and PCR, Random Forest, kNN, and SVM.r
no_license
jshkrob/BDSI-Project
R
false
false
11,815
r
library(tidyverse) library(readr) #PCA IN R #Once again subset data for drug 1014 only screen.dat <- readRDS("C:/Users/yasha/Desktop/BDSI/Data Mining/screening.rds") meth.dat <- readRDS("C:/Users/yasha/Desktop/BDSI/Data Mining/methylation.rds") effective.1014 <- subset(screen.dat, DRUG_ID_lib == "1014")[,c("CL","CELL...
\name{poscar.extractatoms} \alias{poscar.extractatoms} \title{Extracts atoms of object of class poscar} \usage{ poscar.extractatoms(poscar, atomindices, vacuum = c(0, 0, 0), center = F) } \arguments{ \item{poscar}{object of class poscar} \item{atomindices}{indices of atoms which will be selected} \item{...
/Rvasp/man/poscar.extractatoms.Rd
permissive
gokhansurucu/Rvasp
R
false
false
637
rd
\name{poscar.extractatoms} \alias{poscar.extractatoms} \title{Extracts atoms of object of class poscar} \usage{ poscar.extractatoms(poscar, atomindices, vacuum = c(0, 0, 0), center = F) } \arguments{ \item{poscar}{object of class poscar} \item{atomindices}{indices of atoms which will be selected} \item{...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-pipe.R \name{\%>\%} \alias{\%>\%} \title{Pipe operator} \usage{ lhs \%>\% rhs } \value{ Result of \code{rhs(lhs, ...)}. } \description{ See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details. } \keyword{internal}
/man/pipe.Rd
permissive
JeffreyMolendijk/lipidr
R
false
true
303
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-pipe.R \name{\%>\%} \alias{\%>\%} \title{Pipe operator} \usage{ lhs \%>\% rhs } \value{ Result of \code{rhs(lhs, ...)}. } \description{ See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details. } \keyword{internal}
setwd("~/code/R/marginal_likelihood/probit_logit_chib") rm(list = ls()) #Read, select data df = read.csv("data.csv") y = df$y X = cbind(rep(1, length(y)), log(df$X.2), df$X.4) #Load old results, if existent num.reps = 100 if ("chib_model_7_results.RData" %in% list.files()){ load("chib_model_7_results.RData") } e...
/R/probit_logit_chib/chib_model_7.R
no_license
tkmckenzie/Iterative_ML
R
false
false
976
r
setwd("~/code/R/marginal_likelihood/probit_logit_chib") rm(list = ls()) #Read, select data df = read.csv("data.csv") y = df$y X = cbind(rep(1, length(y)), log(df$X.2), df$X.4) #Load old results, if existent num.reps = 100 if ("chib_model_7_results.RData" %in% list.files()){ load("chib_model_7_results.RData") } e...
\name{global_coordinates} \alias{global_coordinates} \title{ Local to global coordinates } \description{ Takes local coordinates, the numbers of rows/columns and the width/height of each part of the grid. From that the global coordinates are calculated. } \usage{ global_coordinates(x.local, y.local, row, col, a) } ...
/man/global_coordinates.Rd
no_license
oldiya/LandClimTools
R
false
false
560
rd
\name{global_coordinates} \alias{global_coordinates} \title{ Local to global coordinates } \description{ Takes local coordinates, the numbers of rows/columns and the width/height of each part of the grid. From that the global coordinates are calculated. } \usage{ global_coordinates(x.local, y.local, row, col, a) } ...
###################################################################### ### ### SÞJ, January 2015 ### SÞJ, July 2015, retrieved first half of 2015 ### SÞJ, Agust 2015, retrieved 1995+ for a larger area ### SÞJ, Agust 2017, retrieved just July for the whole period ### SÞJ, Agust 2018, retrieved just July 2018 from new lo...
/nco-scripts/01_ncoDataRetrieval.R
no_license
sigurdurthorjonsson/myoisst
R
false
false
1,987
r
###################################################################### ### ### SÞJ, January 2015 ### SÞJ, July 2015, retrieved first half of 2015 ### SÞJ, Agust 2015, retrieved 1995+ for a larger area ### SÞJ, Agust 2017, retrieved just July for the whole period ### SÞJ, Agust 2018, retrieved just July 2018 from new lo...
#import data, drop ? missing values data <- read.table("household_power_consumption.txt", na.strings="?", sep=";", header=TRUE, stringsAsFactors=FALSE) #converting to calendar date data$Date<- as.Date(data$Date, format="%d/%m/%Y") #subset only 2007-02-01, 2007-02-02 data data <- subset(data, Date>="2007-02-01"&Date<="2...
/plot2.R
no_license
JinYeKim/ExData_Plotting1
R
false
false
625
r
#import data, drop ? missing values data <- read.table("household_power_consumption.txt", na.strings="?", sep=";", header=TRUE, stringsAsFactors=FALSE) #converting to calendar date data$Date<- as.Date(data$Date, format="%d/%m/%Y") #subset only 2007-02-01, 2007-02-02 data data <- subset(data, Date>="2007-02-01"&Date<="2...
library(dplyr) library(lubridate) library(ggplot2) library(lattice) library(ggmap) library(leaps) #regsubsets library(reshape2) #melt library(GGally) #ggcorr and ggpairs library(car) # vif() and qqPlot functions library(randomForest) library(dichromat) library(leaflet) library(gridExtra) library(DT) lib...
/KC_EDA (2).R
no_license
SindhujaPulluri/Housing-Sales-Prediction
R
false
false
15,314
r
library(dplyr) library(lubridate) library(ggplot2) library(lattice) library(ggmap) library(leaps) #regsubsets library(reshape2) #melt library(GGally) #ggcorr and ggpairs library(car) # vif() and qqPlot functions library(randomForest) library(dichromat) library(leaflet) library(gridExtra) library(DT) lib...
library(tidyverse) library(sp) #Transforming latitude and longitude library("iNEXT") library(openxlsx) #library(readxl) library(parzer) #parse coordinates dir_ini <- getwd() ########################## #Data: Rachael_Winfree_Citrullus_lanatus_USA_2004 ########################## data_raw <- read.xlsx("Processing_file...
/Processing_files/Datasets_Processing/KLEIJN 2015 DATABASE/Rachael_Winfree_Citrullus_lanatus_USA_2004.R
permissive
ibartomeus/OBservData
R
false
false
11,026
r
library(tidyverse) library(sp) #Transforming latitude and longitude library("iNEXT") library(openxlsx) #library(readxl) library(parzer) #parse coordinates dir_ini <- getwd() ########################## #Data: Rachael_Winfree_Citrullus_lanatus_USA_2004 ########################## data_raw <- read.xlsx("Processing_file...
# Create long format data for plots ggdat.wide <- subset(dat.id, select=c(pid, vstat, obj, penul_hads:hads_change, t1:t3)) ggdat.long <- gather(ggdat.wide, hads, score, penul_hads:last_hads, factor_key = T) ggdat.long <- gather(ggdat.long, period, duration, t1:t3, factor_key = T) ggdat.long$HADScode <- revalue(ggdat...
/do_summs.R
no_license
chitrams/matching-project
R
false
false
3,558
r
# Create long format data for plots ggdat.wide <- subset(dat.id, select=c(pid, vstat, obj, penul_hads:hads_change, t1:t3)) ggdat.long <- gather(ggdat.wide, hads, score, penul_hads:last_hads, factor_key = T) ggdat.long <- gather(ggdat.long, period, duration, t1:t3, factor_key = T) ggdat.long$HADScode <- revalue(ggdat...
#' Operate on a selection of variables #' #' The variants suffixed with `_if`, `_at` or `_all` apply an #' expression (sometimes several) to all variables within a specified #' subset. This subset can contain all variables (`_all` variants), a #' [vars()] selection (`_at` variants), or variables selected with a #' pred...
/R/colwise.R
permissive
sinarueeger/dplyr
R
false
false
8,752
r
#' Operate on a selection of variables #' #' The variants suffixed with `_if`, `_at` or `_all` apply an #' expression (sometimes several) to all variables within a specified #' subset. This subset can contain all variables (`_all` variants), a #' [vars()] selection (`_at` variants), or variables selected with a #' pred...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/initOM_create_devs_list.R \name{match_parname} \alias{match_parname} \title{Match parameter name to parameter names in the par file} \usage{ match_parname(list_pars, parlist) } \arguments{ \item{list_pars}{the parameter names to find} \item{...
/man/match_parname.Rd
permissive
nmfs-fish-tools/SSMSE
R
false
true
589
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/initOM_create_devs_list.R \name{match_parname} \alias{match_parname} \title{Match parameter name to parameter names in the par file} \usage{ match_parname(list_pars, parlist) } \arguments{ \item{list_pars}{the parameter names to find} \item{...
\name{cov_importance_test} \alias{cov_importance_test} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Importance Test for Covariate(s) of Interest } \description{ This function tests the null hypothesis \eqn{H_0}: These covariates of interest do not affect the response under the assumptions of t...
/bartMachine/man/cov_importance_test.Rd
permissive
mdagost/bartMachine
R
false
false
3,717
rd
\name{cov_importance_test} \alias{cov_importance_test} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Importance Test for Covariate(s) of Interest } \description{ This function tests the null hypothesis \eqn{H_0}: These covariates of interest do not affect the response under the assumptions of t...
#!/usr/bin/env Rscript options(stringsAsFactors=FALSE) ################## # OPTION PARSING ################## suppressPackageStartupMessages(library("optparse")) option_list <- list( make_option(c("-i", "--input"), default="stdin", help="File or stdin [default=%default]"), make_option(c("-o", "--output"), defau...
/GO-Analysis-[Gene-Ontology]/barplot.GO.R
permissive
ahalfpen727/Bioconductor-Resources
R
false
false
4,077
r
#!/usr/bin/env Rscript options(stringsAsFactors=FALSE) ################## # OPTION PARSING ################## suppressPackageStartupMessages(library("optparse")) option_list <- list( make_option(c("-i", "--input"), default="stdin", help="File or stdin [default=%default]"), make_option(c("-o", "--output"), defau...
rm(list=ls()) dir <- "C:/Users/ilja/Desktop/Coursera/Explanatory/ass1" setwd(dir) list_files_1 <- list.files(dir,".txt") data.table <- read.table(paste(dir,list_files_1,sep="/"),sep=";",header = T) data.table$ts <- strptime(paste(data.table$Date,data.table$Time), "%d/%m/%Y %H:%M:%S") data.table$Date <- strptime(data....
/plot2.R
no_license
huschdie/expla
R
false
false
1,139
r
rm(list=ls()) dir <- "C:/Users/ilja/Desktop/Coursera/Explanatory/ass1" setwd(dir) list_files_1 <- list.files(dir,".txt") data.table <- read.table(paste(dir,list_files_1,sep="/"),sep=";",header = T) data.table$ts <- strptime(paste(data.table$Date,data.table$Time), "%d/%m/%Y %H:%M:%S") data.table$Date <- strptime(data....
#reads all json files from current dir and outputs a csv resuming file in .. #functions extractStationIds<- function(sts,latmin,latmax,lonmin,lonmax){ res = c() for(s in stations){ if(s$position$lat>latmin&&s$position$lat<latmax&&s$position$lng>lonmin&&s$position$lng<lonmax){ res = append(res,s$number) ...
/Models/DataCollection/csvImport.R
no_license
JusteRaimbault/CityBikes
R
false
false
1,183
r
#reads all json files from current dir and outputs a csv resuming file in .. #functions extractStationIds<- function(sts,latmin,latmax,lonmin,lonmax){ res = c() for(s in stations){ if(s$position$lat>latmin&&s$position$lat<latmax&&s$position$lng>lonmin&&s$position$lng<lonmax){ res = append(res,s$number) ...
testlist <- list(x = structure(c(6.01291443482532e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), .Dim = c(7L, 7L))) result <- do.call(borrowr:::matchesToCor,testlist) str(result)
/borrowr/inst/testfiles/matchesToCor/libFuzzer_matchesToCor/matchesToCor_valgrind_files/1609957816-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
285
r
testlist <- list(x = structure(c(6.01291443482532e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), .Dim = c(7L, 7L))) result <- do.call(borrowr:::matchesToCor,testlist) str(result)
library(lgcp) tfuncs <- function(n,f,s=10){ x = 1:s; y = x + 2 for(i in 1:n){ g = list(x=x,y=y,z=matrix(runif(s*s),s,s)) f(g,i) } return(f) } tstt <- function(n,s,seed=1){ set.seed(seed) testList = list(sumsumsq(),keepall(),exceed(c(0.1,0.2,0.3)),minmax()) for(t in testList){ cat("tes...
/tests/gridSummaryTest.R
no_license
bentaylor1/lgcp
R
false
false
402
r
library(lgcp) tfuncs <- function(n,f,s=10){ x = 1:s; y = x + 2 for(i in 1:n){ g = list(x=x,y=y,z=matrix(runif(s*s),s,s)) f(g,i) } return(f) } tstt <- function(n,s,seed=1){ set.seed(seed) testList = list(sumsumsq(),keepall(),exceed(c(0.1,0.2,0.3)),minmax()) for(t in testList){ cat("tes...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/community.R \name{modularity.igraph} \alias{mod.matrix} \alias{modularity} \alias{modularity.igraph} \alias{modularity_matrix} \title{Modularity of a community structure of a graph} \usage{ \method{modularity}{igraph}(x, membership, w...
/man/modularity.igraph.Rd
no_license
davidmaciel/rigraph
R
false
false
3,168
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/community.R \name{modularity.igraph} \alias{mod.matrix} \alias{modularity} \alias{modularity.igraph} \alias{modularity_matrix} \title{Modularity of a community structure of a graph} \usage{ \method{modularity}{igraph}(x, membership, w...
demo_table <- read.csv(file='demo.csv',check.names=F,stringsAsFactors = F) library(jsonlite) demo_table2 <- fromJSON(txt='demo.json')
/R_Analysis/01_Demo/R_script1.R
no_license
flowersmichael/MechaCar_Statistical_Analysis
R
false
false
134
r
demo_table <- read.csv(file='demo.csv',check.names=F,stringsAsFactors = F) library(jsonlite) demo_table2 <- fromJSON(txt='demo.json')
# P1 # An addition 5 + 5 # A subtraction 5 - 5 # A multiplication 3 * 5 # A division (5 + 5) / 2 # Exponentiation 2^5 # Modulo 28 %% 6 #P2 # Assign the value 42 to x x <- 42 # Print out the value of the variable x x #P3 Variable assignment (2) # Assign the value 5 to the variable my_apples my_apples <- 5 ...
/r_intro/intro.R
no_license
singhabhinav/R-introduction
R
false
false
3,440
r
# P1 # An addition 5 + 5 # A subtraction 5 - 5 # A multiplication 3 * 5 # A division (5 + 5) / 2 # Exponentiation 2^5 # Modulo 28 %% 6 #P2 # Assign the value 42 to x x <- 42 # Print out the value of the variable x x #P3 Variable assignment (2) # Assign the value 5 to the variable my_apples my_apples <- 5 ...
library(tidyverse) models_and_accu <- readRDS("./data/Uru_by_step_12345.rds") from_sarima <- readRDS(file = "./data/sarimax_objects_Uruguay.rds") rmse_yoy_sarimax <- from_sarima$compare_rmse_yoy rmse_level_sarimax <- from_sarima$compare_rmse rmse_yoy_sarimax$ave_rmse_h1h8 <- rowMeans(cbind(rmse_yoy_sarimax$yoy_rmse_1...
/R/var_vs_sarima_accu_uruguay.R
no_license
ricardomayerb/var_search
R
false
false
2,876
r
library(tidyverse) models_and_accu <- readRDS("./data/Uru_by_step_12345.rds") from_sarima <- readRDS(file = "./data/sarimax_objects_Uruguay.rds") rmse_yoy_sarimax <- from_sarima$compare_rmse_yoy rmse_level_sarimax <- from_sarima$compare_rmse rmse_yoy_sarimax$ave_rmse_h1h8 <- rowMeans(cbind(rmse_yoy_sarimax$yoy_rmse_1...
library(EloML) library(OpenML) library(ggplot2) library(dplyr) library(scales) data_path <- "./data/elo_results_6_models_400_params/" list_files <- list.files(data_path) dst_num <- gsub(pattern = '[^0-9]', replacement = '', x = list_files) ## get OpenML names dst <- sapply(dst_num, function(x) getOMLDataSet(as.numer...
/scripts/figure_3_epp_deviance.R
permissive
agosiewska/EPP-meta-score
R
false
false
3,576
r
library(EloML) library(OpenML) library(ggplot2) library(dplyr) library(scales) data_path <- "./data/elo_results_6_models_400_params/" list_files <- list.files(data_path) dst_num <- gsub(pattern = '[^0-9]', replacement = '', x = list_files) ## get OpenML names dst <- sapply(dst_num, function(x) getOMLDataSet(as.numer...