content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/group_mods.R \name{rep_full_3pmeta_group_mod_builder} \alias{rep_full_3pmeta_group_mod_builder} \title{Reputation Consensus, Accuracy, and 3rd-Person Meta-Perception with group moderator Model Builder This builds a model of lavaan syntax for ...
/man/rep_full_3pmeta_group_mod_builder.Rd
no_license
Coryc3133/ReputationModelR
R
false
true
7,576
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/group_mods.R \name{rep_full_3pmeta_group_mod_builder} \alias{rep_full_3pmeta_group_mod_builder} \title{Reputation Consensus, Accuracy, and 3rd-Person Meta-Perception with group moderator Model Builder This builds a model of lavaan syntax for ...
# Read file FileName="household_power_consumption.txt" library(data.table) DT <- read.table(FileName, sep = ";", header = T, na.strings = c("?", "")) # convert time DT$DateTime <- paste(DT$Date, DT$Time) DT$DateTime <- as.POSIXct(DT$DateTime, format = "%d/%m/%Y %H:%M:%S") # del Date, Time DT$Time <- NULL DT$Date <- NUL...
/plot3.R
no_license
DenisKlykov/ExData_Plotting1
R
false
false
950
r
# Read file FileName="household_power_consumption.txt" library(data.table) DT <- read.table(FileName, sep = ";", header = T, na.strings = c("?", "")) # convert time DT$DateTime <- paste(DT$Date, DT$Time) DT$DateTime <- as.POSIXct(DT$DateTime, format = "%d/%m/%Y %H:%M:%S") # del Date, Time DT$Time <- NULL DT$Date <- NUL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/packages.R \name{LoadPackages} \alias{LoadPackages} \title{Quietly load one or more packages} \usage{ LoadPackages(libraries, stealth = FALSE) } \arguments{ \item{libraries}{a character vector of libraries to load} } \value{ None } \descripti...
/man/LoadPackages.Rd
no_license
mikebesso/two.laws.big.bang
R
false
true
430
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/packages.R \name{LoadPackages} \alias{LoadPackages} \title{Quietly load one or more packages} \usage{ LoadPackages(libraries, stealth = FALSE) } \arguments{ \item{libraries}{a character vector of libraries to load} } \value{ None } \descripti...
library(tidyverse) chemicals_specs <- tibble(Chemical = c("NADH", "ATP"), coef = c(6220, 15400), lambda = c(340, 260)) use_data(chemicals_specs, internal = TRUE, overwrite = TRUE)
/data-raw/chemicals_specs.R
no_license
mirkko-hub/jasco2
R
false
false
181
r
library(tidyverse) chemicals_specs <- tibble(Chemical = c("NADH", "ATP"), coef = c(6220, 15400), lambda = c(340, 260)) use_data(chemicals_specs, internal = TRUE, overwrite = TRUE)
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536106829e+146, 2.58543967171209e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615785056-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536106829e+146, 2.58543967171209e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
## ---- eval=FALSE--------------------------------------------------------- # library(LEANR) # library(ROCR) # set.seed(123456) # data(g2) ## ---- echo=FALSE,include=FALSE------------------------------------------- library(LEANR) library(ROCR) set.seed(123456) # load network and subnet results instances<-LEANR:::i...
/data/genthat_extracted_code/LEANR/vignettes/subnet-sim.R
no_license
surayaaramli/typeRrh
R
false
false
2,721
r
## ---- eval=FALSE--------------------------------------------------------- # library(LEANR) # library(ROCR) # set.seed(123456) # data(g2) ## ---- echo=FALSE,include=FALSE------------------------------------------- library(LEANR) library(ROCR) set.seed(123456) # load network and subnet results instances<-LEANR:::i...
existsBackgroundVariables <- function(dat, variable, warnIfMissing = FALSE, stopIfMissingOnVars = NULL ) { if(is.null(variable)) {return(NULL)} if(!is.vector(variable)) {stop("'variable' must be a numeric or character vector.")} if(any(is.na(variable))) {stop("'variable' must not c...
/R/existsBackgroundVariables.r
no_license
weirichs/eatTools
R
false
false
2,175
r
existsBackgroundVariables <- function(dat, variable, warnIfMissing = FALSE, stopIfMissingOnVars = NULL ) { if(is.null(variable)) {return(NULL)} if(!is.vector(variable)) {stop("'variable' must be a numeric or character vector.")} if(any(is.na(variable))) {stop("'variable' must not c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check_guidelines.R \name{check_guidelines} \alias{check_guidelines} \title{Check guidelines} \usage{ check_guidelines(x = NULL) } \arguments{ \item{x}{A data.frame of the guidelines. IF NULL, pull from BC Data Catalogue.} } \value{ A invisibl...
/man/check_guidelines.Rd
permissive
CamBullen/shinywqg
R
false
true
429
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/check_guidelines.R \name{check_guidelines} \alias{check_guidelines} \title{Check guidelines} \usage{ check_guidelines(x = NULL) } \arguments{ \item{x}{A data.frame of the guidelines. IF NULL, pull from BC Data Catalogue.} } \value{ A invisibl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gtree.R \name{gtree} \alias{.gtree} \alias{[.GTree} \alias{gtree} \alias{svalue.GTree} \alias{svalue<-.GTree} \alias{update.GTree} \title{constructor for widget to display heirarchical data} \usage{ gtree(x = NULL, INDICES = NULL, offspring =...
/man/gtree.Rd
no_license
statTarget/gWidgets2
R
false
true
7,728
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gtree.R \name{gtree} \alias{.gtree} \alias{[.GTree} \alias{gtree} \alias{svalue.GTree} \alias{svalue<-.GTree} \alias{update.GTree} \title{constructor for widget to display heirarchical data} \usage{ gtree(x = NULL, INDICES = NULL, offspring =...
"rregular" <- function(n, min = 0, max = 1) { x <- seq(min, max, length = n + 1)[ - (n + 1)] x + (max - min) * runif(n, 0, 1/n) }
/modart/R/rregular.R
no_license
spkal/modart
R
false
false
134
r
"rregular" <- function(n, min = 0, max = 1) { x <- seq(min, max, length = n + 1)[ - (n + 1)] x + (max - min) * runif(n, 0, 1/n) }
#makeCacheMatrix creates a special matrix object makeCacheMatrix <- function(x = matrix()) { inv_x <- NULL #the set-function sets values set <- function(y) { x <<- y inv_x <<- NULL } #the get-function returns x (matrix) ge...
/cachematrix.R
no_license
iJasja/ProgrammingAssignment2
R
false
false
1,354
r
#makeCacheMatrix creates a special matrix object makeCacheMatrix <- function(x = matrix()) { inv_x <- NULL #the set-function sets values set <- function(y) { x <<- y inv_x <<- NULL } #the get-function returns x (matrix) ge...
############################## # This is a shiny app for simulating a EWMA moving # average crossover strategy, with dygraphs plot. # # Just press the "Run App" button on upper right of this panel. ############################## ## Below is the setup code that runs once when the shiny app is started # Load R package...
/app_ewma_strat.R
no_license
ZediQiu/presentations
R
false
false
11,077
r
############################## # This is a shiny app for simulating a EWMA moving # average crossover strategy, with dygraphs plot. # # Just press the "Run App" button on upper right of this panel. ############################## ## Below is the setup code that runs once when the shiny app is started # Load R package...
## Práctico 5 ## (SOLO RANDOM SKEWERS) ## ingreso de datos tapi<-read.table("TAPI.txt", header = TRUE) horq<-read.table("HORQ.txt", header = TRUE) Gtapi <- cov(tapi, use = "complete.obs") Ghorq <- cov(horq, use = "complete.obs") ## la función random skewers # Argumentos # G1 y G2 son matrices de varianza-covarianz...
/practico_5/rutina5.R
no_license
Nayarb99/m_ecolevol
R
false
false
2,541
r
## Práctico 5 ## (SOLO RANDOM SKEWERS) ## ingreso de datos tapi<-read.table("TAPI.txt", header = TRUE) horq<-read.table("HORQ.txt", header = TRUE) Gtapi <- cov(tapi, use = "complete.obs") Ghorq <- cov(horq, use = "complete.obs") ## la función random skewers # Argumentos # G1 y G2 son matrices de varianza-covarianz...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model-dynamic-ei.R \docType{class} \name{Zelig-eidynamic-class} \alias{Zelig-eidynamic-class} \alias{zeidynamic} \title{Quinn's Dynamic Ecological Inference Model} \description{ Vignette: \url{http://docs.zeligproject.org/en/latest/zeligei-ei...
/man/Zelig-eidynamic-class.Rd
no_license
christophergandrud/ZeligEI
R
false
true
337
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model-dynamic-ei.R \docType{class} \name{Zelig-eidynamic-class} \alias{Zelig-eidynamic-class} \alias{zeidynamic} \title{Quinn's Dynamic Ecological Inference Model} \description{ Vignette: \url{http://docs.zeligproject.org/en/latest/zeligei-ei...
d1<-"household_power_consumption.txt" d2<-read.table(text=grep("^[1,2]/2/2007", readLines(d1), value=TRUE), col.names=c("Date", "Time", "Global_active_power", "Global_reactive_power", ...
/plot4.R
no_license
scottb185/ExData_Plotting1
R
false
false
1,458
r
d1<-"household_power_consumption.txt" d2<-read.table(text=grep("^[1,2]/2/2007", readLines(d1), value=TRUE), col.names=c("Date", "Time", "Global_active_power", "Global_reactive_power", ...
#' Unnest a list column. #' #' If you have a list-column, this makes each element of the list it's own #' row. List-columns can either be atomic vectors or data frames. Each #' row must have the same number of entries. #' #' @inheritParams unnest_ #' @param ... Specification of columns to nest. Use bare variable names....
/R/unnest.R
no_license
yifeizhang/tidyr
R
false
false
3,367
r
#' Unnest a list column. #' #' If you have a list-column, this makes each element of the list it's own #' row. List-columns can either be atomic vectors or data frames. Each #' row must have the same number of entries. #' #' @inheritParams unnest_ #' @param ... Specification of columns to nest. Use bare variable names....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metrics_Terryn_2020.R \name{stem_branch_cluster_size_qsm} \alias{stem_branch_cluster_size_qsm} \title{Stem branch cluster size TreeQSM} \usage{ stem_branch_cluster_size_qsm(cylinder) } \arguments{ \item{cylinder}{Cylinder field of a TreeQSM t...
/man/stem_branch_cluster_size_qsm.Rd
permissive
lmterryn/ITSMe
R
false
true
1,416
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metrics_Terryn_2020.R \name{stem_branch_cluster_size_qsm} \alias{stem_branch_cluster_size_qsm} \title{Stem branch cluster size TreeQSM} \usage{ stem_branch_cluster_size_qsm(cylinder) } \arguments{ \item{cylinder}{Cylinder field of a TreeQSM t...
#' summarise quantitative function #' #' this function generates a summary of a quantitative variable #' @param variable_codebook variable specific codebook, no default #' @param data variable specific data, no default #' @param strata list with two entries, name and data. the name entry is the name of the variable tha...
/R/summarise.quantitative.r
no_license
tracits/beehive
R
false
false
3,334
r
#' summarise quantitative function #' #' this function generates a summary of a quantitative variable #' @param variable_codebook variable specific codebook, no default #' @param data variable specific data, no default #' @param strata list with two entries, name and data. the name entry is the name of the variable tha...
# Results at the national level rm(list=ls(all=TRUE)) library(data.table) library(reshape2) setwd("C:/Users/jmaburto.SAM/Documents/GitHub/Violence-and-Lifespan-variation/") #### sex=1 <- males #### 1. Infectious and respiratory diseases, 2. Cancers, 3. Circulatory, #### 4. Birth, 5. Diabetes, 6. Other Medical Care A...
/R/2_1_LifeExpectancy&LifeDisparity.R
no_license
jmaburto/Violence-and-Lifespan-variation
R
false
false
1,090
r
# Results at the national level rm(list=ls(all=TRUE)) library(data.table) library(reshape2) setwd("C:/Users/jmaburto.SAM/Documents/GitHub/Violence-and-Lifespan-variation/") #### sex=1 <- males #### 1. Infectious and respiratory diseases, 2. Cancers, 3. Circulatory, #### 4. Birth, 5. Diabetes, 6. Other Medical Care A...
db = read.csv("http://www.rob-mcculloch.org/data/diabetes.csv") xB = as.matrix(db[,2:11]) #x for BART yBL = db$y rmsef = function(y,yhat) {return(sqrt(mean((y-yhat)^2)))} nd=30 #number of train/test splits n = length(yBL) ntrain=floor(.75*n) #75% in train each time rmseB = rep(0,nd) #BART rmse fmatB=matrix(0.0,n-ntra...
/wbart_diabetes.R
no_license
fx-erick/Bayesian-Regression-Tree-Project
R
false
false
835
r
db = read.csv("http://www.rob-mcculloch.org/data/diabetes.csv") xB = as.matrix(db[,2:11]) #x for BART yBL = db$y rmsef = function(y,yhat) {return(sqrt(mean((y-yhat)^2)))} nd=30 #number of train/test splits n = length(yBL) ntrain=floor(.75*n) #75% in train each time rmseB = rep(0,nd) #BART rmse fmatB=matrix(0.0,n-ntra...
testlist <- list(type = 0L, z = 1.30729769889594e-320) result <- do.call(esreg::G1_fun,testlist) str(result)
/esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609891221-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
108
r
testlist <- list(type = 0L, z = 1.30729769889594e-320) result <- do.call(esreg::G1_fun,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multisynth_class.R \name{plot.multisynth} \alias{plot.multisynth} \title{Plot function for multisynth} \usage{ \method{plot}{multisynth}( x, inf_type = "bootstrap", inf = T, levels = NULL, label = T, weights = FALSE, ... ) } \ar...
/man/plot.multisynth.Rd
permissive
ebenmichael/augsynth
R
false
true
841
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/multisynth_class.R \name{plot.multisynth} \alias{plot.multisynth} \title{Plot function for multisynth} \usage{ \method{plot}{multisynth}( x, inf_type = "bootstrap", inf = T, levels = NULL, label = T, weights = FALSE, ... ) } \ar...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ajive.R, R/ajive_decomposition.R \docType{package} \name{ajive} \alias{ajive} \alias{ajive-package} \alias{ajive} \title{ajive: Angle based Joint and Individual Variation Explained.} \usage{ ajive(blocks, initial_signal_ranks, full = TRUE) } ...
/man/ajive.Rd
permissive
junruidi/r_jive
R
false
true
1,137
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ajive.R, R/ajive_decomposition.R \docType{package} \name{ajive} \alias{ajive} \alias{ajive-package} \alias{ajive} \title{ajive: Angle based Joint and Individual Variation Explained.} \usage{ ajive(blocks, initial_signal_ranks, full = TRUE) } ...
##################### # Bikeshare Dataset ##################### ##################### # Load the data ##################### bike.all=read.csv('hour.csv') # choose non-working day ind = (bike.all$workingday==0) bike.tmp = bike.all[ind,] # remove the dates which does not have full hours tmp=split(bike.tmp[,c("hr")],...
/Linear-SDR/real/bikeshare_plot_table.R
no_license
CodeJSong/Functional-Dimension-Reduction
R
false
false
4,512
r
##################### # Bikeshare Dataset ##################### ##################### # Load the data ##################### bike.all=read.csv('hour.csv') # choose non-working day ind = (bike.all$workingday==0) bike.tmp = bike.all[ind,] # remove the dates which does not have full hours tmp=split(bike.tmp[,c("hr")],...
#' LongitudinalExample_1 #' #' Create a repeated measures regression using the \code{cholesterol} data #' #' @return Nothing #' @export #' @import stats #' @importFrom reshape2 melt #' @importFrom magrittr %>% #' @importFrom rcompanion plotNormalHistogram #' @importFrom nlme lme intervals #' @examples #' { #' Longitudi...
/R/LongitudinalExample_1.R
no_license
anhnguyendepocen/AdvancedRegression
R
false
false
1,913
r
#' LongitudinalExample_1 #' #' Create a repeated measures regression using the \code{cholesterol} data #' #' @return Nothing #' @export #' @import stats #' @importFrom reshape2 melt #' @importFrom magrittr %>% #' @importFrom rcompanion plotNormalHistogram #' @importFrom nlme lme intervals #' @examples #' { #' Longitudi...
#Matrix inversion is usually a costly computation and there may be some benefit #to caching the inverse of a matrix rather than compute it repeatedly. # #This file has two functions that will be used to cache the inverse of a square #matrix. As per the instructions in the assignment, it is assumed that the #matrix use...
/cachematrix.R
no_license
cpenc/Caching-R-Objects_Mean-of-a-Vector-and-Inverse-of-a-Matrix
R
false
false
1,954
r
#Matrix inversion is usually a costly computation and there may be some benefit #to caching the inverse of a matrix rather than compute it repeatedly. # #This file has two functions that will be used to cache the inverse of a square #matrix. As per the instructions in the assignment, it is assumed that the #matrix use...
testlist <- list(genotype = c(-2138996351L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
/detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609875036-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
441
r
testlist <- list(genotype = c(-2138996351L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
library(ggplot2) library(rworldmap) library(ggmap) library(gridExtra) test<- read.csv("~/Dropbox/AfSIS_reporting_data/Seperated_datasets/Ldsf_field_details_SSN.csv") aa <- ggplot(data=test.1, aes(x=Longitude,y=Latitude)) + geom_point(colour="red") + ggtitle("One sentinel site sampling") a<-with(test,min(na.omit(Longitu...
/calibrations/AfSIS_points versus predictions.R
no_license
asila/sila.code
R
false
false
1,200
r
library(ggplot2) library(rworldmap) library(ggmap) library(gridExtra) test<- read.csv("~/Dropbox/AfSIS_reporting_data/Seperated_datasets/Ldsf_field_details_SSN.csv") aa <- ggplot(data=test.1, aes(x=Longitude,y=Latitude)) + geom_point(colour="red") + ggtitle("One sentinel site sampling") a<-with(test,min(na.omit(Longitu...
#### #### CERrice2017 All data analysis #### No. 1.2 CCM for climate-eDNA data #### # Load workspace load("00_CompileAllDataOut/00_CompileAllDataOut.RData") # Set random seeds (for reproduction) ran_seed <- 8181 set.seed(ran_seed) output_folder01 <- "01_CCMEcolComClimOut" output_rawccmres02 <- sprintf("%s/CCMClimxDNA...
/02_EcolComAnalysis/01_2_CCMClimDNA.R
permissive
ong8181/interaction-capacity
R
false
false
4,800
r
#### #### CERrice2017 All data analysis #### No. 1.2 CCM for climate-eDNA data #### # Load workspace load("00_CompileAllDataOut/00_CompileAllDataOut.RData") # Set random seeds (for reproduction) ran_seed <- 8181 set.seed(ran_seed) output_folder01 <- "01_CCMEcolComClimOut" output_rawccmres02 <- sprintf("%s/CCMClimxDNA...
library(readxl) # Reading Excel files library(tidyverse) # Data wrangling and plotting library(gridExtra) # Creating panel plots with ggplot library(grid) library(emmeans) # Easy functions to get predicted means library(bannerCommenter) # This provides an easy way to create banner comments source('plots.R') # Read in o...
/analysis.R
no_license
zumbaughca/F21_asi561_analysis
R
false
false
5,643
r
library(readxl) # Reading Excel files library(tidyverse) # Data wrangling and plotting library(gridExtra) # Creating panel plots with ggplot library(grid) library(emmeans) # Easy functions to get predicted means library(bannerCommenter) # This provides an easy way to create banner comments source('plots.R') # Read in o...
"ImpulseCoefficientsARMA" <- function(phi, theta, lag.max){ p <- length(phi) q <- length(theta) if (p==0) return(c(-theta,rep(0,lag.max))[1:lag.max]) r <- max(p,q) x <- numeric(lag.max + 1) t2<-numeric(r) t2[1:p]<-phi x[1] <- 1 if (q>0) ...
/R/ImpulseCoefficientsARMA.R
no_license
cran/FitARMA
R
false
false
620
r
"ImpulseCoefficientsARMA" <- function(phi, theta, lag.max){ p <- length(phi) q <- length(theta) if (p==0) return(c(-theta,rep(0,lag.max))[1:lag.max]) r <- max(p,q) x <- numeric(lag.max + 1) t2<-numeric(r) t2[1:p]<-phi x[1] <- 1 if (q>0) ...
# returns a list of plots, one for each subgroup within the group # TODO - are we still using the textual and numerical data - assume so for now.1 # TODO don't cleanup the data, remove it # TODO figure out the question stuff # Pass in the raw numerical data frame. No altering, don't get rid of the top rows #' T #' #' A...
/R/makeGraphs.R
no_license
Eforberger/preview
R
false
false
7,166
r
# returns a list of plots, one for each subgroup within the group # TODO - are we still using the textual and numerical data - assume so for now.1 # TODO don't cleanup the data, remove it # TODO figure out the question stuff # Pass in the raw numerical data frame. No altering, don't get rid of the top rows #' T #' #' A...
##### #UI Functions #' Function to save component #' #' This function saves the component as a json file. The component is converted from s4 to s3 to #' fit the jsonlite function #' @param x the component you wish to save #' @param saveName a name for the function you want to save #' @param savePath a path to a file t...
/R/userCommands.R
permissive
gowthamrao/Capr
R
false
false
5,609
r
##### #UI Functions #' Function to save component #' #' This function saves the component as a json file. The component is converted from s4 to s3 to #' fit the jsonlite function #' @param x the component you wish to save #' @param saveName a name for the function you want to save #' @param savePath a path to a file t...
library(reshape2) library(plyr) library(car) require(gdata) require(ggplot2) require(longitudinalData) library(doBy) # Phon Prediction Processing scripts Timing <- read.csv("./EyeGaze/Timing.csv",header = T) PlaceCodes <- read.csv("./EyeGaze/PlaceCodes.csv",header = T) Demog <- read.csv("./EyeGaze/PhPrDemographics.csv...
/Scripts/PhPr_Summary.r
no_license
hughrabagliati/Phon-Prediction
R
false
false
5,723
r
library(reshape2) library(plyr) library(car) require(gdata) require(ggplot2) require(longitudinalData) library(doBy) # Phon Prediction Processing scripts Timing <- read.csv("./EyeGaze/Timing.csv",header = T) PlaceCodes <- read.csv("./EyeGaze/PlaceCodes.csv",header = T) Demog <- read.csv("./EyeGaze/PhPrDemographics.csv...
## Put comments here that give an overall description of what your ## functions do ## the assignment contains 2 functions the first one caches the result of the ## matrix inverse ## the second function check up the value of the matrix inverse if it's null ## then it generate the function inverse and pass it to the ca...
/cachematrix.R
no_license
0xtaha/ProgrammingAssignment2
R
false
false
1,376
r
## Put comments here that give an overall description of what your ## functions do ## the assignment contains 2 functions the first one caches the result of the ## matrix inverse ## the second function check up the value of the matrix inverse if it's null ## then it generate the function inverse and pass it to the ca...
# includes library(stringr) library(LaplacesDemon) # chooze needed size size1 <- 20 size2 <- 100 # iterations for approx ouliers probability iters <- 1000 # Gauss boxplot(rnorm(size1, 0, 1), rnorm(size2, 0, 1), horizontal = TRUE, outline = TRUE, names = c('n = 20', 'n = 100')) # Cauchy cauchy1 <- rcauchy(size1, 0, ...
/Lab3Script.R
no_license
NikitaS4/MS
R
false
false
6,332
r
# includes library(stringr) library(LaplacesDemon) # chooze needed size size1 <- 20 size2 <- 100 # iterations for approx ouliers probability iters <- 1000 # Gauss boxplot(rnorm(size1, 0, 1), rnorm(size2, 0, 1), horizontal = TRUE, outline = TRUE, names = c('n = 20', 'n = 100')) # Cauchy cauchy1 <- rcauchy(size1, 0, ...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { } ## Write a short comment describing this function cacheSolve <- function(x, ...) { ## Return a matrix that is the inverse of 'x'...
/cachematrix.R
no_license
michaelbsuo/ProgrammingAssignment2
R
false
false
326
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { } ## Write a short comment describing this function cacheSolve <- function(x, ...) { ## Return a matrix that is the inverse of 'x'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/error.R \name{error} \alias{error} \title{Forecast Error of the Direct Forecast} \usage{ error( df, lags, .H, .K, ic = BIC, .var = "all", .diff = FALSE, dev = "RMSE", wav = FALSE, xreg = NULL, ... ) } \arguments{ \item{d...
/man/error.Rd
permissive
nelson16silva/wavdrcast
R
false
true
2,744
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/error.R \name{error} \alias{error} \title{Forecast Error of the Direct Forecast} \usage{ error( df, lags, .H, .K, ic = BIC, .var = "all", .diff = FALSE, dev = "RMSE", wav = FALSE, xreg = NULL, ... ) } \arguments{ \item{d...
context("gdp data") test_that("gather_gdp_data() includes all files", { expect_true(nrow(gather_gdp_data(path = "../data-raw")) > 100 ) expect_equal(length(list.files(path = "../data-raw", pattern = "gdp-percapita\\.csv$")), length(unique(gather_gdp_data(path = ".....
/tests/test-data.R
permissive
gadepallivs/teaching-automation
R
false
false
1,011
r
context("gdp data") test_that("gather_gdp_data() includes all files", { expect_true(nrow(gather_gdp_data(path = "../data-raw")) > 100 ) expect_equal(length(list.files(path = "../data-raw", pattern = "gdp-percapita\\.csv$")), length(unique(gather_gdp_data(path = ".....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/WSInterface.R \name{GetScanNumberFromRT} \alias{GetScanNumberFromRT} \title{Get scan number for retention time} \usage{ GetScanNumberFromRT(FileName, RT, Cache = FALSE) } \arguments{ \item{FileName}{- Name of original raw mass spectrometry fi...
/man/GetScanNumberFromRT.Rd
permissive
Yaroslav-Lyutvinskiy/MZAccessR
R
false
true
828
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/WSInterface.R \name{GetScanNumberFromRT} \alias{GetScanNumberFromRT} \title{Get scan number for retention time} \usage{ GetScanNumberFromRT(FileName, RT, Cache = FALSE) } \arguments{ \item{FileName}{- Name of original raw mass spectrometry fi...
#' @title Build mutational profile plot #' #' @param data_frame input data.frame #' @param plot_palette Color palette to use #' @param file_type MAF, etc #' @param layers layer(s) to add to this plot object #' @param x_label label this plot? #' #' @description Builds a ggplot object showing individuals' mutational pr...
/R/waterfall_build_proportions.R
permissive
pradyumnasagar/GenVisR
R
false
false
1,890
r
#' @title Build mutational profile plot #' #' @param data_frame input data.frame #' @param plot_palette Color palette to use #' @param file_type MAF, etc #' @param layers layer(s) to add to this plot object #' @param x_label label this plot? #' #' @description Builds a ggplot object showing individuals' mutational pr...
## This "cachematrix" function consisits of two functions ## works through the following steps to calculate and cache ## the inverse of the matrix being called. ## Step 1: Initialize two objects--x and inv. ## Step 2: Define the function for objects of makeCacheMatrix(). ## Step 3: Create a new object by returin...
/cachematrix.R
no_license
George0805/WK3-ASSIGNMENT
R
false
false
1,534
r
## This "cachematrix" function consisits of two functions ## works through the following steps to calculate and cache ## the inverse of the matrix being called. ## Step 1: Initialize two objects--x and inv. ## Step 2: Define the function for objects of makeCacheMatrix(). ## Step 3: Create a new object by returin...
##### using h2o ##### # the script below does the following # preprocess data by rbinding train and test # combine.levels at 2% minlev # dummiVar all categorical variables # h2o ensemble using DEFAULT setting of glm, randomForest, gbm, deeplearning # using glm metalearner # create a submission csv for submitting to kag...
/Project4-MachineLearning/Team-1/h2o_default.R
no_license
vuchau/bootcamp007_project
R
false
false
6,449
r
##### using h2o ##### # the script below does the following # preprocess data by rbinding train and test # combine.levels at 2% minlev # dummiVar all categorical variables # h2o ensemble using DEFAULT setting of glm, randomForest, gbm, deeplearning # using glm metalearner # create a submission csv for submitting to kag...
# ------------------------------------------------------------------------------ # Purpose: The main purpose of this script is to get summary information about # the output from the fldmean Co3 analysis. It is set up to return a list about # the number of files for different ensemble/experiment/model combinations # ini...
/oceanpH/exec/methods_check/exploratory/visualize/co3_fldmean_output_info.R
no_license
JGCRI/OA_variability
R
false
false
5,435
r
# ------------------------------------------------------------------------------ # Purpose: The main purpose of this script is to get summary information about # the output from the fldmean Co3 analysis. It is set up to return a list about # the number of files for different ensemble/experiment/model combinations # ini...
#' Prepare a ggplot object to represent spectrogram data #' #' This function summarises spectrogram data (containing spectrograms of multiple individual), #' to show period on the `y` axis, time on the `x` axis and power on the `z` axis (*e.g.* as a colour). #' #' @inheritParams ggetho #' #'@examples #' \donttest{ #' l...
/R/ggspectro.R
no_license
rethomics/ggetho
R
false
false
3,059
r
#' Prepare a ggplot object to represent spectrogram data #' #' This function summarises spectrogram data (containing spectrograms of multiple individual), #' to show period on the `y` axis, time on the `x` axis and power on the `z` axis (*e.g.* as a colour). #' #' @inheritParams ggetho #' #'@examples #' \donttest{ #' l...
## Check out the JSON Data in these magic the gathering datasets datloc <- "/Users/bjr/GitHub/MTG/Data" library(jsonlite) ## If the data hasn't already been read in, read it in if(!exists("AllCards")) AllCards <- fromJSON(paste0(datloc,"/AllCards-x.json")) if(!exists("SetInfo")) SetInfo <- fromJSON(paste0(datloc,"/S...
/OpenMTGJSONSets.R
no_license
kingofkung/MTG
R
false
false
1,536
r
## Check out the JSON Data in these magic the gathering datasets datloc <- "/Users/bjr/GitHub/MTG/Data" library(jsonlite) ## If the data hasn't already been read in, read it in if(!exists("AllCards")) AllCards <- fromJSON(paste0(datloc,"/AllCards-x.json")) if(!exists("SetInfo")) SetInfo <- fromJSON(paste0(datloc,"/S...
#' Update model parameters via factor slice sampling #' #' @param model_params_est vector of model parameters on the estimation scale #' @param model_params_nat vector of model parameters on the natural scale #' @param n_expansions_mvnss vector for number of mvn slice sampler expansions #' @param n_contractions_mvnss v...
/stemr/R/mvn_slice_sampler.R
no_license
popoloni/stemr
R
false
false
25,475
r
#' Update model parameters via factor slice sampling #' #' @param model_params_est vector of model parameters on the estimation scale #' @param model_params_nat vector of model parameters on the natural scale #' @param n_expansions_mvnss vector for number of mvn slice sampler expansions #' @param n_contractions_mvnss v...
library(mri) ### Name: MW1 ### Title: Modified Adjusted Wallace Index 1 ### Aliases: MW1 MAW1 ### ** Examples # Examples from Cugmas and Ferligoj (2018) paper: data(examples) # EXAMPLES: A, B, C, D par(mfrow = c(4, 4)) for (i in 1:4){ U <- fromTableToVectors(examples[[i]])[,1] V <- fromTableToVectors(examples[[...
/data/genthat_extracted_code/mri/examples/MW1.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,232
r
library(mri) ### Name: MW1 ### Title: Modified Adjusted Wallace Index 1 ### Aliases: MW1 MAW1 ### ** Examples # Examples from Cugmas and Ferligoj (2018) paper: data(examples) # EXAMPLES: A, B, C, D par(mfrow = c(4, 4)) for (i in 1:4){ U <- fromTableToVectors(examples[[i]])[,1] V <- fromTableToVectors(examples[[...
# Basics R # Continuous distributions in R, splicing and mixing #install.packages("actuar") library(actuar) library(VGAM) ############################################################### # Example 1: gamma distribution # define a grid x <- seq(0,1000,by=1) # define a set of scale and shape parameters scaleparam <- se...
/ContinousDistn.R
no_license
wli289/R
R
false
false
5,782
r
# Basics R # Continuous distributions in R, splicing and mixing #install.packages("actuar") library(actuar) library(VGAM) ############################################################### # Example 1: gamma distribution # define a grid x <- seq(0,1000,by=1) # define a set of scale and shape parameters scaleparam <- se...
### SOCP OPTIMIZATION ### solve.socp.cplex <- function(rdata, nvar, gamma, lambda1, lambda2, groups = NULL, trace=trace){ ## complete observations rdata.complete <- rdata[rdata$status == 1,] rdata.cens <- rdata[rdata$status == 0,] ## censored observations # number of beta variables nb = 2*(ncol(rdata.com...
/R/optimization.R
no_license
hamzameer/SURVFIT
R
false
false
3,645
r
### SOCP OPTIMIZATION ### solve.socp.cplex <- function(rdata, nvar, gamma, lambda1, lambda2, groups = NULL, trace=trace){ ## complete observations rdata.complete <- rdata[rdata$status == 1,] rdata.cens <- rdata[rdata$status == 0,] ## censored observations # number of beta variables nb = 2*(ncol(rdata.com...
# converts a vector into a wave of the kernel density vec_wave <- function(vec, freq = 10,kernel="gaussian") { # kernel must use one of #"gaussian", "rectangular", "triangular", #"epanechnikov", "biweight", "cosine" or "optcosine" U<-density(vec,kernel=kernel) x<-U$x y<-U$y data.table::rbindlist( Map( ...
/R/vec_wave.R
no_license
JARS3N/x0
R
false
false
508
r
# converts a vector into a wave of the kernel density vec_wave <- function(vec, freq = 10,kernel="gaussian") { # kernel must use one of #"gaussian", "rectangular", "triangular", #"epanechnikov", "biweight", "cosine" or "optcosine" U<-density(vec,kernel=kernel) x<-U$x y<-U$y data.table::rbindlist( Map( ...
# generateWT.R # FBA and friends with R. # # Copyright (C) 2010-2014 Gabriel Gelius-Dietrich, Dpt. for Bioinformatics, # Institute for Informatics, Heinrich-Heine-University, Duesseldorf, Germany. # All right reserved. # Email: geliudie@uni-duesseldorf.de # # This file is part of sybil. # # Sybil is free softwa...
/sybil/R/generateWT.R
no_license
ingted/R-Examples
R
false
false
3,370
r
# generateWT.R # FBA and friends with R. # # Copyright (C) 2010-2014 Gabriel Gelius-Dietrich, Dpt. for Bioinformatics, # Institute for Informatics, Heinrich-Heine-University, Duesseldorf, Germany. # All right reserved. # Email: geliudie@uni-duesseldorf.de # # This file is part of sybil. # # Sybil is free softwa...
##makes a kinship matrix using the cov function. input is a matrix where the rows are individuals/populations and the columns are loci and the values are the allele frequency. make_k_complete <- function(myG){ scaleFactor = 1/sqrt(colMeans(myG) * (1 - colMeans(myG))) myS = matrix(0, nrow = dim(myG)[2], ncol = dim(myG...
/R/make_k_complete.R
no_license
emjosephs/qxtools
R
false
false
519
r
##makes a kinship matrix using the cov function. input is a matrix where the rows are individuals/populations and the columns are loci and the values are the allele frequency. make_k_complete <- function(myG){ scaleFactor = 1/sqrt(colMeans(myG) * (1 - colMeans(myG))) myS = matrix(0, nrow = dim(myG)[2], ncol = dim(myG...
library(sf) library(scales) library(leaflet) library(ggplot2) library(dplyr) library(tidyr) library(stringr) library(tibble) library(mapview) source("global.R") input <- tibble(estado="AP", mun_UI="Macapá", cargo=13, ano_UI=2016, turno_UI=1, ...
/server.R
no_license
cepesp/spatialLV
R
false
false
31,254
r
library(sf) library(scales) library(leaflet) library(ggplot2) library(dplyr) library(tidyr) library(stringr) library(tibble) library(mapview) source("global.R") input <- tibble(estado="AP", mun_UI="Macapá", cargo=13, ano_UI=2016, turno_UI=1, ...
source("packages.R") curveAlignment <- readRDS("curveAlignment.rds") auc.dt.list <- list() roc.dt.list <- list() err.dt.list <- list() roc.segs.list <- list() roc.win.err.list <- list() off.by <- 0.2 offset.prob <- curveAlignment$problems$prob.dir[2] for(offset in seq(-5, 5, by=off.by)){ print(offset) pred.dt <- ...
/figure-curveAlignment.R
no_license
JonathanHillman/max-generalized-auc-1
R
false
false
12,437
r
source("packages.R") curveAlignment <- readRDS("curveAlignment.rds") auc.dt.list <- list() roc.dt.list <- list() err.dt.list <- list() roc.segs.list <- list() roc.win.err.list <- list() off.by <- 0.2 offset.prob <- curveAlignment$problems$prob.dir[2] for(offset in seq(-5, 5, by=off.by)){ print(offset) pred.dt <- ...
load("data/variable.size.alpha.beta.RData") library(plyr) lim <- 1.21 some.stats <- subset(variable.size.alpha.beta$stats, -lim <= alpha & alpha <= lim & -lim <= beta & beta <= lim) stat.df <- ddply(some.stats,.(what), transform, mean.norm=(mean-min(mean))/(max(mean)-m...
/figure-variable-size-error-alpha-beta.R
no_license
tdhock/breakpointError-orig
R
false
false
2,093
r
load("data/variable.size.alpha.beta.RData") library(plyr) lim <- 1.21 some.stats <- subset(variable.size.alpha.beta$stats, -lim <= alpha & alpha <= lim & -lim <= beta & beta <= lim) stat.df <- ddply(some.stats,.(what), transform, mean.norm=(mean-min(mean))/(max(mean)-m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/event.R \name{include} \alias{include} \title{Paarweise beinhaltende Ereignisse?} \usage{ include(x_start, x_end, y_start, y_end, is_strict = FALSE) } \arguments{ \item{x_start}{Vektor mit den Startzeitpunkten von Ereignismenge \emph{x}.} \i...
/man/include.Rd
permissive
dnlvgt/rktiq
R
false
true
1,393
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/event.R \name{include} \alias{include} \title{Paarweise beinhaltende Ereignisse?} \usage{ include(x_start, x_end, y_start, y_end, is_strict = FALSE) } \arguments{ \item{x_start}{Vektor mit den Startzeitpunkten von Ereignismenge \emph{x}.} \i...
# HowTo: # 1. Open R in command line by opening the command line tool of your choice and typing: R # 2. Open source this file: source("corr-matrix.R") library(lattice) setwd("/home/abb/Documents/www2/vi-analytics/results/R/") # participation,annotations,equal,role,foreignclicks,rhythm,foreigncontributions # load da...
/results/R/corr-matrix.R
no_license
nise/vi-analytics
R
false
false
2,686
r
# HowTo: # 1. Open R in command line by opening the command line tool of your choice and typing: R # 2. Open source this file: source("corr-matrix.R") library(lattice) setwd("/home/abb/Documents/www2/vi-analytics/results/R/") # participation,annotations,equal,role,foreignclicks,rhythm,foreigncontributions # load da...
\name{nsyMatrix-class} \title{Symmetric Dense Nonzero-Pattern Matrices} \docType{class} \alias{nspMatrix-class} \alias{nsyMatrix-class} % \alias{coerce,nspMatrix,dspMatrix-method} \alias{coerce,nspMatrix,nsyMatrix-method} \alias{coerce,nspMatrix,ngeMatrix-method} \alias{coerce,nsyMatrix,dsyMatrix-method} \alias{coerce,...
/tags/0.999375-23/man/nsyMatrix-class.Rd
no_license
LTLA/Matrix
R
false
false
2,479
rd
\name{nsyMatrix-class} \title{Symmetric Dense Nonzero-Pattern Matrices} \docType{class} \alias{nspMatrix-class} \alias{nsyMatrix-class} % \alias{coerce,nspMatrix,dspMatrix-method} \alias{coerce,nspMatrix,nsyMatrix-method} \alias{coerce,nspMatrix,ngeMatrix-method} \alias{coerce,nsyMatrix,dsyMatrix-method} \alias{coerce,...
# Import the dplyr package library(dplyr) # Read the data file MechaCar_mpg <- read.csv("MechaCar_mpg.csv") # Get the summary of a linear regression summary(lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, MechaCar_mpg)) # Read the data file Suspension_Coil <- read.csv("Suspension_...
/whit.R
no_license
tylersojka/autos_R_us
R
false
false
1,305
r
# Import the dplyr package library(dplyr) # Read the data file MechaCar_mpg <- read.csv("MechaCar_mpg.csv") # Get the summary of a linear regression summary(lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD, MechaCar_mpg)) # Read the data file Suspension_Coil <- read.csv("Suspension_...
SailoR.Table <- function(UV,round_digits=2){ ##Index.Table function ##INPUT #UV: SailoR.Indices output ##OUTPUT #Table: is a data.frame with the SailoR.Indices information in table format #Function euclideanNorm<-function(a){ return(sqrt(a[1]*a[1]+a[2]*a[2])) ...
/R/SailoR.Table.R
no_license
cran/SailoR
R
false
false
2,391
r
SailoR.Table <- function(UV,round_digits=2){ ##Index.Table function ##INPUT #UV: SailoR.Indices output ##OUTPUT #Table: is a data.frame with the SailoR.Indices information in table format #Function euclideanNorm<-function(a){ return(sqrt(a[1]*a[1]+a[2]*a[2])) ...
################################################# # Analysis of stoichiometry duckweed experiment # # Conducted - Summer 2012 # # # # Final Area / Initial Area # ################################################# library(ggplot2...
/code/stoichiometry - final area divide initial area.R
no_license
mccannecology/experiments-III
R
false
false
13,852
r
################################################# # Analysis of stoichiometry duckweed experiment # # Conducted - Summer 2012 # # # # Final Area / Initial Area # ################################################# library(ggplot2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/General_methods.R \name{SOI} \alias{SOI} \alias{SOI,RHermesExp,numeric-method} \title{SOI} \usage{ SOI(struct, id) \S4method{SOI}{RHermesExp,numeric}(struct, id) } \arguments{ \item{struct}{An RHermesExp object} \item{id}{The number corresp...
/man/SOI.Rd
no_license
Bio-Twin/RHermes
R
false
true
810
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/General_methods.R \name{SOI} \alias{SOI} \alias{SOI,RHermesExp,numeric-method} \title{SOI} \usage{ SOI(struct, id) \S4method{SOI}{RHermesExp,numeric}(struct, id) } \arguments{ \item{struct}{An RHermesExp object} \item{id}{The number corresp...
#' Search CrossRef for Document Object Identifiers for Given Citations #' #' This function queries CrossRef to obtain DOIs for the entries in a given #' \code{BibEntry} object. #' @param bib a \code{BibEntry} object #' @return \code{bib} with any found DOI's added in the \sQuote{doi} field #' @importFrom jsonlite toJSO...
/R/GetDOIs.R
no_license
zeehio/RefManageR
R
false
false
4,110
r
#' Search CrossRef for Document Object Identifiers for Given Citations #' #' This function queries CrossRef to obtain DOIs for the entries in a given #' \code{BibEntry} object. #' @param bib a \code{BibEntry} object #' @return \code{bib} with any found DOI's added in the \sQuote{doi} field #' @importFrom jsonlite toJSO...
#' Submit a URL for scanning #' #' urlscan offers API access to submit URLs for researchers and other institutions. #' Using the API requires an API key. If you'd like to start submitting URLs via the #' API, contact them at <mailto:info@@urlscan.io> with a short description on how #' you're planning to use the API. Su...
/R/submit.R
no_license
vaginessa/urlscan
R
false
false
1,739
r
#' Submit a URL for scanning #' #' urlscan offers API access to submit URLs for researchers and other institutions. #' Using the API requires an API key. If you'd like to start submitting URLs via the #' API, contact them at <mailto:info@@urlscan.io> with a short description on how #' you're planning to use the API. Su...
# This script creates a list of lists which contains the @cite information for # each sWord; the information is divided into chunks that should correspond to # the chunks created for classification prediction PROVIDED THE CHUNK SIZE IS THE SAME. library(XML) library(stylo) source("code/corpusFunctions.R") input.dir <...
/R_files/code/citeDataForChunks.R
no_license
rgorman/author_attribution
R
false
false
1,593
r
# This script creates a list of lists which contains the @cite information for # each sWord; the information is divided into chunks that should correspond to # the chunks created for classification prediction PROVIDED THE CHUNK SIZE IS THE SAME. library(XML) library(stylo) source("code/corpusFunctions.R") input.dir <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modules.R \name{selectMod} \alias{selectMod} \title{Shiny Module Server for Geo Selection} \usage{ selectMod(input, output, session, leafmap, styleFalse = list(fillOpacity = 0.2, weight = 1, opacity = 0.4), styleTrue = list(fillOpacity = 0....
/man/selectMod.Rd
no_license
YairYakov/mapedit
R
false
true
813
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modules.R \name{selectMod} \alias{selectMod} \title{Shiny Module Server for Geo Selection} \usage{ selectMod(input, output, session, leafmap, styleFalse = list(fillOpacity = 0.2, weight = 1, opacity = 0.4), styleTrue = list(fillOpacity = 0....
porSexo<-function(parte,sexR,numTotF,numTotM){ q_s1<-NULL; if(dim(parte)[1]>0){ if(sexR){ # escolher de acordo com o sexRatio #escolher femeas numF<-numTotF; parteF<-parte[parte$SEXO=="F",]; if(dim(parteF)[1]>numF) q_s1_F<-sample(parteF$ID_BIO_PEIXES, numF, replace=F) e...
/inst/SampleOptim/sample_selection_function.R
permissive
nicholascarey/WKBIOPTIM4
R
false
false
8,674
r
porSexo<-function(parte,sexR,numTotF,numTotM){ q_s1<-NULL; if(dim(parte)[1]>0){ if(sexR){ # escolher de acordo com o sexRatio #escolher femeas numF<-numTotF; parteF<-parte[parte$SEXO=="F",]; if(dim(parteF)[1]>numF) q_s1_F<-sample(parteF$ID_BIO_PEIXES, numF, replace=F) e...
#'======================================================================================================================================== #' Project: CCAFS South Asia #' Subject: Create maps a #' Author: Michiel van Dijk #' Contact: michiel.vandijk@wur.nl #'=========================================================...
/Code/r_code/Map.R
no_license
ampalazzo/CCAFS_SouthAsia
R
false
false
5,788
r
#'======================================================================================================================================== #' Project: CCAFS South Asia #' Subject: Create maps a #' Author: Michiel van Dijk #' Contact: michiel.vandijk@wur.nl #'=========================================================...
## --------------------------- ## ## Script name: COVID-19 PubMed Analysis ## ## Purpose of script: Code to query PubMed for all articles related to COVID-19 ## ## Authors: Saumya Gurbani, Mohleen Kang, Jordan Kempker ## ## Date: 11/24/2020 ## ## Email: saumya.gurbani@emory.edu ## ## --------------------------- # Libr...
/script.R
no_license
sgurbani/covid19_pubmed
R
false
false
8,015
r
## --------------------------- ## ## Script name: COVID-19 PubMed Analysis ## ## Purpose of script: Code to query PubMed for all articles related to COVID-19 ## ## Authors: Saumya Gurbani, Mohleen Kang, Jordan Kempker ## ## Date: 11/24/2020 ## ## Email: saumya.gurbani@emory.edu ## ## --------------------------- # Libr...
context("MultiReporter") test_that("MultiReporter", { reports <- lapply(seq_len(3), function(x) ListReporter$new()) reporter <- MultiReporter$new(reporters = reports) test_file("context.r", reporter) dfs <- lapply(reports, function(x) x$get_summary()) dfs2 <- lapply(dfs, function(x) { x$user <- x$...
/tests/testthat/test-reporter-multi.r
no_license
kevinushey/testthat
R
false
false
435
r
context("MultiReporter") test_that("MultiReporter", { reports <- lapply(seq_len(3), function(x) ListReporter$new()) reporter <- MultiReporter$new(reporters = reports) test_file("context.r", reporter) dfs <- lapply(reports, function(x) x$get_summary()) dfs2 <- lapply(dfs, function(x) { x$user <- x$...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_use/json/code/r/medEXP__agegrps__employed__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
2,374
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_several_tracks_features.R \name{get_several_tracks_features} \alias{get_several_tracks_features} \title{Get Several Tracks Features} \usage{ get_several_tracks_features(tracks_df, access_token = DSpoty::get_spotify_access_token()...
/man/get_several_tracks_features.Rd
permissive
AlbertoAlmuinha/DSpoty
R
false
true
791
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_several_tracks_features.R \name{get_several_tracks_features} \alias{get_several_tracks_features} \title{Get Several Tracks Features} \usage{ get_several_tracks_features(tracks_df, access_token = DSpoty::get_spotify_access_token()...
translate <- function(dataset = NULL, content.field = NULL, content.vec = NULL, google.api.key = NULL, microsoft.client.id = NULL, microsoft.client.secret = NULL, source.lang = NULL, target.lang = NULL, RCurlOptions = NULL){ if(!is.null(RCurlOptions)){ options(RC...
/R/translate.R
no_license
jcostaexmba2006/translateR
R
false
false
1,872
r
translate <- function(dataset = NULL, content.field = NULL, content.vec = NULL, google.api.key = NULL, microsoft.client.id = NULL, microsoft.client.secret = NULL, source.lang = NULL, target.lang = NULL, RCurlOptions = NULL){ if(!is.null(RCurlOptions)){ options(RC...
\name{scoreproptest} \alias{scoreproptest} \title{Test of the Proportional Hazards Assumption Based on the Score Process} \description{ The function performs tests of the proportional hazards assumption for an \emph{individual} covariate or a \emph{global} test of proportionality in the Cox model for right censored sur...
/man/scoreproptest.Rd
no_license
cran/proptest
R
false
false
7,272
rd
\name{scoreproptest} \alias{scoreproptest} \title{Test of the Proportional Hazards Assumption Based on the Score Process} \description{ The function performs tests of the proportional hazards assumption for an \emph{individual} covariate or a \emph{global} test of proportionality in the Cox model for right censored sur...
survfitJM.jointModel <- function (object, newdata, idVar = "id", simulate = TRUE, survTimes = NULL, last.time = NULL, M = 200, CI.levels = c(0.025, 0.975), scale = 1.6, ...) { if (!inherits(object, "jointModel")) stop("Use only with 'jointModel' objects.\n") if (object$CompRisk) ...
/R/survfitJM.jointModel.R
no_license
cran/JM
R
false
false
11,824
r
survfitJM.jointModel <- function (object, newdata, idVar = "id", simulate = TRUE, survTimes = NULL, last.time = NULL, M = 200, CI.levels = c(0.025, 0.975), scale = 1.6, ...) { if (!inherits(object, "jointModel")) stop("Use only with 'jointModel' objects.\n") if (object$CompRisk) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make.visitSequence.R \name{make.visitSequence} \alias{make.visitSequence} \title{Creates a \code{visitSequence} argument} \usage{ make.visitSequence(data = NULL, blocks = NULL) } \value{ Vector containing block names } \description{ This help...
/man/make.visitSequence.Rd
no_license
amices/dsMice
R
false
true
568
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make.visitSequence.R \name{make.visitSequence} \alias{make.visitSequence} \title{Creates a \code{visitSequence} argument} \usage{ make.visitSequence(data = NULL, blocks = NULL) } \value{ Vector containing block names } \description{ This help...
test_that("add XML namespace", { object <- list( Foo = list( Bar = list( list( Baz = list( Qux = 123, Quux = 456 ) ) ) ) ) result <- add_xmlns(object, "https://foo/") expect_equal(attr(result, "xmlns"), "https://foo/") expect_equa...
/paws.common/tests/testthat/test_xmlutil.R
permissive
paws-r/paws
R
false
false
2,028
r
test_that("add XML namespace", { object <- list( Foo = list( Bar = list( list( Baz = list( Qux = 123, Quux = 456 ) ) ) ) ) result <- add_xmlns(object, "https://foo/") expect_equal(attr(result, "xmlns"), "https://foo/") expect_equa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reg-aggregate.R \docType{data} \name{region_relate} \alias{region_relate} \title{Relation table for states by region} \format{ A data frame with 10 rows and 2 variables: \describe{ \item{state}{2-character state abbreviation} \item{region...
/man/region_relate.Rd
no_license
southwick-associates/sadashreg
R
false
true
535
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/reg-aggregate.R \docType{data} \name{region_relate} \alias{region_relate} \title{Relation table for states by region} \format{ A data frame with 10 rows and 2 variables: \describe{ \item{state}{2-character state abbreviation} \item{region...
# res load("data/EstN1000n100.Rdata") # g0 g1 g2 estimates Delta dir = "data/exp/" # or dir ="data/" filenames=list.files(dir) # or filenames=list.files("data/") res=as.data.frame(do.call(rbind,lapply(c(100,200,500),function(x){ do.call(rbind,lapply(filenames[grep(paste0("n",x,"_"),filenames)],function(name){ load(...
/SimulationBayDRwithDR/GetPlotForThesis.R
no_license
YunlongNie/SimProject
R
false
false
2,003
r
# res load("data/EstN1000n100.Rdata") # g0 g1 g2 estimates Delta dir = "data/exp/" # or dir ="data/" filenames=list.files(dir) # or filenames=list.files("data/") res=as.data.frame(do.call(rbind,lapply(c(100,200,500),function(x){ do.call(rbind,lapply(filenames[grep(paste0("n",x,"_"),filenames)],function(name){ load(...
lme_mass_LR<-function(statsfull,statsred,q) { # -------------------------------------------------------------------------- if (exists("nargin") == TRUE) { if (nargin < 3) { stop(cat("Error: Too Few Inputs")) } } # ------------------------------------...
/R/lme_mass_LR.R
permissive
kdiers/fslmer
R
false
false
587
r
lme_mass_LR<-function(statsfull,statsred,q) { # -------------------------------------------------------------------------- if (exists("nargin") == TRUE) { if (nargin < 3) { stop(cat("Error: Too Few Inputs")) } } # ------------------------------------...
#Example 2, section 4.2, page 249 #Let L: R3->R2 be a linear transformation for which we know that, L(1,0,0)=(2,-1) , L(0,1,0)=(3,1) , L(0,0,1)=(-1,2); Find L(-3,4,2) : Li<-c(2,-1) Lj<-c(3,1) Lk<-c(-1,2) #we know L(-3,4,2)=L(-3i+4j+2k) ,then L<- c(-3,4,2) L<- -3*Li + 4*Lj + 2*Lk # value of vector L is: L
/ashiq/R codes/chapter 4/example2_sec4_3.R
no_license
sahridhaya/BitPlease
R
false
false
308
r
#Example 2, section 4.2, page 249 #Let L: R3->R2 be a linear transformation for which we know that, L(1,0,0)=(2,-1) , L(0,1,0)=(3,1) , L(0,0,1)=(-1,2); Find L(-3,4,2) : Li<-c(2,-1) Lj<-c(3,1) Lk<-c(-1,2) #we know L(-3,4,2)=L(-3i+4j+2k) ,then L<- c(-3,4,2) L<- -3*Li + 4*Lj + 2*Lk # value of vector L is: L
require(zoo) require(xts) require(splines) #interpolate the data to minute intervalls to set all loggers to the same starting point #create empty vector of minute data for the same timeframe as temp data #assume linearity and approximate values head(list_second_iButton_corr) #Create time sequence by minute #loop thr...
/Logger/2020/start_time_correction_for_2nd_list.R
no_license
DanaLooschelders/Urban_Heat_Island_Muenster
R
false
false
2,723
r
require(zoo) require(xts) require(splines) #interpolate the data to minute intervalls to set all loggers to the same starting point #create empty vector of minute data for the same timeframe as temp data #assume linearity and approximate values head(list_second_iButton_corr) #Create time sequence by minute #loop thr...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/NSCLC.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.6,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/NSCLC/NSCLC_067.txt',append=TRUE) p...
/Model/EN/AvgRank/NSCLC/NSCLC_067.R
no_license
leon1003/QSMART
R
false
false
348
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/NSCLC.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.6,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/NSCLC/NSCLC_067.txt',append=TRUE) p...
if (!exists('hist.ldd')){ source('Code_1_SETUP/2_1_EDA_Univariate_V2.R') } ## Notation: Plots are stored in PLOTS.<indicator> ##============================================================================## #### GROUP CLASSES #### ##========================...
/Dissertation Project 1; AMR/Code_1_SETUP/2_2_1_EDA_Bivariate_ClassGr.R
no_license
S1889112/EdinburghMSc
R
false
false
11,660
r
if (!exists('hist.ldd')){ source('Code_1_SETUP/2_1_EDA_Univariate_V2.R') } ## Notation: Plots are stored in PLOTS.<indicator> ##============================================================================## #### GROUP CLASSES #### ##========================...
## cachematrix.R is a pair of functions used to store a numeric invertible matrix and cache its inverse ## makeCacheMatrix creates a special "matrix", which is really a list used to ## set the value of the matrix, get the value of the matrix, ## set the inverse of the matrix, and get the inverse of the matrix makeCa...
/cachematrix.R
no_license
strangerhythm/ProgrammingAssignment2
R
false
false
1,274
r
## cachematrix.R is a pair of functions used to store a numeric invertible matrix and cache its inverse ## makeCacheMatrix creates a special "matrix", which is really a list used to ## set the value of the matrix, get the value of the matrix, ## set the inverse of the matrix, and get the inverse of the matrix makeCa...
# The MIT License (MIT) # Copyright (c) 2017 Louise AC Millard, MRC Integrative Epidemiology Unit, University of Bristol # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, ...
/WAS/phenomeScan.r
permissive
konradjk/PHESANT
R
false
false
8,576
r
# The MIT License (MIT) # Copyright (c) 2017 Louise AC Millard, MRC Integrative Epidemiology Unit, University of Bristol # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, ...
# Stephanie.Clay@dfo-mpo.gc.ca # 18 Dec 2020 # Use satellite Rrs L2 files to create subsetted # chlorophyll files using new chlorophyll-a algorithms. # CHL_POLY4 requires: # optimal coefficients # vector of standard wavelengths for the selected sensor (options below) # CHL_EOF requies: # vector of ...
/03b_create_new_chl_files_L2.R
no_license
cilori/panCan_processing
R
false
false
15,318
r
# Stephanie.Clay@dfo-mpo.gc.ca # 18 Dec 2020 # Use satellite Rrs L2 files to create subsetted # chlorophyll files using new chlorophyll-a algorithms. # CHL_POLY4 requires: # optimal coefficients # vector of standard wavelengths for the selected sensor (options below) # CHL_EOF requies: # vector of ...
# Complete the chained command below so that we are # selecting the id, name, and sex column from students4 # and storing the result in student_info. # student_info <- students4 %>% select(id,name ,sex ) %>% print
/Data-Science/3_Getting_and_Cleaning_Data/Lab/Swirl_Programming/Getting_and_Cleaning_data/Tidying_Data_with_tidyr/script5.R
permissive
shanky0507/Coursera-John-Hopkins
R
false
false
218
r
# Complete the chained command below so that we are # selecting the id, name, and sex column from students4 # and storing the result in student_info. # student_info <- students4 %>% select(id,name ,sex ) %>% print
#load librray library(igraph) #make a edge list of all the connected edges el <- cbind(c("a","a","a","b","e"),c("b","c","d","e","c")) #mkae a igraph object g <- graph.edgelist(as.matrix(el),directed = F) #print i graph object g #UN-- 5 5 -- first 5 is no. of nodes second 5 is no of edges #plot g from graph visualizatio...
/Network_analysis.R
no_license
Niteshiya/Network_Analysis_R
R
false
false
2,847
r
#load librray library(igraph) #make a edge list of all the connected edges el <- cbind(c("a","a","a","b","e"),c("b","c","d","e","c")) #mkae a igraph object g <- graph.edgelist(as.matrix(el),directed = F) #print i graph object g #UN-- 5 5 -- first 5 is no. of nodes second 5 is no of edges #plot g from graph visualizatio...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { ## define the argument with default mode of "matrix" inv <- NULL ## initialize inv as NULL; will hold value o...
/cachematrix.R
no_license
khatratanvir/ProgrammingAssignment2
R
false
false
1,489
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { ## define the argument with default mode of "matrix" inv <- NULL ## initialize inv as NULL; will hold value o...
## This R script subsets and cleans a "UCI HAR Dataset". ## Download the zip file into "data" directory under your working directy, and unzip it if (!file.exists("./data")) {dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl, ...
/run_analysis.R
no_license
cqincoding/Getdata-012-Project
R
false
false
2,665
r
## This R script subsets and cleans a "UCI HAR Dataset". ## Download the zip file into "data" directory under your working directy, and unzip it if (!file.exists("./data")) {dir.create("./data")} fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" download.file(fileUrl, ...
#cardNameInput <- "Æthersnipe" getCardImg <- function(cardNameInput) { #check if exists fixedName <- stringi::stri_trans_general(cardNameInput, "Latin-ASCII") if (!file.exists(paste0("../common_data/", cardNameInput, ".jpg"))) { #cardNameInput <- "Vampire Aristocrat" urlName <- gsub(" ", "+", x = cardN...
/scripts/solution_functions/getCardImg.R
no_license
Laurigit/mstat
R
false
false
964
r
#cardNameInput <- "Æthersnipe" getCardImg <- function(cardNameInput) { #check if exists fixedName <- stringi::stri_trans_general(cardNameInput, "Latin-ASCII") if (!file.exists(paste0("../common_data/", cardNameInput, ".jpg"))) { #cardNameInput <- "Vampire Aristocrat" urlName <- gsub(" ", "+", x = cardN...
## EXERCISES 3 ## library(microbenchmark) library(ggplot2) library(Matrix) source('hw3functions.R') # read in data data = read.csv('wdbc.csv', header = FALSE,row.names = 1) # construcing y and X (scaling X and adding in intercept column) ya = as.character(data[,1]) y = rep(0,length(ya)) y[which(ya=='M')] = 1 X = as.m...
/exercisesdave/exercises3/hw3code.R
no_license
dpuelz/SDS385
R
false
false
1,684
r
## EXERCISES 3 ## library(microbenchmark) library(ggplot2) library(Matrix) source('hw3functions.R') # read in data data = read.csv('wdbc.csv', header = FALSE,row.names = 1) # construcing y and X (scaling X and adding in intercept column) ya = as.character(data[,1]) y = rep(0,length(ya)) y[which(ya=='M')] = 1 X = as.m...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/laplace_distribution.R \name{Laplace} \alias{Laplace} \alias{dlaplace} \alias{plaplace} \alias{rlaplace} \title{The Laplace distribution} \usage{ dlaplace(x, mean, scale) plaplace(q, mean, scale) rlaplace(n, mean, scale) } \argument...
/man/laplace_distribution.Rd
no_license
mbedward/walkies
R
false
false
654
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/laplace_distribution.R \name{Laplace} \alias{Laplace} \alias{dlaplace} \alias{plaplace} \alias{rlaplace} \title{The Laplace distribution} \usage{ dlaplace(x, mean, scale) plaplace(q, mean, scale) rlaplace(n, mean, scale) } \argument...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/system.r \name{system_check} \alias{system_check} \title{Run a system command and check if it succeeds.} \usage{ system_check(cmd, args = character(), env_vars = character(), path = ".", quiet = FALSE, throw = TRUE, ...) } \arguments{ \item...
/man/system_check.Rd
no_license
msinnadu/devtools
R
false
true
937
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/system.r \name{system_check} \alias{system_check} \title{Run a system command and check if it succeeds.} \usage{ system_check(cmd, args = character(), env_vars = character(), path = ".", quiet = FALSE, throw = TRUE, ...) } \arguments{ \item...
# Test suite for get_pxweb_metadata() context("get_pxweb_metadata.R") test_that(desc="baseURL 1",{ skip_on_cran() api_tests_get_pxweb_metadata_baseURL <- list( list(baseURL = paste0(pxweb_api$new("api.scb.se")$base_url(language = "sv"), "/ssd"), test_dims = c(22, 4)), list(baseURL = paste0...
/tests/testthat/test-get_pxweb_metadata.R
no_license
bowerth/pxweb
R
false
false
1,613
r
# Test suite for get_pxweb_metadata() context("get_pxweb_metadata.R") test_that(desc="baseURL 1",{ skip_on_cran() api_tests_get_pxweb_metadata_baseURL <- list( list(baseURL = paste0(pxweb_api$new("api.scb.se")$base_url(language = "sv"), "/ssd"), test_dims = c(22, 4)), list(baseURL = paste0...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jlst.R \name{jlssc} \alias{jlssc} \title{jlssc} \usage{ jlssc(y, x, covar = NULL, type = 1) } \arguments{ \item{y}{vector of outcome values.} \item{x}{vector of exposure values.} \item{covar}{a data.frame of covariates.} \it...
/man/jlssc.Rd
no_license
mcgml/jlst
R
false
true
907
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/jlst.R \name{jlssc} \alias{jlssc} \title{jlssc} \usage{ jlssc(y, x, covar = NULL, type = 1) } \arguments{ \item{y}{vector of outcome values.} \item{x}{vector of exposure values.} \item{covar}{a data.frame of covariates.} \it...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scrape_statcast_savant_batter.R \name{scrape_statcast_savant_batter} \alias{scrape_statcast_savant_batter} \title{Query Statcast and PITCHf/x Data for Batters from baseballsavant.mlb.com} \usage{ scrape_statcast_savant_batter(start_date, end_...
/man/scrape_statcast_savant_batter.Rd
no_license
keberwein/baseballr
R
false
true
969
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/scrape_statcast_savant_batter.R \name{scrape_statcast_savant_batter} \alias{scrape_statcast_savant_batter} \title{Query Statcast and PITCHf/x Data for Batters from baseballsavant.mlb.com} \usage{ scrape_statcast_savant_batter(start_date, end_...
## Enter names of counts and interviews data files (either SAS or CSV files) CNTS_FILE <- "wshcnts.sas7bdat" INTS_FILE <- "wshints.sas7bdat" ## Enter creel location must be "ash","byf","cpw","lsb","rdc","sax","sup", "wsh" LOCATION <- "wsh" ## Enter start and end dates (must be two digits mon/day and four-digit year) ST...
/zzzOgleOnly/zzzOld/LS_OPEN_2014_BEFORE ACCESS/data/wsh_2014_info.R
no_license
droglenc/WiDNR_Creel
R
false
false
523
r
## Enter names of counts and interviews data files (either SAS or CSV files) CNTS_FILE <- "wshcnts.sas7bdat" INTS_FILE <- "wshints.sas7bdat" ## Enter creel location must be "ash","byf","cpw","lsb","rdc","sax","sup", "wsh" LOCATION <- "wsh" ## Enter start and end dates (must be two digits mon/day and four-digit year) ST...