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
# define render parmeters outside the render function inputFile = "markdown/GP_report_render_function.Rmd" outputDir = "output" yyyy = 2019 mm = "07" selected_gp = "A81005" nameFile = "GP_report_render_function_E10.html" rmarkdown::render( input=inputFile, output_format = "html_document", output_dir = output...
/04_Rmarkdown_Generalizability/E10_renderRmarkdown_parameterized.R
no_license
rladiestunis/6th-Meetup-Parameterization-and-generalization-of-R-Markdown-documents
R
false
false
451
r
# define render parmeters outside the render function inputFile = "markdown/GP_report_render_function.Rmd" outputDir = "output" yyyy = 2019 mm = "07" selected_gp = "A81005" nameFile = "GP_report_render_function_E10.html" rmarkdown::render( input=inputFile, output_format = "html_document", output_dir = output...
#' @include item_class.R NULL #' Create a simulation data cache object #' #' \code{\link{makeSimulationDataCache}} is a function for creating a \code{\linkS4class{simulation_data_cache}} object. #' This is used in \code{\link{Shadow}} to make all necessary data (e.g., item information, response data) prior to the main...
/R/simulation_data_cache_operators.r
no_license
choi-phd/TestDesign
R
false
false
7,130
r
#' @include item_class.R NULL #' Create a simulation data cache object #' #' \code{\link{makeSimulationDataCache}} is a function for creating a \code{\linkS4class{simulation_data_cache}} object. #' This is used in \code{\link{Shadow}} to make all necessary data (e.g., item information, response data) prior to the main...
library(brinla) # Splines as a Linear Mixed Model library(INLA) data(age.income, package = 'SemiPar') str(age.income) library(brinla) X <- spline.mixed(age.income$age, degree = 2, type = 'TPB')$X Z <- spline.mixed(age.income$age, degree = 2, type = 'TPB')$Z age.income$ID <- 1:nrow(age.income) formula <- log.income ~ ...
/docs/scripts/misc.R
no_license
ssgantayat/brinla
R
false
false
7,357
r
library(brinla) # Splines as a Linear Mixed Model library(INLA) data(age.income, package = 'SemiPar') str(age.income) library(brinla) X <- spline.mixed(age.income$age, degree = 2, type = 'TPB')$X Z <- spline.mixed(age.income$age, degree = 2, type = 'TPB')$Z age.income$ID <- 1:nrow(age.income) formula <- log.income ~ ...
# R language script for illustrating HOF concepts in R curve(x*x,-3,3) myQuad1 = function(x) x*x + 2*x + 3 curve(myQuad1,-3,3) quadratic = function(a,b,c,x) a*x*x + b*x + c myQuad2 = function(x) quadratic(-1,2,3,x) curve(myQuad2,-3,3) quadFun = function(a,b,c) function(x) quadratic(a,b,c,x) myQuad3 = quadFun(1,2,3)...
/curry/currying.R
permissive
darrenjw/blog
R
false
false
350
r
# R language script for illustrating HOF concepts in R curve(x*x,-3,3) myQuad1 = function(x) x*x + 2*x + 3 curve(myQuad1,-3,3) quadratic = function(a,b,c,x) a*x*x + b*x + c myQuad2 = function(x) quadratic(-1,2,3,x) curve(myQuad2,-3,3) quadFun = function(a,b,c) function(x) quadratic(a,b,c,x) myQuad3 = quadFun(1,2,3)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/subgroups.R \name{subgroups} \alias{subgroups} \title{Function to perform subgroups (effect estimate) analysis} \usage{ subgroups( ep, factors_df = NULL, subgroups_df = NULL, factors_lab = names(factors_df), subgroups_lab = names(su...
/man/subgroups.Rd
no_license
lbraglia/lbstat
R
false
true
1,029
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/subgroups.R \name{subgroups} \alias{subgroups} \title{Function to perform subgroups (effect estimate) analysis} \usage{ subgroups( ep, factors_df = NULL, subgroups_df = NULL, factors_lab = names(factors_df), subgroups_lab = names(su...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test_covmat.R \name{test_covmat} \alias{test_covmat} \title{Test of high-dimensional covariance matrices with longitudinal data} \usage{ test_covmat(y, n, p, TT, alpha = 0.01) } \arguments{ \item{y}{A high-dimensional longitudinal data set in...
/man/test_covmat.Rd
no_license
franec94/HDCovMatTest
R
false
true
3,798
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test_covmat.R \name{test_covmat} \alias{test_covmat} \title{Test of high-dimensional covariance matrices with longitudinal data} \usage{ test_covmat(y, n, p, TT, alpha = 0.01) } \arguments{ \item{y}{A high-dimensional longitudinal data set in...
library(impute) allpatients <- data.frame("SubjectID"=unique(alsfrsfull$SubjectID)) allpatientsfeature <- merge(allpatients,fullfeature,all.x=TRUE) # find variables of which missing <30% and choose them missing<-vector() for( i in names(allpatientsfeature)){ missing[i]=sum(is.na(allpatientsfeature[[i]]))/len...
/Imputation.R
no_license
jkw801/ALSMaster
R
false
false
2,760
r
library(impute) allpatients <- data.frame("SubjectID"=unique(alsfrsfull$SubjectID)) allpatientsfeature <- merge(allpatients,fullfeature,all.x=TRUE) # find variables of which missing <30% and choose them missing<-vector() for( i in names(allpatientsfeature)){ missing[i]=sum(is.na(allpatientsfeature[[i]]))/len...
testlist <- list(x = c(9.34531699602693e-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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- d...
/diceR/inst/testfiles/connectivity_matrix/libFuzzer_connectivity_matrix/connectivity_matrix_valgrind_files/1609958745-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
376
r
testlist <- list(x = c(9.34531699602693e-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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)) result <- d...
setwd("PATH") library(MatchIt) library(Matching) library(gtools) library(ggplot2) library(survival) library(survminer) library(dplyr) cov_ps <- read.csv("symptom_hospi.csv") #=========crude data, cumulative hazard========= fit_df <- survfit(Surv(hopital_time, hospitalized) ~ gender,conf.int =0.95,data = cov_ps) #pval...
/code/KM_PS_analysis.R
no_license
sunnyyuan99/COVID-19Sex
R
false
false
4,679
r
setwd("PATH") library(MatchIt) library(Matching) library(gtools) library(ggplot2) library(survival) library(survminer) library(dplyr) cov_ps <- read.csv("symptom_hospi.csv") #=========crude data, cumulative hazard========= fit_df <- survfit(Surv(hopital_time, hospitalized) ~ gender,conf.int =0.95,data = cov_ps) #pval...
## Constructs the center of the scatterplot .AddXMLAddScatterCenter = function(root, sp=NULL) { annotation = .AddXMLAddAnnotation(root, position=4, id="center", kind="grouped") gs = sp$GroupSummaries len = length(gs$N) XML::addAttributes( annotation$root, speech="Scatter Plot", speech2=p...
/R/latest.R
no_license
EHCliffe/BrailleR
R
false
false
1,040
r
## Constructs the center of the scatterplot .AddXMLAddScatterCenter = function(root, sp=NULL) { annotation = .AddXMLAddAnnotation(root, position=4, id="center", kind="grouped") gs = sp$GroupSummaries len = length(gs$N) XML::addAttributes( annotation$root, speech="Scatter Plot", speech2=p...
library(dplyr) library(ggplot2) library(scales) # jp den ---- jp_den <- read.csv('plot/diff_den_jp.csv') p_jp_den <- ggplot(jp_den, aes(x = threshold)) + geom_line(aes(y = beta_denlow), col = 'blue', size = 0.5) + geom_ribbon(aes(ymin = beta_denlow - 1.96 * se_denlow, ymax = beta_denlow + 1...
/plot/plot_hetero.R
permissive
lunliu454/infect_place
R
false
false
12,284
r
library(dplyr) library(ggplot2) library(scales) # jp den ---- jp_den <- read.csv('plot/diff_den_jp.csv') p_jp_den <- ggplot(jp_den, aes(x = threshold)) + geom_line(aes(y = beta_denlow), col = 'blue', size = 0.5) + geom_ribbon(aes(ymin = beta_denlow - 1.96 * se_denlow, ymax = beta_denlow + 1...
library(ape) testtree <- read.tree("9760_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9760_0_unrooted.txt")
/codeml_files/newick_trees_processed/9760_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("9760_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="9760_0_unrooted.txt")
ciao <- 5 hello <- 4 hola <-8 vos <- 10
/git-r.R
permissive
catalinamasp/git-sandbox
R
false
false
42
r
ciao <- 5 hello <- 4 hola <-8 vos <- 10
library(shiny) shinyUI(fluidPage( fluidRow( h3("Pathway and Gene Search"), h6("Welcome! Please select a SUM cell line and a KEGG pathway to see a pathway diagram enriched by a Cellecta RNA...
/ui.R
no_license
kduchinski/SLKBase
R
false
false
1,297
r
library(shiny) shinyUI(fluidPage( fluidRow( h3("Pathway and Gene Search"), h6("Welcome! Please select a SUM cell line and a KEGG pathway to see a pathway diagram enriched by a Cellecta RNA...
#' Reports whether x is a 'corranalysis' object #' #' @author Marco Sandri, Paola Zuccolotto, Marica Manisera (\email{basketball.analyzer.help@gmail.com}) #' @param x an object to test. #' @seealso \code{\link{corranalysis}} #' @references P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications ...
/R/is.corranalysis.R
no_license
sndmrc/BasketballAnalyzeR
R
false
false
846
r
#' Reports whether x is a 'corranalysis' object #' #' @author Marco Sandri, Paola Zuccolotto, Marica Manisera (\email{basketball.analyzer.help@gmail.com}) #' @param x an object to test. #' @seealso \code{\link{corranalysis}} #' @references P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications ...
#' Create a list of datasets. #' #' @usage dataset(scientificname = NULL, taxonid = NULL, datasetid = NULL, #' nodeid = NULL, instituteid = NULL, areaid = NULL, startdate = NULL, #' enddate = NULL, startdepth = NULL, enddepth = NULL, geometry = NULL, #' redlist = NULL, hab = NULL, wrims = NULL, hasextensions = NU...
/R/dataset.R
permissive
iobis/robis
R
false
false
3,704
r
#' Create a list of datasets. #' #' @usage dataset(scientificname = NULL, taxonid = NULL, datasetid = NULL, #' nodeid = NULL, instituteid = NULL, areaid = NULL, startdate = NULL, #' enddate = NULL, startdepth = NULL, enddepth = NULL, geometry = NULL, #' redlist = NULL, hab = NULL, wrims = NULL, hasextensions = NU...
# This file is automatically generated, you probably don't want to edit this correlationOptions <- if (requireNamespace('jmvcore')) R6::R6Class( "correlationOptions", inherit = jmvcore::Options, public = list( initialize = function( vars = NULL, ...) { super$initialize( ...
/R/correlation.h.R
no_license
hyunsooseol/jmvtools
R
false
false
3,971
r
# This file is automatically generated, you probably don't want to edit this correlationOptions <- if (requireNamespace('jmvcore')) R6::R6Class( "correlationOptions", inherit = jmvcore::Options, public = list( initialize = function( vars = NULL, ...) { super$initialize( ...
#1 install.packages("pacman") #load package require(pacman) library(pacman) install.packages("tidyverse") install.packages("ggplot2") library("ggplot2") age <- c(13,15,16,16,19,20,20,21,22,22,25,25,25,25,30,33,33,35,35,35,35,36,40,45,46,52,70) length(age) summary(age) # Min. 1st Qu. Median Mean 3rd Qu. Max. ...
/data-mining-book/exercises2.R
no_license
computercamplove/Rstudy
R
false
false
1,521
r
#1 install.packages("pacman") #load package require(pacman) library(pacman) install.packages("tidyverse") install.packages("ggplot2") library("ggplot2") age <- c(13,15,16,16,19,20,20,21,22,22,25,25,25,25,30,33,33,35,35,35,35,36,40,45,46,52,70) length(age) summary(age) # Min. 1st Qu. Median Mean 3rd Qu. Max. ...
#'@title Variational merging #' #'@description Apply a function to the interpolated and satellite image (These image are raster, see \link[raster]{raster}). #'The function is based on many functions, these are applied in the following order: #' #'\link[VARMER]{img2varmer} Compare two raster or bricks with different z v...
/R/varmer.R
no_license
cran/VARMER
R
false
false
16,666
r
#'@title Variational merging #' #'@description Apply a function to the interpolated and satellite image (These image are raster, see \link[raster]{raster}). #'The function is based on many functions, these are applied in the following order: #' #'\link[VARMER]{img2varmer} Compare two raster or bricks with different z v...
x=function(){ a<-as.numeric(strsplit(readline("Enter elements for a:")," ")[[1]]) c1=as.numeric(readline("Enter initial centre 1:")) c2=as.numeric(readline("Enter initial centre 2:")) b=vector(mode="numeric",length=0) c=vector(mode="numeric",length=0) repeat{ j=1 k=1 oldc1=c1 oldc2=c2 for(i in 1:length(...
/kmeans-1D.r
no_license
riderpro/algorithms-python
R
false
false
767
r
x=function(){ a<-as.numeric(strsplit(readline("Enter elements for a:")," ")[[1]]) c1=as.numeric(readline("Enter initial centre 1:")) c2=as.numeric(readline("Enter initial centre 2:")) b=vector(mode="numeric",length=0) c=vector(mode="numeric",length=0) repeat{ j=1 k=1 oldc1=c1 oldc2=c2 for(i in 1:length(...
#' Human rights abuses in the Pinochet regime, 1973-1990 #' #' A dataset containing information about victims of the Pinochet regime #' in Chile (1973-1990). The data comes from the National Truth and Reconciliation #' Commission Report (1991, ISBN:9780268016463). We included georeferenced information about all inciden...
/R/pinochet.R
no_license
cran/pinochet
R
false
false
5,372
r
#' Human rights abuses in the Pinochet regime, 1973-1990 #' #' A dataset containing information about victims of the Pinochet regime #' in Chile (1973-1990). The data comes from the National Truth and Reconciliation #' Commission Report (1991, ISBN:9780268016463). We included georeferenced information about all inciden...
testlist <- list(a = 9.97942387989731e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
/BayesMRA/inst/testfiles/rmvn_arma_scalar/AFL_rmvn_arma_scalar/rmvn_arma_scalar_valgrind_files/1615926042-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
117
r
testlist <- list(a = 9.97942387989731e-316, b = 0) result <- do.call(BayesMRA::rmvn_arma_scalar,testlist) str(result)
library(MASS) library(pROC) library(ROCR) library(caret) library(rattle) ## Data set up # Set up work directory setwd("C:\\Users\\Kareem\\Documents\\Wayne State University\\Fall 2019\\DSA 6000\\Final Project\\R Code") # Uploading data default_data = read.csv(file="FINAL_DATA.CSV", header = T) # Removing ...
/R_final_karim.R
no_license
paulmathai01/Credit-Fraud-Analysis
R
false
false
5,330
r
library(MASS) library(pROC) library(ROCR) library(caret) library(rattle) ## Data set up # Set up work directory setwd("C:\\Users\\Kareem\\Documents\\Wayne State University\\Fall 2019\\DSA 6000\\Final Project\\R Code") # Uploading data default_data = read.csv(file="FINAL_DATA.CSV", header = T) # Removing ...
library(usethis) library(readxl) library(readr) library(dplyr) pfi_soilwgts <- readxl::read_excel("data-raw/pfi_soilwgts/raw_soil-wgts.xlsx") pfi_soilwgts %>% write_csv("data-raw/pfi_soilwgts/pfi_soilwgts.csv") usethis::use_data(pfi_soilwgts, overwrite = TRUE)
/data-raw/pfi_soilwgts/pfi_soilwgts.R
permissive
vanichols/PFIweeds2020
R
false
false
267
r
library(usethis) library(readxl) library(readr) library(dplyr) pfi_soilwgts <- readxl::read_excel("data-raw/pfi_soilwgts/raw_soil-wgts.xlsx") pfi_soilwgts %>% write_csv("data-raw/pfi_soilwgts/pfi_soilwgts.csv") usethis::use_data(pfi_soilwgts, overwrite = TRUE)
#' Convert Fidus files to Jekyll #' #' @param fiduszipfile A Zip-File containing a downloaded html-book from fidus #' @param tmpdir A string containing a tmp dir #' @return A list of markdown files ready for jekyll and github in the output dir. convert_fidus_to_github <- function(fiduszipfile = "handbuch.zip", tmpdi...
/R/convert.R
no_license
akademie-oeffentliches-gesundheitswesen/fidus2github
R
false
false
3,337
r
#' Convert Fidus files to Jekyll #' #' @param fiduszipfile A Zip-File containing a downloaded html-book from fidus #' @param tmpdir A string containing a tmp dir #' @return A list of markdown files ready for jekyll and github in the output dir. convert_fidus_to_github <- function(fiduszipfile = "handbuch.zip", tmpdi...
## Originally written by Zach Quinlan 12/17/2018 ## Editted and re-written by Zach Quinlan (1/30_2019) for CRUSADE manuscript ## This should be able to take the raw outputs from mothur and give a working df # LOADING -- libraries ---------------------------------------------------- # Libraries for cleaning library(Des...
/Code/CRUSADE_analysis.R
no_license
Zquinlan/Species_specific_differences_in_microbiomes
R
false
false
28,212
r
## Originally written by Zach Quinlan 12/17/2018 ## Editted and re-written by Zach Quinlan (1/30_2019) for CRUSADE manuscript ## This should be able to take the raw outputs from mothur and give a working df # LOADING -- libraries ---------------------------------------------------- # Libraries for cleaning library(Des...
sum <- 0 for(i in 5:15) { if(i%%2 == 0) { next; } if(i%%10 == 0) { break; } sum <- sum + i } print(sum)
/test.R
no_license
BMaMan/web_VScode
R
false
false
147
r
sum <- 0 for(i in 5:15) { if(i%%2 == 0) { next; } if(i%%10 == 0) { break; } sum <- sum + i } print(sum)
#' Gets the Numerai Password #' #' @return Your Numerai Password, if set #' @export #' @examples #' \dontrun{ #' get_password() #' } get_password <- function() { env <- Sys.getenv("NUMERAIPASS") if (!identical(env, "")) return(env) if (!interactive()) { stop("Please set the environment variable NUMERAIPASS t...
/R/source.R
no_license
Shulgin-S/Rnumerai
R
false
false
31,761
r
#' Gets the Numerai Password #' #' @return Your Numerai Password, if set #' @export #' @examples #' \dontrun{ #' get_password() #' } get_password <- function() { env <- Sys.getenv("NUMERAIPASS") if (!identical(env, "")) return(env) if (!interactive()) { stop("Please set the environment variable NUMERAIPASS t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tools.R \name{match_part} \alias{match_part} \alias{match_replace} \title{Partial string matching and replacing} \usage{ match_part(x, table) match_replace(x, replace, no_match = NA_character_) } \arguments{ \item{x}{Vector. Values to be mat...
/man/match_part.Rd
permissive
tjebo/tjebtools
R
false
true
1,352
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tools.R \name{match_part} \alias{match_part} \alias{match_replace} \title{Partial string matching and replacing} \usage{ match_part(x, table) match_replace(x, replace, no_match = NA_character_) } \arguments{ \item{x}{Vector. Values to be mat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Varstar.R \docType{data} \name{Varstar} \alias{Varstar} \title{Brightness of a variable star} \format{A dataframe with eleven columns : \code{V1-V11} \describe{ \item{V1}{day index} \item{V2}{brightness} \item{V3-V11}{Paul Eilers, personal co...
/man/Varstar.Rd
permissive
HolaTeo/additive-splines
R
false
true
477
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Varstar.R \docType{data} \name{Varstar} \alias{Varstar} \title{Brightness of a variable star} \format{A dataframe with eleven columns : \code{V1-V11} \describe{ \item{V1}{day index} \item{V2}{brightness} \item{V3-V11}{Paul Eilers, personal co...
########################################################################### # Copyright 2008-2012 Janssen Research & Development, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
/web-app/Rscripts/MarkerSelection/.svn/text-base/BuildMSData.R.svn-base
permissive
thehyve/naa-Rmodules
R
false
false
2,703
########################################################################### # Copyright 2008-2012 Janssen Research & Development, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
if(!require(checkpoint)){ install.packages("checkpoint") library(checkpoint) } checkpoint("2016-01-13") if(!(require(readr) & require(ggplot2) & require(tidyr) & require(plyr) & require(dplyr) & require(rstan) & require(rstudioapi) & require(codetools) & require(readxl))){ install.packages(c("rstan", "ggplot2", "...
/RunModel_MultiPlate_4p.R
no_license
kehan777/Logistic_ELISA_std
R
false
false
7,791
r
if(!require(checkpoint)){ install.packages("checkpoint") library(checkpoint) } checkpoint("2016-01-13") if(!(require(readr) & require(ggplot2) & require(tidyr) & require(plyr) & require(dplyr) & require(rstan) & require(rstudioapi) & require(codetools) & require(readxl))){ install.packages(c("rstan", "ggplot2", "...
################# # file handling # ################# # open the connection to the .mat file file.h5 <- H5File$new(myFile, mode = "r") # save a new variable that contains the image data # this step can be avoided, and might improve performance on very large datasets imageDataSlice<-file.h5[["imagedata"]] file.h5$close...
/scripts_utility/parseImageForGreenFlashAndLSMandStimLogs.R
no_license
aostrov/LSMCodeR
R
false
false
1,967
r
################# # file handling # ################# # open the connection to the .mat file file.h5 <- H5File$new(myFile, mode = "r") # save a new variable that contains the image data # this step can be avoided, and might improve performance on very large datasets imageDataSlice<-file.h5[["imagedata"]] file.h5$close...
{ library(tidyverse) library(ggmap) library(lubridate) library(RColorBrewer) library(randomcoloR) library(jpeg) library(grid) library(ggrepel) } tuesdata <- tidytuesdayR::tt_load('2020-08-25') chopped <- tuesdata$chopped #Feature engineering air_date column { chopped$air_date<-mdy(chopped$air_date) cho...
/Chopped_TV_Show/Chopped.R
no_license
hariprasath-v/TidyTuesday
R
false
false
7,648
r
{ library(tidyverse) library(ggmap) library(lubridate) library(RColorBrewer) library(randomcoloR) library(jpeg) library(grid) library(ggrepel) } tuesdata <- tidytuesdayR::tt_load('2020-08-25') chopped <- tuesdata$chopped #Feature engineering air_date column { chopped$air_date<-mdy(chopped$air_date) cho...
forecast_pkg_fc<- function(x, fc_func, freq, h) { x %>% ts(frequency = freq) %>% fc_func(h = h) %>% magrittr::extract2("mean") } arima_fc_func <- function(x, h) auto.arima(x) %>% forecast(h = h) ets_fc_func <- function(x, h) ets(x) %>% forecast(h = h) arima_fc <- function(x, freq, h) { fc <- forecast_pkg_fc(x, a...
/fc_methods.R
no_license
cbojer/low-rank-feature
R
false
false
838
r
forecast_pkg_fc<- function(x, fc_func, freq, h) { x %>% ts(frequency = freq) %>% fc_func(h = h) %>% magrittr::extract2("mean") } arima_fc_func <- function(x, h) auto.arima(x) %>% forecast(h = h) ets_fc_func <- function(x, h) ets(x) %>% forecast(h = h) arima_fc <- function(x, freq, h) { fc <- forecast_pkg_fc(x, a...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % HttpDaemon.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{HttpDaemon$getRootPaths...
/man/getRootPaths.HttpDaemon.Rd
no_license
HenrikBengtsson/R.rsp
R
false
false
1,170
rd
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Do not modify this file since it was automatically generated from: % % HttpDaemon.R % % by the Rdoc compiler part of the R.oo package. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \name{HttpDaemon$getRootPaths...
##' *create binomial distribution from data* numbers <- rbinom(50, 50, 0.5) numbers ##' *define binomial distribution function* binomial_dist <- function(n,p,x) { temp_C <- (factorial(n) / (factorial(x) * factorial(n-x)))*(p^x)*((1-p)^(n-x)) return(temp_C) } ##' * find binomial densities* binom_df<-NULL for (i in...
/beta_prior.R
no_license
hincaltopcuoglu/hincaltopcuoglu.github.io
R
false
false
1,540
r
##' *create binomial distribution from data* numbers <- rbinom(50, 50, 0.5) numbers ##' *define binomial distribution function* binomial_dist <- function(n,p,x) { temp_C <- (factorial(n) / (factorial(x) * factorial(n-x)))*(p^x)*((1-p)^(n-x)) return(temp_C) } ##' * find binomial densities* binom_df<-NULL for (i in...
#' The pc algorithm applied to residuals #' #' The pc algorithm applied to residuals, assuming there are replicates, #' and K = Z Z^t. #' #' Here we #' put a lot #' of details #' COMMENT #' #' @inheritParams pcgen #' #' @param m.max maximum size of the conditioning set, in the pc-algorithm on the residuals ...
/R/pcRes.R
no_license
cran/pcgen
R
false
false
2,748
r
#' The pc algorithm applied to residuals #' #' The pc algorithm applied to residuals, assuming there are replicates, #' and K = Z Z^t. #' #' Here we #' put a lot #' of details #' COMMENT #' #' @inheritParams pcgen #' #' @param m.max maximum size of the conditioning set, in the pc-algorithm on the residuals ...
############################################################################################## ########################## GLSZM ############################################################ ############################################################################################ #' @export glszmTexturalFeatures <- fu...
/R/05_GLSZMtexturalFeatures.R
no_license
robertogattabs/MV2
R
false
false
5,850
r
############################################################################################## ########################## GLSZM ############################################################ ############################################################################################ #' @export glszmTexturalFeatures <- fu...
# NOV_PILOT ACCURACY FILE CLEANING # Violet Kozloff # March 11, 2018 # This script cleans the auditory and visual files from the November pilot for accuracy analysis # NOTE: Does not include participant 9, who did not respond in several types # NOTE: Original psychopy files have been renamed to have a letter as a...
/accuracy/nov_pilot/scripts/data_cleaning.R
no_license
vkozloff/fmri-pilot-beh-analysis
R
false
false
5,299
r
# NOV_PILOT ACCURACY FILE CLEANING # Violet Kozloff # March 11, 2018 # This script cleans the auditory and visual files from the November pilot for accuracy analysis # NOTE: Does not include participant 9, who did not respond in several types # NOTE: Original psychopy files have been renamed to have a letter as a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/group_labels.R \name{pos_neg.label} \alias{pos_neg.label} \title{Label a group of cells positive or negative for a single gene} \usage{ pos_neg.label(df, rowname, x = 100, x.limit = 0, posname = "pos", negname = "neg") } \arguments{ \item{d...
/man/pos_neg.label.Rd
no_license
adamclemmitt/simpleSCDE
R
false
true
1,285
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/group_labels.R \name{pos_neg.label} \alias{pos_neg.label} \title{Label a group of cells positive or negative for a single gene} \usage{ pos_neg.label(df, rowname, x = 100, x.limit = 0, posname = "pos", negname = "neg") } \arguments{ \item{d...
library(RODBC) # Open the connection to PMS1 PMScxn <- odbcConnect("PMS_PROD") # Query failure RMAs queryText <- readLines("SQL/MODEL_FailureRMAs.sql"); query <- paste(queryText,collapse="\n") FailureRMAs <- sqlQuery(PMScxn,query) # Close the connection to PMS1 odbcClose(PMScxn) # Load predictions, models, and metr...
/Portfolios/MODEL_load.R
no_license
BioAimie/AnalyticsWebHub
R
false
false
1,815
r
library(RODBC) # Open the connection to PMS1 PMScxn <- odbcConnect("PMS_PROD") # Query failure RMAs queryText <- readLines("SQL/MODEL_FailureRMAs.sql"); query <- paste(queryText,collapse="\n") FailureRMAs <- sqlQuery(PMScxn,query) # Close the connection to PMS1 odbcClose(PMScxn) # Load predictions, models, and metr...
#' Onion soil requirement for land evaluation #' #' A dataset containing the soil characteristics of the crop requirements for farming Onion. #' #' @details #' The following are the factors for evaluation: #' #' \itemize{ #' \item CFragm - Coarse fragment (Vol.\%) #' \item SoilDpt - Soil dep...
/R/ONIONSoil.R
permissive
alstat/ALUES
R
false
false
989
r
#' Onion soil requirement for land evaluation #' #' A dataset containing the soil characteristics of the crop requirements for farming Onion. #' #' @details #' The following are the factors for evaluation: #' #' \itemize{ #' \item CFragm - Coarse fragment (Vol.\%) #' \item SoilDpt - Soil dep...
# Coursera - Exploratory Data Analysis - Course Project #1 - Plot 4 ## Pre-requisites: Text data file must be downloaded and unzipped in the working directory. ## Read the data in power_consumption_data <- read.table(file="./household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") ## Prep the data (i.e...
/plot4.R
no_license
MartinCote1978/ExData_Plotting1
R
false
false
4,447
r
# Coursera - Exploratory Data Analysis - Course Project #1 - Plot 4 ## Pre-requisites: Text data file must be downloaded and unzipped in the working directory. ## Read the data in power_consumption_data <- read.table(file="./household_power_consumption.txt", header=TRUE, sep=";", na.strings="?") ## Prep the data (i.e...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{fail} \alias{fail} \title{A default expectation that always fails.} \usage{ fail(message = "Failure has been forced.") } \arguments{ \item{message}{a string to display.} } \description{ The fail function forces a test to fail. This is useful if you want to t...
/man/fail.Rd
no_license
juancentro/testthat
R
false
false
407
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{fail} \alias{fail} \title{A default expectation that always fails.} \usage{ fail(message = "Failure has been forced.") } \arguments{ \item{message}{a string to display.} } \description{ The fail function forces a test to fail. This is useful if you want to t...
## Following two functions are responsible for inversing provided matric and ## caching the result ## The following function return a list of function for: ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the value of the inverse ## 4. get the value of the inverse makeCacheMatrix <- ...
/cachematrix.R
no_license
akasprzak/ProgrammingAssignment2
R
false
false
1,018
r
## Following two functions are responsible for inversing provided matric and ## caching the result ## The following function return a list of function for: ## 1. set the value of the matrix ## 2. get the value of the matrix ## 3. set the value of the inverse ## 4. get the value of the inverse makeCacheMatrix <- ...
\name{M1} \alias{M1} \docType{data} \title{ %% ~~ data name/kind ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of the dataset. ~~ } \usage{data(M1)} \format{ The format is: table [1:4, 1:4] 0.5052 0.2149 0.0617 0.2576 0.2268 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:4] "N" "E" "S" "W" ...
/301/package/mRkov/man/M1.Rd
no_license
doerodney/UW-R-Cert
R
false
false
660
rd
\name{M1} \alias{M1} \docType{data} \title{ %% ~~ data name/kind ... ~~ } \description{ %% ~~ A concise (1-5 lines) description of the dataset. ~~ } \usage{data(M1)} \format{ The format is: table [1:4, 1:4] 0.5052 0.2149 0.0617 0.2576 0.2268 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:4] "N" "E" "S" "W" ...
# Convert to JSON ------------------------------------------------------------- data_toJSON <- function(appKey, pivot = F) { dir <- sprintf("../mepstrends/%s", appKey) tbl_dir <- sprintf("../formatted_tables/%s", appKey) # delete data folder and create new one unlink(sprintf('%s/json/data', dir), recur...
/r/functions_toJSON.R
permissive
e-mitchell/SHS_master
R
false
false
7,546
r
# Convert to JSON ------------------------------------------------------------- data_toJSON <- function(appKey, pivot = F) { dir <- sprintf("../mepstrends/%s", appKey) tbl_dir <- sprintf("../formatted_tables/%s", appKey) # delete data folder and create new one unlink(sprintf('%s/json/data', dir), recur...
\name{bagging} \alias{bagging} \title{Ensemble bagging classifier for multinomial classification} \description{ Makes multiple predictions on test set using resampled variations of data set. Uses randomForest as the weak classifier and expects a multinomial character outcome variable. Returns a final test set predi...
/man/bagging.Rd
no_license
cran/bagRboostR
R
false
false
1,954
rd
\name{bagging} \alias{bagging} \title{Ensemble bagging classifier for multinomial classification} \description{ Makes multiple predictions on test set using resampled variations of data set. Uses randomForest as the weak classifier and expects a multinomial character outcome variable. Returns a final test set predi...
#Cleaning the dates of the White House visitor logs z = strptime(visits$APPT_START_DATE,format="%m/%d/%Y %H:%M") class(z) head(visits$APPT_START_DATE) visits$APPT_START_DATE[z$year < 0] gsub("/13 ","/2013 ",visits$APPT_START_DATE) visits$CAPPT_START_DATE = gsub("/13 ","/2013 ",visits$APPT_START_DATE) z = strptime(vis...
/white_house_cleaning.R
no_license
csgallego/white_house_logs
R
false
false
873
r
#Cleaning the dates of the White House visitor logs z = strptime(visits$APPT_START_DATE,format="%m/%d/%Y %H:%M") class(z) head(visits$APPT_START_DATE) visits$APPT_START_DATE[z$year < 0] gsub("/13 ","/2013 ",visits$APPT_START_DATE) visits$CAPPT_START_DATE = gsub("/13 ","/2013 ",visits$APPT_START_DATE) z = strptime(vis...
.onAttach <- function(libname, pkgname) { packageStartupMessage(paste0("\nWelcome to ", utils::packageDescription(pkgname)$Package, "\nVersion: " , utils::packageDescription(pkgname)$Version, "\nReleased: " , utils::packageDescription(pkgname)$Date, ...
/R/zzz.R
no_license
wolfhuette/DoOR.functions
R
false
false
393
r
.onAttach <- function(libname, pkgname) { packageStartupMessage(paste0("\nWelcome to ", utils::packageDescription(pkgname)$Package, "\nVersion: " , utils::packageDescription(pkgname)$Version, "\nReleased: " , utils::packageDescription(pkgname)$Date, ...
#' @title Kakfa Consumer #' @name KafkaConsumer #' @description TDB #' @importFrom R6 R6Class KafkaConsumer <- R6::R6Class( classname = "KafkaConsumer" , public = list( initialize = function(brokers , groupId , extraOptions = list()) { ...
/fRanz/R/KafkaConsumer.R
permissive
jameslamb/fRanz
R
false
false
1,378
r
#' @title Kakfa Consumer #' @name KafkaConsumer #' @description TDB #' @importFrom R6 R6Class KafkaConsumer <- R6::R6Class( classname = "KafkaConsumer" , public = list( initialize = function(brokers , groupId , extraOptions = list()) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getFollows.R \name{getFollows} \alias{getFollows} \title{Get the list of users a user follows.} \usage{ getFollows(username, token, userid = NULL, verbose = TRUE) } \arguments{ \item{username}{String, screen name of user.} \item{token}{An OA...
/instaR/man/getFollows.Rd
no_license
Barun-Sharma/instaR
R
false
true
1,188
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getFollows.R \name{getFollows} \alias{getFollows} \title{Get the list of users a user follows.} \usage{ getFollows(username, token, userid = NULL, verbose = TRUE) } \arguments{ \item{username}{String, screen name of user.} \item{token}{An OA...
### Andrew Acomb, Philip Brenninkmeyer PredictIt Model ## DATA TIDYING ## Loading Packages library(tidyverse) library(lubridate) library(plyr) ## Loading Data rdt <- read_csv("Data/raw_data/rdt.csv") speeches <- read_delim("Data/raw_data/trump_speeches.csv", delim = "~") reddit <- read_delim("Data/raw_data/reddit_tr...
/RDT_data_tidying.R
no_license
AndrewAcomb/rdt_model
R
false
false
3,470
r
### Andrew Acomb, Philip Brenninkmeyer PredictIt Model ## DATA TIDYING ## Loading Packages library(tidyverse) library(lubridate) library(plyr) ## Loading Data rdt <- read_csv("Data/raw_data/rdt.csv") speeches <- read_delim("Data/raw_data/trump_speeches.csv", delim = "~") reddit <- read_delim("Data/raw_data/reddit_tr...
skip_on_livy() skip_on_arrow_devel() test_requires("dplyr", "ggplot2") sc <- testthat_spark_connection() diamonds_tbl <- testthat_tbl("diamonds") test_that("we can construct a simple pivot table", { s <- diamonds_tbl %>% sdf_pivot(cut ~ color) %>% arrange(cut) %>% collect() %>% as.list() r <- di...
/tests/testthat/test-pivot.R
permissive
yitao-li/sparklyr
R
false
false
1,674
r
skip_on_livy() skip_on_arrow_devel() test_requires("dplyr", "ggplot2") sc <- testthat_spark_connection() diamonds_tbl <- testthat_tbl("diamonds") test_that("we can construct a simple pivot table", { s <- diamonds_tbl %>% sdf_pivot(cut ~ color) %>% arrange(cut) %>% collect() %>% as.list() r <- di...
start = Sys.time() # limit = 20161 limit = 28123 abdnumlist <- (1:limit)[sapply(1:limit, function(n) sum((1:n)[n %% (1:n) == 0]) - n) > 1:limit] sumofadb <- function(n){ low = 1 high = length(abdnumlist) sum = abdnumlist[low] + abdnumlist[high] while(low < high && sum != n){ if(sum > n){ high <- hig...
/Problem23.R
no_license
nozma/ProjectEuler
R
false
false
1,300
r
start = Sys.time() # limit = 20161 limit = 28123 abdnumlist <- (1:limit)[sapply(1:limit, function(n) sum((1:n)[n %% (1:n) == 0]) - n) > 1:limit] sumofadb <- function(n){ low = 1 high = length(abdnumlist) sum = abdnumlist[low] + abdnumlist[high] while(low < high && sum != n){ if(sum > n){ high <- hig...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/amp_correlation.R \name{amp_correlation} \alias{amp_correlation} \title{Generates correlation networks from amplicon data.} \usage{ amp_correlation(data) } \arguments{ \item{data}{(required) A phyloseq object including sample data.} ...
/man/amp_correlation.Rd
no_license
mdehollander/ampvis
R
false
false
1,938
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/amp_correlation.R \name{amp_correlation} \alias{amp_correlation} \title{Generates correlation networks from amplicon data.} \usage{ amp_correlation(data) } \arguments{ \item{data}{(required) A phyloseq object including sample data.} ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Horowitz93.R \docType{data} \name{Horowitz93} \alias{Horowitz93} \title{Horowitz (1993) Modal Choice Data} \format{ A data frame with 842 observations on 5 variables: } \source{ \url{https://www.gams.com/latest/gamslib_ml/libhtml/gamslib_mws....
/man/Horowitz93.Rd
no_license
cran/RCBR
R
false
true
896
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Horowitz93.R \docType{data} \name{Horowitz93} \alias{Horowitz93} \title{Horowitz (1993) Modal Choice Data} \format{ A data frame with 842 observations on 5 variables: } \source{ \url{https://www.gams.com/latest/gamslib_ml/libhtml/gamslib_mws....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test_serial.R \name{pdwtest} \alias{pdwtest} \alias{pdwtest.panelmodel} \alias{pdwtest.formula} \title{Durbin--Watson Test for Panel Models} \usage{ pdwtest(x, ...) \method{pdwtest}{panelmodel}(x, ...) \method{pdwtest}{formula}(...
/man/pdwtest.Rd
no_license
cran/plm
R
false
true
2,629
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/test_serial.R \name{pdwtest} \alias{pdwtest} \alias{pdwtest.panelmodel} \alias{pdwtest.formula} \title{Durbin--Watson Test for Panel Models} \usage{ pdwtest(x, ...) \method{pdwtest}{panelmodel}(x, ...) \method{pdwtest}{formula}(...
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application shinyUI(fluidPage( # Application title t...
/capstone/ui.R
no_license
fengliplatform/datasciencecoursera
R
false
false
1,115
r
# # This is the user-interface definition of a Shiny web application. You can # run the application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application shinyUI(fluidPage( # Application title t...
#' Server for initProject Addin #' #' @param input standard \code{shiny} input #' @param output standard \code{shiny} output #' @param session standard \code{shiny} session #' #' @noRd #' #' @importFrom shiny observeEvent showModal modalDialog callModule stopApp modalButton #' @importFrom htmltools tags #' @importF...
/R/initProjectServer.R
permissive
dreamRs/addinit
R
false
false
1,758
r
#' Server for initProject Addin #' #' @param input standard \code{shiny} input #' @param output standard \code{shiny} output #' @param session standard \code{shiny} session #' #' @noRd #' #' @importFrom shiny observeEvent showModal modalDialog callModule stopApp modalButton #' @importFrom htmltools tags #' @importF...
#' Retrieve Certificate Transparency Log List #' #' @md #' @param log_list_url a full URL to a known, good CTL log list. Defaults to a #' known good one (at the time of package creation) hosted by Google. #' @return list #' @references <https://www.certificate-transparency.org/known-logs> #' @export #' @examples...
/R/read-log-list.r
no_license
firebitsbr/sslsaran
R
false
false
734
r
#' Retrieve Certificate Transparency Log List #' #' @md #' @param log_list_url a full URL to a known, good CTL log list. Defaults to a #' known good one (at the time of package creation) hosted by Google. #' @return list #' @references <https://www.certificate-transparency.org/known-logs> #' @export #' @examples...
repeat_IPTG_tog<-function(run=5,omega=100,s=2,tstart=20,tstop=60){ Time=c() colo=c(rainbow(10)) plot(1,type='n',xlim=c(0,100),ylim=c(0,250),xlab='Time', ylab='X') for (i in 1:run){ #parameters a1=2*omega a2=2*omega K1=1*omega K2=1*omega n=4 d1=1 d2=1 Ks=5 m=...
/Modeling_rythmes_du_vivant/CharlotteNachtegael/TP_3/Code/IPTG_synchro_tog.R
no_license
cnachteg/Notes_Master_BIOINFO_ULB
R
false
false
1,745
r
repeat_IPTG_tog<-function(run=5,omega=100,s=2,tstart=20,tstop=60){ Time=c() colo=c(rainbow(10)) plot(1,type='n',xlim=c(0,100),ylim=c(0,250),xlab='Time', ylab='X') for (i in 1:run){ #parameters a1=2*omega a2=2*omega K1=1*omega K2=1*omega n=4 d1=1 d2=1 Ks=5 m=...
library(rayshader) library(sp) library(raster) library(scales) # Thanks: https://www.tylermw.com/a-step-by-step-guide-to-making-3d-maps-with-satellite-imagery-in-r/ #Both ortophoto and DEM must be in UTM coordinates. elevation = raster::raster("TinyGiantClam_DEM.tif") height_shade(raster_to_matrix(elevation)) %>% ...
/Rayshader/Rayshader_plot.R
permissive
Alerovere/drone_data_analysis_Palau
R
false
false
1,763
r
library(rayshader) library(sp) library(raster) library(scales) # Thanks: https://www.tylermw.com/a-step-by-step-guide-to-making-3d-maps-with-satellite-imagery-in-r/ #Both ortophoto and DEM must be in UTM coordinates. elevation = raster::raster("TinyGiantClam_DEM.tif") height_shade(raster_to_matrix(elevation)) %>% ...
# library(httr) # myapp = oauth_app("twitter", key = "oX2cAiTPLeiGOC2qgbeGf1SgU", secret = "ztQLiq0KHydLw2N9e30wdq6zerWdlOtGcZJwI40uVtU983gwiv") # sig = sign_oauth1.0(myapp, token = "oX2cAiTPLeiGOC2qgbeGf1SgU", token_secret = "ztQLiq0KHydLw2N9e30wdq6zerWdlOtGcZJwI40uVtU983gwiv") # homeTL = GET("https://api.twitter....
/3.Getting_and_Cleaning_Data/week2/api.R
no_license
ppeiris/datasciencecoursera
R
false
false
1,345
r
# library(httr) # myapp = oauth_app("twitter", key = "oX2cAiTPLeiGOC2qgbeGf1SgU", secret = "ztQLiq0KHydLw2N9e30wdq6zerWdlOtGcZJwI40uVtU983gwiv") # sig = sign_oauth1.0(myapp, token = "oX2cAiTPLeiGOC2qgbeGf1SgU", token_secret = "ztQLiq0KHydLw2N9e30wdq6zerWdlOtGcZJwI40uVtU983gwiv") # homeTL = GET("https://api.twitter....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chinook_by_date.r \name{F.chinookByDate.table} \alias{F.chinookByDate.table} \title{F.chinookByDate.table} \usage{ F.chinookByDate.table(site, min.date, max.date, output.file) } \arguments{ \item{site}{The identification number of the site fo...
/man/F.chinookByDate.table.Rd
no_license
tmcd82070/CAMP_RST
R
false
true
1,692
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chinook_by_date.r \name{F.chinookByDate.table} \alias{F.chinookByDate.table} \title{F.chinookByDate.table} \usage{ F.chinookByDate.table(site, min.date, max.date, output.file) } \arguments{ \item{site}{The identification number of the site fo...
#' read data from supported file formats #' #' read in data from filepath into R #' #' @param filename a complete file path #' @param \dots additional arguments passed to file-specific methods. #' @export read_data <- function(filename, ...){ UseMethod("read_data") } #' @export #' @keywords internal read_data.charac...
/R/read_data.R
permissive
berdaniera/meddle
R
false
false
1,760
r
#' read data from supported file formats #' #' read in data from filepath into R #' #' @param filename a complete file path #' @param \dots additional arguments passed to file-specific methods. #' @export read_data <- function(filename, ...){ UseMethod("read_data") } #' @export #' @keywords internal read_data.charac...
library(ggm) ### Name: isADMG ### Title: Acyclic directed mixed graphs ### Aliases: isADMG ### Keywords: graphs ancestral graph mixed graph models multivariate ### ** Examples ## Examples from Richardson and Spirtes (2002) a1 <- makeMG(dg=DAG(a~b, b~d, d~c), bg=UG(~a*c)) isADMG(a1) # Not an AG. (a2) p.969 ...
/data/genthat_extracted_code/ggm/examples/isADMG.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
425
r
library(ggm) ### Name: isADMG ### Title: Acyclic directed mixed graphs ### Aliases: isADMG ### Keywords: graphs ancestral graph mixed graph models multivariate ### ** Examples ## Examples from Richardson and Spirtes (2002) a1 <- makeMG(dg=DAG(a~b, b~d, d~c), bg=UG(~a*c)) isADMG(a1) # Not an AG. (a2) p.969 ...
# Remove all R objects from memory; important for creating a clean workspace rm(list = ls()) #Set the working directory setwd("~/OneDrive/Development/COURSEWORK/coursera-exploratory-data-analysis/week1") # Read in necessary libraries library(readr) library(dplyr) # Read in the data - keep time a character for simpl...
/plot2.R
no_license
gregforcey/ExData_Plotting1
R
false
false
1,536
r
# Remove all R objects from memory; important for creating a clean workspace rm(list = ls()) #Set the working directory setwd("~/OneDrive/Development/COURSEWORK/coursera-exploratory-data-analysis/week1") # Read in necessary libraries library(readr) library(dplyr) # Read in the data - keep time a character for simpl...
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observation (on all ## variables) required to compute th...
/corr.R
no_license
LemonCanon/datasciencecoursera
R
false
false
1,179
r
corr <- function(directory, threshold = 0) { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observation (on all ## variables) required to compute th...
context("Combining") test_that("cbind and rbind work", { m <- matrix(rnorm(25 * 16), 25) x <- foreach(i=seq_len(ncol(m)), .combine='cbind') %do% m[, i] dimnames(x) <- NULL expect_identical(m, x) x <- foreach(i=seq_len(ncol(m)), .combine='cbind') %dopar% m[, i] dimnames(x) <- NULL expect_iden...
/tests/testthat/test_combine.R
no_license
cran/foreach
R
false
false
1,421
r
context("Combining") test_that("cbind and rbind work", { m <- matrix(rnorm(25 * 16), 25) x <- foreach(i=seq_len(ncol(m)), .combine='cbind') %do% m[, i] dimnames(x) <- NULL expect_identical(m, x) x <- foreach(i=seq_len(ncol(m)), .combine='cbind') %dopar% m[, i] dimnames(x) <- NULL expect_iden...
options(warn = -1) .Machine$double.eps = .Machine$double.xmin # leadSNP functions source("leadFunctions.R") ### INPUT ### # 1. clumped gwas output trans.in = "../data/META.TRANS.clumped" eur.in = "../data/META.EUR.clumped" afr.in = "../data/META.AFR.clumped" sas.in = "../data/META.SAS.clumped" # 2. establish...
/example.R
no_license
Sandyyy123/leadSNP
R
false
false
2,558
r
options(warn = -1) .Machine$double.eps = .Machine$double.xmin # leadSNP functions source("leadFunctions.R") ### INPUT ### # 1. clumped gwas output trans.in = "../data/META.TRANS.clumped" eur.in = "../data/META.EUR.clumped" afr.in = "../data/META.AFR.clumped" sas.in = "../data/META.SAS.clumped" # 2. establish...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ArmadilloDriver.R \name{dsConnect,ArmadilloDriver-method} \alias{dsConnect,ArmadilloDriver-method} \title{Connect to an Armadillo DataSHIELD service} \usage{ \S4method{dsConnect}{ArmadilloDriver}( drv, name, restore = NULL, username, ...
/man/dsConnect-ArmadilloDriver-method.Rd
no_license
tommydeboer/molgenis-r-datashield
R
false
true
1,152
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ArmadilloDriver.R \name{dsConnect,ArmadilloDriver-method} \alias{dsConnect,ArmadilloDriver-method} \title{Connect to an Armadillo DataSHIELD service} \usage{ \S4method{dsConnect}{ArmadilloDriver}( drv, name, restore = NULL, username, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ncbi_byname.R \name{ncbi_byname} \alias{ncbi_byname} \title{Retrieve gene sequences from NCBI by taxon name and gene names.} \usage{ ncbi_byname(taxa, gene = "COI", seqrange = "1:3000", getrelated = FALSE, verbose = TRUE, ...) } \arguments{...
/man/ncbi_byname.Rd
permissive
MirzaCengic/traits
R
false
true
1,778
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ncbi_byname.R \name{ncbi_byname} \alias{ncbi_byname} \title{Retrieve gene sequences from NCBI by taxon name and gene names.} \usage{ ncbi_byname(taxa, gene = "COI", seqrange = "1:3000", getrelated = FALSE, verbose = TRUE, ...) } \arguments{...
#' Create design variables for a full description of a design. #' #' Create design variables to fully describe a design. #' If variables are supplied then these variables are checked for #' consistency and, if possible, changed to sizes that make #' sense if there are inconsistencies. #' Returns a list of matricies ...
/PopED/R/create_design.R
no_license
ingted/R-Examples
R
false
false
5,601
r
#' Create design variables for a full description of a design. #' #' Create design variables to fully describe a design. #' If variables are supplied then these variables are checked for #' consistency and, if possible, changed to sizes that make #' sense if there are inconsistencies. #' Returns a list of matricies ...
library(Seurat) library(dplyr) library(pheatmap) Meta=read.table('/home/huangbeibei/Aging/DEgene/O7Y7/IntegrateO7Y7.MetaData.processed_forSingler.txt',sep='\t',header=TRUE,row.names = 1) NK <- CreateSeuratObject(counts = read.table(file = '/home/huangbeibei/Aging/DEgene/O7Y7/IntegrateO7Y7_ScanpyNormLn_FilterCells_S...
/Code/FindMarkers_For_DEG.R
permissive
Feigeliudan01/Aging-NK
R
false
false
3,823
r
library(Seurat) library(dplyr) library(pheatmap) Meta=read.table('/home/huangbeibei/Aging/DEgene/O7Y7/IntegrateO7Y7.MetaData.processed_forSingler.txt',sep='\t',header=TRUE,row.names = 1) NK <- CreateSeuratObject(counts = read.table(file = '/home/huangbeibei/Aging/DEgene/O7Y7/IntegrateO7Y7_ScanpyNormLn_FilterCells_S...
testlist <- list(a = -16777216L, b = 0L, x = c(-256L, 16777215L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610129159-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
126
r
testlist <- list(a = -16777216L, b = 0L, x = c(-256L, 16777215L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
#Example3.3,section IV.3:Mechanics of Matrix Multiplication,chapter3,page 237 A <- matrix(c(0,0,0,1,0,0),ncol = 2) B <- matrix(c(1,4,7,2,5,8,3,6,9),ncol = 3) C <- matrix(c(5,7,6,8),ncol = 2) A %*% C B %*% A
/Ajay Ragh/R_TBC/Linear Algebra/chapter3/Ex3_4_3_3.R
no_license
sahridhaya/BitPlease
R
false
false
207
r
#Example3.3,section IV.3:Mechanics of Matrix Multiplication,chapter3,page 237 A <- matrix(c(0,0,0,1,0,0),ncol = 2) B <- matrix(c(1,4,7,2,5,8,3,6,9),ncol = 3) C <- matrix(c(5,7,6,8),ncol = 2) A %*% C B %*% A
library(RCurl) library(tidyverse) library(lubridate) #start by trying out cleaning/processing on one week's worth of data... # Clean data ----------------- url <- "https://listserv.umd.edu/cgi-bin/wa?A1=ind1803b&L=ecolog-l" data <- getURL(url) data_split <- str_split(data, "\n")[[1]] title <- data_split[str_detect...
/exploration/01_one_week.R
no_license
isteves/ecolog
R
false
false
1,758
r
library(RCurl) library(tidyverse) library(lubridate) #start by trying out cleaning/processing on one week's worth of data... # Clean data ----------------- url <- "https://listserv.umd.edu/cgi-bin/wa?A1=ind1803b&L=ecolog-l" data <- getURL(url) data_split <- str_split(data, "\n")[[1]] title <- data_split[str_detect...
#------------------------------------------------------------------------------- # INFO FOR CODE IN THIS FILE #------------------------------------------------------------------------------- # Date Created: 31 March 2021 # Created By: Marvin Mace # Code in this file is for creating a .dat file for the ADMB version of...
/SCAA/SCAA_1/ADMB_SCAA_1.R
no_license
mmace3/SA
R
false
false
2,488
r
#------------------------------------------------------------------------------- # INFO FOR CODE IN THIS FILE #------------------------------------------------------------------------------- # Date Created: 31 March 2021 # Created By: Marvin Mace # Code in this file is for creating a .dat file for the ADMB version of...
# Create a default estfun method and, for safety, create individual methods # for all the classes currently involved in lax. At the moment they all # use numDeriv::jacobian() to do the calculation #' @export estfun.default <- function(x, loglik_fn, ...) { U <- numDeriv::jacobian(loglik_fn, x = coef(x), ...) colna...
/R/estfun.R
no_license
paulnorthrop/lax
R
false
false
3,935
r
# Create a default estfun method and, for safety, create individual methods # for all the classes currently involved in lax. At the moment they all # use numDeriv::jacobian() to do the calculation #' @export estfun.default <- function(x, loglik_fn, ...) { U <- numDeriv::jacobian(loglik_fn, x = coef(x), ...) colna...
fluidPage( fluidRow( box(title="Plot options", width=4, radioButtons("plotByPat", label=h5("Plot by patient or by structure"), list("By patient"=1, "By structure"=2)), uiOutput("plotSelPat"), actio...
/inst/DVHshiny/app_ui_tab_show_dvh.R
no_license
cran/DVHmetrics
R
false
false
1,715
r
fluidPage( fluidRow( box(title="Plot options", width=4, radioButtons("plotByPat", label=h5("Plot by patient or by structure"), list("By patient"=1, "By structure"=2)), uiOutput("plotSelPat"), actio...
png(file = "plot2.png", width = 480, height = 480) a <- read.delim("household_power_consumption.txt", sep = ";", na.strings = "?") library(lubridate) a[ ,"Date"] <- dmy(a[ ,"Date"]) c <- subset(a, a[ , "Date"] == "2007-02-01" | a[ , "Date"] == "2007-02-02") c$combine <- paste(c$Date, c$Time) c$combine <- ymd_hms(...
/plot2.R
no_license
saurabhfbd08/ExData_Plotting1
R
false
false
506
r
png(file = "plot2.png", width = 480, height = 480) a <- read.delim("household_power_consumption.txt", sep = ";", na.strings = "?") library(lubridate) a[ ,"Date"] <- dmy(a[ ,"Date"]) c <- subset(a, a[ , "Date"] == "2007-02-01" | a[ , "Date"] == "2007-02-02") c$combine <- paste(c$Date, c$Time) c$combine <- ymd_hms(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_beacon.R \name{beacon_start_chain} \alias{beacon_start_chain} \title{Get start of chain record} \usage{ beacon_start_chain(ds) } \arguments{ \item{ds}{timestamp to get} } \value{ start of chain record } \description{ Get start of chain re...
/man/beacon_start_chain.Rd
no_license
stillmatic/nistbeacon
R
false
true
327
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_beacon.R \name{beacon_start_chain} \alias{beacon_start_chain} \title{Get start of chain record} \usage{ beacon_start_chain(ds) } \arguments{ \item{ds}{timestamp to get} } \value{ start of chain record } \description{ Get start of chain re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_eurostat_raw.R \name{get_eurostat_raw} \alias{get_eurostat_raw} \title{Download Data from Eurostat Database} \usage{ get_eurostat_raw(id) } \arguments{ \item{id}{A code name for the dataset of interested. See the table of contents of euro...
/man/get_eurostat_raw.Rd
permissive
vinciuna/eurostat
R
false
true
1,172
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_eurostat_raw.R \name{get_eurostat_raw} \alias{get_eurostat_raw} \title{Download Data from Eurostat Database} \usage{ get_eurostat_raw(id) } \arguments{ \item{id}{A code name for the dataset of interested. See the table of contents of euro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/galaxy.R \name{getFuncInfo} \alias{getFuncInfo} \title{Title} \usage{ getFuncInfo(func, param) } \arguments{ \item{func}{} \item{param}{} } \description{ Title } \examples{ \dontrun{ getFuncInfo(CreateDESeqData) } }
/man/getFuncInfo.Rd
permissive
stokkumrmv/RGalaxy
R
false
true
295
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/galaxy.R \name{getFuncInfo} \alias{getFuncInfo} \title{Title} \usage{ getFuncInfo(func, param) } \arguments{ \item{func}{} \item{param}{} } \description{ Title } \examples{ \dontrun{ getFuncInfo(CreateDESeqData) } }
library("devtools") #devtools::install_github("klutometis/roxygen") library(roxygen2) setwd("~/Documents/Open Universiteit/Onderzoek/Methodologie/Cyclic-models") setwd("D:/R Git projects/Cyclic-models") create("cyclicESM") setwd("./cyclicESM") devtools::document() devtools::build_vignettes(pkg = "cyclicESM") ...
/start package cyclicESM.R
no_license
PeterVerboon/Cyclic-models
R
false
false
493
r
library("devtools") #devtools::install_github("klutometis/roxygen") library(roxygen2) setwd("~/Documents/Open Universiteit/Onderzoek/Methodologie/Cyclic-models") setwd("D:/R Git projects/Cyclic-models") create("cyclicESM") setwd("./cyclicESM") devtools::document() devtools::build_vignettes(pkg = "cyclicESM") ...
getPairData <- function(file, param) # This retrieves the fragment sizes, relative orientations and gaps from each directory produced by # preparePairs. This is a convenience function which allows people to avoid loading the entire directory # in (or manually parsing the said directory). # # written by Aaron Lun # cr...
/R/getPairData.R
no_license
hcoughlan/archive-diffHic
R
false
false
1,591
r
getPairData <- function(file, param) # This retrieves the fragment sizes, relative orientations and gaps from each directory produced by # preparePairs. This is a convenience function which allows people to avoid loading the entire directory # in (or manually parsing the said directory). # # written by Aaron Lun # cr...
# ## Copy my plot to a PNG file #dev.copy(png, file = "geyserplot.png") ## Don't forget to close the PNG device! #dev.off()# # ## PLOT 1 # hpc2 <- read.csv2("./exdata/household_power_consumption.txt",colClasses="character") hpc2day1 <- filter(hpc2, Date=='1/2/2007') hpc2day2 <- filter(hpc2, Date=='2/2/2007') hpc2days <...
/read_data.R
no_license
jioann/ExData_Plotting1
R
false
false
3,198
r
# ## Copy my plot to a PNG file #dev.copy(png, file = "geyserplot.png") ## Don't forget to close the PNG device! #dev.off()# # ## PLOT 1 # hpc2 <- read.csv2("./exdata/household_power_consumption.txt",colClasses="character") hpc2day1 <- filter(hpc2, Date=='1/2/2007') hpc2day2 <- filter(hpc2, Date=='2/2/2007') hpc2days <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/artifact_edition.R \name{eeg_events_to_NA} \alias{eeg_events_to_NA} \title{Remove (transform to NA) problematic events from the signal table of an eeg_lst.} \usage{ eeg_events_to_NA( x, ..., .all_chs = FALSE, .entire_seg = TRUE, .dr...
/man/eeg_events_to_NA.Rd
permissive
stonekate/eeguana
R
false
true
1,093
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/artifact_edition.R \name{eeg_events_to_NA} \alias{eeg_events_to_NA} \title{Remove (transform to NA) problematic events from the signal table of an eeg_lst.} \usage{ eeg_events_to_NA( x, ..., .all_chs = FALSE, .entire_seg = TRUE, .dr...
# __________________________________________________________ # ////////////////////////////////////////////////////////// # # MODULE 3 - SCORING # __________________________________________________________ # ////////////////////////////////////////////////////////// # --- COMPUTING PREDICTORS AND TARGET VARIABLES ...
/MarketingAnalytics/module3.R
no_license
gavinconran/ESSEC
R
false
false
4,493
r
# __________________________________________________________ # ////////////////////////////////////////////////////////// # # MODULE 3 - SCORING # __________________________________________________________ # ////////////////////////////////////////////////////////// # --- COMPUTING PREDICTORS AND TARGET VARIABLES ...
library(tidyverse) library(readxl) ### Urban Institute # Student Debt ------------------------------------------------------------ student_debt_raw <- read_excel("2021/2021-02-09/StudentLoans.xlsx", skip = 1) student_debt_val <- student_debt_raw %>% rename(year = 1) %>% slice(1:10) %>% arrange(desc(year)) %>%...
/data/2021/2021-02-09/cleaning_script.R
permissive
rfordatascience/tidytuesday
R
false
false
22,355
r
library(tidyverse) library(readxl) ### Urban Institute # Student Debt ------------------------------------------------------------ student_debt_raw <- read_excel("2021/2021-02-09/StudentLoans.xlsx", skip = 1) student_debt_val <- student_debt_raw %>% rename(year = 1) %>% slice(1:10) %>% arrange(desc(year)) %>%...
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the following e...
/BEMTOOL-ver2.5-2018_0901/bmtgui/diagnosis/runSIMULATION_bmt_action.r
no_license
gresci/BEMTOOL2.5
R
false
false
1,161
r
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the following e...
## Assignment: Caching the Inverse of a MAtrix ## Function creates a matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setInverse <- function(inverse) inv <<- inverse getInverse <- func...
/cachematrix.R
no_license
kherg16/ProgrammingAssignment2
R
false
false
854
r
## Assignment: Caching the Inverse of a MAtrix ## Function creates a matrix object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { inv <- NULL set <- function(y) { x <<- y inv <<- NULL } get <- function() x setInverse <- function(inverse) inv <<- inverse getInverse <- func...
#' Prune a Bin #' #' Given a bin, \code{prune} combines all of the bins sister bins into a single node. #' #' @param bin bin An object of class bin (contained in treebinr_obj) to be pruned #' @param treebinr_obj An object of class treebinr #' @param binMeasure A user supplied function to compute the measure ass...
/R/prune.R
no_license
AdamRahman/treebinr
R
false
false
3,709
r
#' Prune a Bin #' #' Given a bin, \code{prune} combines all of the bins sister bins into a single node. #' #' @param bin bin An object of class bin (contained in treebinr_obj) to be pruned #' @param treebinr_obj An object of class treebinr #' @param binMeasure A user supplied function to compute the measure ass...
require(OneStep) require(actuar) n <- 1e3 #### G1 <- c("norm", "exp", "lnorm", "invgauss", "pois", "geom") # Distributions for which the explicit MLE is returned #### x <- rexp(n) benchonestep(x, "exp", c("mme", "mle")) benchonestep(x, "exp", c("mm", "one")) #### G3 <- c("gamma", "beta", "nbinom") # Dist...
/tests/t-benchonestep-4-closeform.R
no_license
cran/OneStep
R
false
false
486
r
require(OneStep) require(actuar) n <- 1e3 #### G1 <- c("norm", "exp", "lnorm", "invgauss", "pois", "geom") # Distributions for which the explicit MLE is returned #### x <- rexp(n) benchonestep(x, "exp", c("mme", "mle")) benchonestep(x, "exp", c("mm", "one")) #### G3 <- c("gamma", "beta", "nbinom") # Dist...
# nocov start --- compat-lifecycle --- 2019-01-02 Wed 13:22 # This file serves as a reference for currently unexported rlang # lifecycle functions. Please find the most recent version in rlang's # repository. These functions require rlang in your `Imports` # DESCRIPTION field but you don't need to import rlang in your...
/R/compat-lifecycle.R
no_license
davidchall/pillar
R
false
false
7,116
r
# nocov start --- compat-lifecycle --- 2019-01-02 Wed 13:22 # This file serves as a reference for currently unexported rlang # lifecycle functions. Please find the most recent version in rlang's # repository. These functions require rlang in your `Imports` # DESCRIPTION field but you don't need to import rlang in your...
testlist <- list(data = structure(c(3.23785921002061e-319, 5.8023323397338e-316, 0, 5.42501486433965e-312, 3.23790861658519e-318), .Dim = c(5L, 1L)), x = structure(c(Inf, NaN, 1.96860294529647e-302, 5.98410777034196e-312, 6.37708568412158e-315, 2.65286820999814e-308, 3.21900225742396e-307, 0, 1.24943112172035e-309,...
/distr6/inst/testfiles/C_EmpiricalMVPdf/libFuzzer_C_EmpiricalMVPdf/C_EmpiricalMVPdf_valgrind_files/1610035625-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
706
r
testlist <- list(data = structure(c(3.23785921002061e-319, 5.8023323397338e-316, 0, 5.42501486433965e-312, 3.23790861658519e-318), .Dim = c(5L, 1L)), x = structure(c(Inf, NaN, 1.96860294529647e-302, 5.98410777034196e-312, 6.37708568412158e-315, 2.65286820999814e-308, 3.21900225742396e-307, 0, 1.24943112172035e-309,...
lmer.cached <- function(file, ...){ set.seed(12604) file <- paste0(file, ".rds") if(file.exists(file)){ return(readRDS(file)) } else { model <- lmer(...) saveRDS(model, file) return(model) } } glmer.cached <- function(file, ...){ set.seed(12604) file <- paste0(file, ".rds") if(file.exis...
/util-lmer-cached.R
no_license
jodeleeuw/219-2020-eeg-analysis
R
false
false
441
r
lmer.cached <- function(file, ...){ set.seed(12604) file <- paste0(file, ".rds") if(file.exists(file)){ return(readRDS(file)) } else { model <- lmer(...) saveRDS(model, file) return(model) } } glmer.cached <- function(file, ...){ set.seed(12604) file <- paste0(file, ".rds") if(file.exis...
#------------ # plot Ct distributions # Fig. 1 in paper #------------- ###################################################### ## daily_ct_bootstrap: daily case counts/sample counts, incidence-based Rt; ## daily Ct mean, median and skewness (imputed) ## CIs calculated for GAM Ct ...
/main/3_plot_fig_1.R
no_license
byyangyby/ct_rt_hk
R
false
false
10,436
r
#------------ # plot Ct distributions # Fig. 1 in paper #------------- ###################################################### ## daily_ct_bootstrap: daily case counts/sample counts, incidence-based Rt; ## daily Ct mean, median and skewness (imputed) ## CIs calculated for GAM Ct ...