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/assign_parameters.R \name{assign_parameters.storage} \alias{assign_parameters.storage} \title{conversion helper} \usage{ \method{assign_parameters}{storage}(x, infiltration = NULL, subcatchment = NULL, subcatchment_typologies = NULL, cond...
/man/assign_parameters.storage.Rd
no_license
SumathyS/swmmr
R
false
true
424
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assign_parameters.R \name{assign_parameters.storage} \alias{assign_parameters.storage} \title{conversion helper} \usage{ \method{assign_parameters}{storage}(x, infiltration = NULL, subcatchment = NULL, subcatchment_typologies = NULL, cond...
install.packages("httr") install.packages("jsonlite") library(httr) library(jsonlite) #require() print("hello") endpoint <- "https://api.openweathermap.org/data/2.5/weather?q=Warszawa&appid=1765994b51ed366c506d5dc0d0b07b77" getWeather <- GET(endpoint) weatherText<- content(getWeather,"text") weatherJson<- fromJSON(wea...
/firstscript.R
no_license
bartw21/rzajecia1
R
false
false
399
r
install.packages("httr") install.packages("jsonlite") library(httr) library(jsonlite) #require() print("hello") endpoint <- "https://api.openweathermap.org/data/2.5/weather?q=Warszawa&appid=1765994b51ed366c506d5dc0d0b07b77" getWeather <- GET(endpoint) weatherText<- content(getWeather,"text") weatherJson<- fromJSON(wea...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimension_reduction.R \name{isomds} \alias{isomds} \title{Conveinience function to run isoMDS on a SingleCellExperiment object.} \usage{ isomds(object, exprs_values, features = NULL, method = "spearman", ...) } \arguments{ \item{object}{A Sin...
/man/isomds.Rd
permissive
jenzopr/singlecellutils
R
false
true
980
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimension_reduction.R \name{isomds} \alias{isomds} \title{Conveinience function to run isoMDS on a SingleCellExperiment object.} \usage{ isomds(object, exprs_values, features = NULL, method = "spearman", ...) } \arguments{ \item{object}{A Sin...
library(shiny) fillmap<-function(map, figtitle, y , n.col, bk="e", cuts,legendtxt="", leg.loc="bottomright",leg.cex=1.5,main.cex=1.5,main.line=-2,leg.horiz=F,map.lty=1){ if(bk=="q"){if (min(y)<min(y) | max(y)>max(y)){ print("The minimum or maximum values of y fall outside of those for ...
/App.R
no_license
sethticles/UNCW_Arrests
R
false
false
8,404
r
library(shiny) fillmap<-function(map, figtitle, y , n.col, bk="e", cuts,legendtxt="", leg.loc="bottomright",leg.cex=1.5,main.cex=1.5,main.line=-2,leg.horiz=F,map.lty=1){ if(bk=="q"){if (min(y)<min(y) | max(y)>max(y)){ print("The minimum or maximum values of y fall outside of those for ...
# lib.r ProbMetab version="1.0.0" # Author: Misharl Monsoor ABIMS TEAM mmonsoor@sb-roscoff.fr # Contributors: Yann Guitton and Jean-francois Martin ##Main probmetab function launch by the Galaxy ProbMetab wrapper probmetab = function(xa, xaP, xaN, variableMetadata, variableMetadataP, variableMetadataN, listArguments)...
/galaxy/probmetab/lib.r
no_license
workflow4metabolomics/probmetab
R
false
false
17,623
r
# lib.r ProbMetab version="1.0.0" # Author: Misharl Monsoor ABIMS TEAM mmonsoor@sb-roscoff.fr # Contributors: Yann Guitton and Jean-francois Martin ##Main probmetab function launch by the Galaxy ProbMetab wrapper probmetab = function(xa, xaP, xaN, variableMetadata, variableMetadataP, variableMetadataN, listArguments)...
# bind global variables utils::globalVariables(c("xn", "vld", "conf.low", "conf.high")) #' @importFrom dplyr filter sjp.emm <- function(fit, swapPredictors = FALSE, plevel = 0.05, title = NULL, geom.colors = "Set1", ...
/sjPlot/R/sjPlotAncovaLSMeans.R
no_license
ingted/R-Examples
R
false
false
30,299
r
# bind global variables utils::globalVariables(c("xn", "vld", "conf.low", "conf.high")) #' @importFrom dplyr filter sjp.emm <- function(fit, swapPredictors = FALSE, plevel = 0.05, title = NULL, geom.colors = "Set1", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/thesis.R \name{thesis_epub} \alias{thesis_epub} \title{Creates an R Markdown epub Thesis document} \usage{ thesis_epub(...) } \arguments{ \item{...}{additional arguments passed to the bookdown::epub_book function} } \value{ A ebook version of...
/man/thesis_epub.Rd
permissive
dr-harper/sotonthesis
R
false
true
536
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/thesis.R \name{thesis_epub} \alias{thesis_epub} \title{Creates an R Markdown epub Thesis document} \usage{ thesis_epub(...) } \arguments{ \item{...}{additional arguments passed to the bookdown::epub_book function} } \value{ A ebook version of...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/build.R \name{build_pkg} \alias{build_pkg} \alias{get_pkg_tar_ball} \title{Build R tar gz file} \usage{ build_pkg() get_pkg_tar_ball() } \description{ Builds and sets the PKG_TARBALL & PKG_TARBALL_PATH variables. }
/inst/good_pkg/man/build_pkg.Rd
no_license
jumpingrivers/inteRgrate
R
false
true
294
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/build.R \name{build_pkg} \alias{build_pkg} \alias{get_pkg_tar_ball} \title{Build R tar gz file} \usage{ build_pkg() get_pkg_tar_ball() } \description{ Builds and sets the PKG_TARBALL & PKG_TARBALL_PATH variables. }
# modification on git from copied files #setMethod("dim", "segMeth", function(x) { # nrows <- c(nrow(x@Cs), nrow(x@Ts), length(x@coordinates), nrow(x@locLikelihoods)) # ncols <- c(length(x@replicates), ncol(x@Cs), ncol(x@Ts)) # if(any(nrows != 0)) nrow <- nrows[nrows != 0][1] else nrow <- 0 # if(any(ncols != 0)) nc...
/R/segMeth-accessors.R
no_license
tjh48/segmentSeq
R
false
false
1,188
r
# modification on git from copied files #setMethod("dim", "segMeth", function(x) { # nrows <- c(nrow(x@Cs), nrow(x@Ts), length(x@coordinates), nrow(x@locLikelihoods)) # ncols <- c(length(x@replicates), ncol(x@Cs), ncol(x@Ts)) # if(any(nrows != 0)) nrow <- nrows[nrows != 0][1] else nrow <- 0 # if(any(ncols != 0)) nc...
library(RODBC) library(MASS) channel <- odbcDriverConnect('driver={SQL Server};server=79.175.181.141,11296;database=AffiliateNetwork;uid=mohammadi;pwd=123456789;') df_total <- data.frame() sleep_for_a_minute <- function() { Sys.sleep(60) } start_time <- Sys.time() for (n in 1:100){ offers <- sqlQuery(channel...
/Deema2.R
no_license
sinnsalagrim/R
R
false
false
2,111
r
library(RODBC) library(MASS) channel <- odbcDriverConnect('driver={SQL Server};server=79.175.181.141,11296;database=AffiliateNetwork;uid=mohammadi;pwd=123456789;') df_total <- data.frame() sleep_for_a_minute <- function() { Sys.sleep(60) } start_time <- Sys.time() for (n in 1:100){ offers <- sqlQuery(channel...
#################################################################################### ### Calcular área de um polígono shp ### Dados de uso do solo: ANA 2016 ### Por: Danielle de Oliveira Moreira ### criado em: 11/06/2020 ### Atualizado em: ###############################################################################...
/R/00_calcular_area_poligono.R
no_license
daphnespier/uso_ANA
R
false
false
885
r
#################################################################################### ### Calcular área de um polígono shp ### Dados de uso do solo: ANA 2016 ### Por: Danielle de Oliveira Moreira ### criado em: 11/06/2020 ### Atualizado em: ###############################################################################...
#' kmr_read_tab #' #' Read a file in tab format. #' #' @param afile file name (obligatory extension .tab) #' @import vroom #' #' @return data.frame with kmers as DNAStringSet #' @export #' @family kmer_core #' @examples #' if (interactive()) { #' #' fa <- system.file("testdata/phix174_m-pe_w_err_5k_30q.fastq.gz", #...
/R/kmr_read_tab.R
no_license
c5sire/kmerize
R
false
false
759
r
#' kmr_read_tab #' #' Read a file in tab format. #' #' @param afile file name (obligatory extension .tab) #' @import vroom #' #' @return data.frame with kmers as DNAStringSet #' @export #' @family kmer_core #' @examples #' if (interactive()) { #' #' fa <- system.file("testdata/phix174_m-pe_w_err_5k_30q.fastq.gz", #...
error_suggestions <- list( use_new_episodes = list( text = c("You can use the :new_episodes record mode to allow vcr to", "record this new request to the existing cassette"), url = "https://books.ropensci.org/http-testing/record-modes.html#new_episodes" ), delete_cassette_for_once = list( text =...
/R/error_suggestions.R
permissive
ropensci/vcr
R
false
false
3,048
r
error_suggestions <- list( use_new_episodes = list( text = c("You can use the :new_episodes record mode to allow vcr to", "record this new request to the existing cassette"), url = "https://books.ropensci.org/http-testing/record-modes.html#new_episodes" ), delete_cassette_for_once = list( text =...
#'@title Create a Trie #'@description \code{create_trie} creates a trie (a key-value store optimised #'for matching) out of a provided character vector of keys, and a numeric, #'character, logical or integer vector of values (both the same length). #' #'@param keys a character vector containing the keys for the trie. #...
/R/create.R
permissive
okeyes-r7/triebeard
R
false
false
1,810
r
#'@title Create a Trie #'@description \code{create_trie} creates a trie (a key-value store optimised #'for matching) out of a provided character vector of keys, and a numeric, #'character, logical or integer vector of values (both the same length). #' #'@param keys a character vector containing the keys for the trie. #...
# devtools::load_all("/Users/ricard/mofa/MOFAtools") devtools::load_all("/homes/ricard/mofa/MOFAtools") library(GFA) library(data.table) library(purrr) data("CLL_data") CLL_data <- lapply(CLL_data,t) CLL_data_norm <- normalizeData(CLL_data, type="center") opts <- getDefaultOpts() ptm <- proc.time() gfa_model_tmp <-...
/GFA_iCluster_comparisons/CLL/run_gfa.R
no_license
tqh003/MOFA_analysis
R
false
false
2,199
r
# devtools::load_all("/Users/ricard/mofa/MOFAtools") devtools::load_all("/homes/ricard/mofa/MOFAtools") library(GFA) library(data.table) library(purrr) data("CLL_data") CLL_data <- lapply(CLL_data,t) CLL_data_norm <- normalizeData(CLL_data, type="center") opts <- getDefaultOpts() ptm <- proc.time() gfa_model_tmp <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getTriosDfFromCsv.R \name{getTriosDfFromCsv} \alias{getTriosDfFromCsv} \title{Creates a dataframe with a set of potential parents with one row for each offspring from CSV file.} \usage{ getTriosDfFromCsv(triosFile) } \arguments{ \item{triosFi...
/man/getTriosDfFromCsv.Rd
permissive
rmsharp/parentfindr
R
false
true
779
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getTriosDfFromCsv.R \name{getTriosDfFromCsv} \alias{getTriosDfFromCsv} \title{Creates a dataframe with a set of potential parents with one row for each offspring from CSV file.} \usage{ getTriosDfFromCsv(triosFile) } \arguments{ \item{triosFi...
#' @description #' `new_pillar_shaft_simple()` provides an implementation of the `pillar_shaft` #' class suitable for output that has a fixed formatting, which will be #' truncated with a continuation character (ellipsis or `~`) if it doesn't fit #' the available width. #' By default, the required width is computed fro...
/R/shaft-simple.R
permissive
markfairbanks/pillar
R
false
false
1,701
r
#' @description #' `new_pillar_shaft_simple()` provides an implementation of the `pillar_shaft` #' class suitable for output that has a fixed formatting, which will be #' truncated with a continuation character (ellipsis or `~`) if it doesn't fit #' the available width. #' By default, the required width is computed fro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/npCBPS.R \name{npCBPS} \alias{npCBPS} \title{Non-Parametric Covariate Balancing Propensity Score (npCBPS) Estimation} \usage{ npCBPS(formula, data, na.action, corprior = 0.01, print.level = 0, ...) } \arguments{ \item{formula}{An obj...
/man/npCBPS.Rd
no_license
cran/CBPS
R
false
true
4,780
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/npCBPS.R \name{npCBPS} \alias{npCBPS} \title{Non-Parametric Covariate Balancing Propensity Score (npCBPS) Estimation} \usage{ npCBPS(formula, data, na.action, corprior = 0.01, print.level = 0, ...) } \arguments{ \item{formula}{An obj...
library(tximport) library(DESeq2) library(tidyverse) organism <- "ARABIDOPSIS" work_dir="/path/to/GLDS-37/processing_scripts/04-05-DESeq2_NormCounts_DGE" counts_dir="/path/to/GLDS-37/03-RSEM_Counts" norm_output="/path/to/GLDS-37/04-DESeq2_NormCounts" DGE_output="/path/to/GLDS-37/05-DESeq2_DGE" setwd(file.path(work_d...
/RNAseq/GLDS_Processing_Scripts/GLDS-37/04-05-DESeq2_NormCounts_DGE/deseq2_normcounts_noERCC_DGE_vis.R
no_license
AstrobioMike/GeneLab_Data_Processing
R
false
false
8,995
r
library(tximport) library(DESeq2) library(tidyverse) organism <- "ARABIDOPSIS" work_dir="/path/to/GLDS-37/processing_scripts/04-05-DESeq2_NormCounts_DGE" counts_dir="/path/to/GLDS-37/03-RSEM_Counts" norm_output="/path/to/GLDS-37/04-DESeq2_NormCounts" DGE_output="/path/to/GLDS-37/05-DESeq2_DGE" setwd(file.path(work_d...
#My first program in R Programming myString <- "Hello World" print(myString) mean_values <- mean(1:50) mean_values
/HelloWorld.R
no_license
Ram-chundru/RStudioHelloWorld
R
false
false
116
r
#My first program in R Programming myString <- "Hello World" print(myString) mean_values <- mean(1:50) mean_values
library(shiny) library(leaflet) # Define UI for application that draws a histogram shinyUI(pageWithSidebar( headerPanel("City Analytics"), sidebarPanel( # First Sidebar conditionalPanel(condition="input.tabselected==1", h4("City"), selectIn...
/Application/ui.R
no_license
LouisDeveze/R-Project
R
false
false
2,576
r
library(shiny) library(leaflet) # Define UI for application that draws a histogram shinyUI(pageWithSidebar( headerPanel("City Analytics"), sidebarPanel( # First Sidebar conditionalPanel(condition="input.tabselected==1", h4("City"), selectIn...
meta <- function(y, v, x, data, intercept.constraints=NULL, coef.constraints=NULL, RE.constraints=NULL, RE.startvalues=0.1, RE.lbound=1e-10, intervals.type=c("z", "LB"), I2="I2q", R2=TRUE, model.name="Meta analysis with ML", suppressWarnings=TRUE, sile...
/R/meta.R
no_license
mikewlcheung/metasem
R
false
false
10,992
r
meta <- function(y, v, x, data, intercept.constraints=NULL, coef.constraints=NULL, RE.constraints=NULL, RE.startvalues=0.1, RE.lbound=1e-10, intervals.type=c("z", "LB"), I2="I2q", R2=TRUE, model.name="Meta analysis with ML", suppressWarnings=TRUE, sile...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_functions.R \name{get_perm_source_types} \alias{get_perm_source_types} \title{extract source types} \usage{ get_perm_source_types(pv) } \arguments{ \item{pv}{[\code{character(1)}]\cr the name ID of the pollyvote object, defaults to 'polly...
/man/get_perm_source_types.Rd
no_license
pollyvote/pollyvoter
R
false
true
575
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_functions.R \name{get_perm_source_types} \alias{get_perm_source_types} \title{extract source types} \usage{ get_perm_source_types(pv) } \arguments{ \item{pv}{[\code{character(1)}]\cr the name ID of the pollyvote object, defaults to 'polly...
\name{mixed_ks_c_cdf} \alias{mixed_ks_c_cdf} \title{ Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is mixed } \description{ Computes the complementary cdf, \eqn{P(D_{n} \ge q)} at a fixed \eqn{q}, \eqn{q\in[0, 1]}, of the...
/KSgeneral/man/mixed_ks_c_cdf.Rd
no_license
akhikolla/InformationHouse
R
false
false
4,123
rd
\name{mixed_ks_c_cdf} \alias{mixed_ks_c_cdf} \title{ Computes the complementary cumulative distribution function of the two-sided Kolmogorov-Smirnov statistic when the cdf under the null hypothesis is mixed } \description{ Computes the complementary cdf, \eqn{P(D_{n} \ge q)} at a fixed \eqn{q}, \eqn{q\in[0, 1]}, of the...
# BSD_2_clause shinyUI(fluidPage( useShinyjs(), tags$style( "div.outer { position: fixed; background-color: #bfbfbf; top: 0px; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 0; }" ), div(class = "outer", leafletOutput("sp_map", height = "100...
/ui.R
no_license
jacob-ogre/gbif_map_comp
R
false
false
347
r
# BSD_2_clause shinyUI(fluidPage( useShinyjs(), tags$style( "div.outer { position: fixed; background-color: #bfbfbf; top: 0px; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 0; }" ), div(class = "outer", leafletOutput("sp_map", height = "100...
library(plyr) spottings <- list.files(path="spottings") spottings <- strsplit(spottings, "\\.") spottings <- laply(spottings, function(x) x[1]) get_id <- function(spotting) { keys <- strsplit(spotting, '')[[1]] # Components keysize <- length(keys) major <- as.numeric(paste(keys[1:(keysize-6)], collapse="")) ...
/successes.r
permissive
tpoisot/noah-scrapper
R
false
false
576
r
library(plyr) spottings <- list.files(path="spottings") spottings <- strsplit(spottings, "\\.") spottings <- laply(spottings, function(x) x[1]) get_id <- function(spotting) { keys <- strsplit(spotting, '')[[1]] # Components keysize <- length(keys) major <- as.numeric(paste(keys[1:(keysize-6)], collapse="")) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dynamac.R \name{dynardl.auto.correlated} \alias{dynardl.auto.correlated} \title{Run a variety of autocorrelation tests on the residuals from a \code{\link{dynardl}} model} \usage{ dynardl.auto.correlated( x, bg.type = "Chisq", digits = ...
/man/dynardl.auto.correlated.Rd
no_license
cran/dynamac
R
false
true
1,912
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dynamac.R \name{dynardl.auto.correlated} \alias{dynardl.auto.correlated} \title{Run a variety of autocorrelation tests on the residuals from a \code{\link{dynardl}} model} \usage{ dynardl.auto.correlated( x, bg.type = "Chisq", digits = ...
#' Returns the levels for each grouping factor in the fitted object #' #' @inherit lme4::ngrps params return #' @export #' ngrps.mixed <- function(object, ...) vapply(.flist(object), nlevels, 1) #' Terms method for epimodel objects #' @export #' @param x,fixed.only,random.only,... See \code{\link[lme4]{terms.merMod}...
/R/epimodel-methods.R
no_license
gkarthik/epidemia
R
false
false
4,472
r
#' Returns the levels for each grouping factor in the fitted object #' #' @inherit lme4::ngrps params return #' @export #' ngrps.mixed <- function(object, ...) vapply(.flist(object), nlevels, 1) #' Terms method for epimodel objects #' @export #' @param x,fixed.only,random.only,... See \code{\link[lme4]{terms.merMod}...
library(twitteR) #getUser("minsaude") #load("~/Dropbox/credentials/my_oauth") #options(httr_oauth_cache=TRUE) #This will enable the use of a local file to cache OAuth access credentials between R sessions. #setup_twitter_oauth(consumer_key = "Z2ylc2PCCT1RHC3bULRlFZe6e", # consumer_secret = "tTGnPZiPJ...
/R/mapping-followers.R
permissive
fboehm/brazil
R
false
false
2,976
r
library(twitteR) #getUser("minsaude") #load("~/Dropbox/credentials/my_oauth") #options(httr_oauth_cache=TRUE) #This will enable the use of a local file to cache OAuth access credentials between R sessions. #setup_twitter_oauth(consumer_key = "Z2ylc2PCCT1RHC3bULRlFZe6e", # consumer_secret = "tTGnPZiPJ...
complete <- function(directory, id = 1:332) { # Create empty vectors to store ID's and Row number idlist <- c() rowlist <- c() idx <- 1 # Obtain the list of .csv files to be read temp <- list.files(directory)[id] # Enter directory with .csv files setwd(directory...
/2_R_Programming/Assignment1/complete.R
no_license
figochin/datasciencecoursera
R
false
false
949
r
complete <- function(directory, id = 1:332) { # Create empty vectors to store ID's and Row number idlist <- c() rowlist <- c() idx <- 1 # Obtain the list of .csv files to be read temp <- list.files(directory)[id] # Enter directory with .csv files setwd(directory...
############################################# ## CausalMPE project # This script combines the results from multiple simualation scripts carried online on the O2 cluster # This set of simulations concerned a scenario where there are two subtypes, one with a null effect. ######################################### rm(list...
/Simulations/Scripts/Summaries/SummarizeOnlineScenario28a.R
no_license
yadevi/CausalMPE
R
false
false
2,639
r
############################################# ## CausalMPE project # This script combines the results from multiple simualation scripts carried online on the O2 cluster # This set of simulations concerned a scenario where there are two subtypes, one with a null effect. ######################################### rm(list...
\name{get_t_outlier_cat} \alias{get_t_outlier_cat} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Calculate median price category based upon Tukey's Fences } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ Determines if median pric...
/man/get_t_outlier_cat.Rd
no_license
utah-osa/hcctools
R
false
false
1,423
rd
\name{get_t_outlier_cat} \alias{get_t_outlier_cat} %- Also NEED an '\alias' for EACH other topic documented here. \title{ %% ~~function to do ... ~~ Calculate median price category based upon Tukey's Fences } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ Determines if median pric...
library(acct) library(readxl) library(tidyverse) hs_crosswalk <- read_csv("N:/ORP_accountability/projects/Jessica/Data Returns/Helpful Documents/ACT_xwalkAug2018rev.csv") # Current Year ACT Junior Day File act_highest_math <- read_excel("N:/Assessment_Data Returns/ACT/2018-19/2019 Spring/Spring 2019 Final File/Spring...
/2019-accountability/act_substitution.R
no_license
tnedu/accountability
R
false
false
4,869
r
library(acct) library(readxl) library(tidyverse) hs_crosswalk <- read_csv("N:/ORP_accountability/projects/Jessica/Data Returns/Helpful Documents/ACT_xwalkAug2018rev.csv") # Current Year ACT Junior Day File act_highest_math <- read_excel("N:/Assessment_Data Returns/ACT/2018-19/2019 Spring/Spring 2019 Final File/Spring...
#' @include internal.R NULL #' Deprecation notice #' #' The functions listed here are deprecated. #' This means that they once existed in earlier versions of the #' of the \pkg{prioritizr} package, but they have since been removed #' entirely, replaced by other functions, or renamed as other functions #' in newer vers...
/R/deprecated.R
no_license
BrandonEdwards/prioritizr
R
false
false
4,048
r
#' @include internal.R NULL #' Deprecation notice #' #' The functions listed here are deprecated. #' This means that they once existed in earlier versions of the #' of the \pkg{prioritizr} package, but they have since been removed #' entirely, replaced by other functions, or renamed as other functions #' in newer vers...
### where different genotypes can exploid different (limited) resources # input: compet, coordalive, haspartner, popgenome, G, K # output : popsurvival # each patch can hold at max K individuals, as it has K units of each resource type (ie for each gene) competition <- function( compet, coordalive, haspartner, popg...
/competition.R
no_license
Redsiana/GPG
R
false
false
3,211
r
### where different genotypes can exploid different (limited) resources # input: compet, coordalive, haspartner, popgenome, G, K # output : popsurvival # each patch can hold at max K individuals, as it has K units of each resource type (ie for each gene) competition <- function( compet, coordalive, haspartner, popg...
# Minimize_X { (1/2)||X - A||_F^2 + lam||P*X||_1} s.t. X >= del * I # ...using ADMM #' Solving penalized Frobenius problem. #' #' This function solves the optimization problem #' #' Minimize_X (1/2)||X - A||_F^2 + lam||P*X||_1 s.t. X >= del * I. #' #' This is the prox function for the generalized gradient descent...
/R/prox.R
no_license
cran/spcov
R
false
false
3,988
r
# Minimize_X { (1/2)||X - A||_F^2 + lam||P*X||_1} s.t. X >= del * I # ...using ADMM #' Solving penalized Frobenius problem. #' #' This function solves the optimization problem #' #' Minimize_X (1/2)||X - A||_F^2 + lam||P*X||_1 s.t. X >= del * I. #' #' This is the prox function for the generalized gradient descent...
################################################## # # Plotting Probability Distributions and # Calculating Probabilities with an Exponential Curve # # Student name(s): Daniel Camacho # ############## Setup ############## # We will use tibbles, pipes, and ggplot require(tidyverse) ######## Excercices - Part B #######...
/Ch 1/Lab 2/Lab 2 Probs with an exp curve (Daniel Camacho).R
no_license
daniel1197cama/MATH-308-Adv-Data-Modeling
R
false
false
6,484
r
################################################## # # Plotting Probability Distributions and # Calculating Probabilities with an Exponential Curve # # Student name(s): Daniel Camacho # ############## Setup ############## # We will use tibbles, pipes, and ggplot require(tidyverse) ######## Excercices - Part B #######...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/r2sd.R \name{r2sd} \alias{r2sd} \title{Scale a vector (or vectors) by two standard deviations} \usage{ r2sd(x, na = TRUE) } \arguments{ \item{x}{a vector, likely in your data frame} \item{na}{what to do with NAs in the vector. Defaults to TR...
/man/r2sd.Rd
no_license
svmiller/stevemisc
R
false
true
1,795
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/r2sd.R \name{r2sd} \alias{r2sd} \title{Scale a vector (or vectors) by two standard deviations} \usage{ r2sd(x, na = TRUE) } \arguments{ \item{x}{a vector, likely in your data frame} \item{na}{what to do with NAs in the vector. Defaults to TR...
library(dplyr) library(readr) start <- Sys.time() message(" \n Begin Cube iteration source file \n ") setwd(input.yaml$sim_dir) sim_score = read_csv(paste0(input.yaml$sim_dir,"sim_analyses/cube_sim_scn2a.csv")) sim_score<- do.call(data.frame, lapply(sim_score, function(x) { replace(x, is.infinite(x) | is.na(x), ...
/sim_analyses/cube/pat_100k_draw_npat_cube.R
no_license
helbig-lab/SCN2A
R
false
false
1,355
r
library(dplyr) library(readr) start <- Sys.time() message(" \n Begin Cube iteration source file \n ") setwd(input.yaml$sim_dir) sim_score = read_csv(paste0(input.yaml$sim_dir,"sim_analyses/cube_sim_scn2a.csv")) sim_score<- do.call(data.frame, lapply(sim_score, function(x) { replace(x, is.infinite(x) | is.na(x), ...
# Chinook salmon life cycle model functions library(dplyr) library(tidyr) ## Functions ------------------------------------------------------------------------------------------------------------ set.vars <- function(n.yr, scenario){ load('srfc_data.RData') # load data, need to load in here for parallel computing ...
/operating_model_functions.R
no_license
CVFC-MSE/age_climate_model
R
false
false
7,504
r
# Chinook salmon life cycle model functions library(dplyr) library(tidyr) ## Functions ------------------------------------------------------------------------------------------------------------ set.vars <- function(n.yr, scenario){ load('srfc_data.RData') # load data, need to load in here for parallel computing ...
## This function gets and sets the value of a matrix and gets and sets the value of the inverse of that matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL ## initialize objet m set <- function(y) { ## function to set the value of m x <<- y m...
/cachematrix.R
no_license
dsantibanez/ProgrammingAssignment2
R
false
false
1,516
r
## This function gets and sets the value of a matrix and gets and sets the value of the inverse of that matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL ## initialize objet m set <- function(y) { ## function to set the value of m x <<- y m...
#' Generate a stratified subsample for a vector given a grouping #' #' Use this function to compute LISI scores of one or more labels. #' #' @param indexer A vector containing cell barcodes/labels to subsample #' @param grouping A vector containg a groups to stratify by ( same size as indexer) #' @param sample_proporti...
/R/helpers.R
no_license
Varix/scPOP
R
false
false
3,554
r
#' Generate a stratified subsample for a vector given a grouping #' #' Use this function to compute LISI scores of one or more labels. #' #' @param indexer A vector containing cell barcodes/labels to subsample #' @param grouping A vector containg a groups to stratify by ( same size as indexer) #' @param sample_proporti...
# Header ------------------------------------------------------------------ # Created: 1/23/2016 # Author: Joshua Slocum # Purpose: simple function to add model call to log # Initialize -------------------------------------------------------------- library(shiny) log_data <- read.csv("./model_log.csv") # Define UI f...
/app/model-log-viewer/app.R
permissive
JoshuaSlocum/model-log
R
false
false
1,036
r
# Header ------------------------------------------------------------------ # Created: 1/23/2016 # Author: Joshua Slocum # Purpose: simple function to add model call to log # Initialize -------------------------------------------------------------- library(shiny) log_data <- read.csv("./model_log.csv") # Define UI f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sfcr_baseline.R \name{.sfcr_eqs_check} \alias{.sfcr_eqs_check} \title{Check for missing endogenous variables} \usage{ .sfcr_eqs_check(m, equations) } \arguments{ \item{m}{The initialized matrix obtained with \code{.make_matrix()}.} \item{equ...
/man/dot-sfcr_eqs_check.Rd
permissive
markushlang/sfcr
R
false
true
481
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sfcr_baseline.R \name{.sfcr_eqs_check} \alias{.sfcr_eqs_check} \title{Check for missing endogenous variables} \usage{ .sfcr_eqs_check(m, equations) } \arguments{ \item{m}{The initialized matrix obtained with \code{.make_matrix()}.} \item{equ...
library("RColorBrewer") library("DESeq2") library("dendsort") library("ComplexHeatmap") library("circlize") source("nmi.r") setwd("../") args = commandArgs(trailingOnly=TRUE) resultdir = "result.rsem.TET.instance/" print (args) if (length(args)>0) { resultdir = args[1] if (substr(resultdir, nchar(resultdir), ncha...
/src/makeHeatmap.r
no_license
HanLabUNLV/TEcoex
R
false
false
7,439
r
library("RColorBrewer") library("DESeq2") library("dendsort") library("ComplexHeatmap") library("circlize") source("nmi.r") setwd("../") args = commandArgs(trailingOnly=TRUE) resultdir = "result.rsem.TET.instance/" print (args) if (length(args)>0) { resultdir = args[1] if (substr(resultdir, nchar(resultdir), ncha...
rm(list=ls()) library(rpart) library(rpart.plot) library(pROC) training<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/ATLEAST3/CAD Dataset Train70p.csv") testing<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/ATLEAST3/CAD Dataset Test30p.csv") sapdata<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/ATLEAST3/Sa...
/ATLEAST3/DT.R
permissive
UtshaDas/CAD-Classification
R
false
false
2,345
r
rm(list=ls()) library(rpart) library(rpart.plot) library(pROC) training<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/ATLEAST3/CAD Dataset Train70p.csv") testing<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/ATLEAST3/CAD Dataset Test30p.csv") sapdata<-read.csv("F:/Thesis/DataMing+MachieLeaning/CAD/ATLEAST3/Sa...
# Q2. # Have total emissions from PM2.5 decreased in the Baltimore City, Maryland # (fips == "24510") # from 1999 to 2008? Use the base plotting system to make a plot answering # this question. #Read the data into R: # NEI: National Emmissions Inventory (the data for years 1999,2002,2005,2008) # SCC: Source Classi...
/tasks2.R
no_license
purvinis/Ex_Data_CourseProject2
R
false
false
1,038
r
# Q2. # Have total emissions from PM2.5 decreased in the Baltimore City, Maryland # (fips == "24510") # from 1999 to 2008? Use the base plotting system to make a plot answering # this question. #Read the data into R: # NEI: National Emmissions Inventory (the data for years 1999,2002,2005,2008) # SCC: Source Classi...
library(magi) # set up configuration if not already exist ------------------------------------ if(!exists("config")){ config <- list( nobs = 15, noise = rep(0.01, 5), # 0.001 = low noise, 0.01 = high noise kernel = "generalMatern", loglikflag = "withmeanBand", bandsize = 40, hmcSteps = 100, ...
/magi/replication/run-ptrans-highnoise.R
no_license
nick-jhlee/plant-circadian
R
false
false
8,238
r
library(magi) # set up configuration if not already exist ------------------------------------ if(!exists("config")){ config <- list( nobs = 15, noise = rep(0.01, 5), # 0.001 = low noise, 0.01 = high noise kernel = "generalMatern", loglikflag = "withmeanBand", bandsize = 40, hmcSteps = 100, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ledger-functions.R \name{monthly} \alias{monthly} \title{Calculate 30 days average of the given vector} \usage{ monthly(x) } \arguments{ \item{x}{a numeric vector} } \description{ example of a functions can be used to be appled for the tran...
/ledgerplots/man/monthly.Rd
permissive
paul-jewell/ledger-plots
R
false
true
338
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ledger-functions.R \name{monthly} \alias{monthly} \title{Calculate 30 days average of the given vector} \usage{ monthly(x) } \arguments{ \item{x}{a numeric vector} } \description{ example of a functions can be used to be appled for the tran...
## Coursera R Programming Assignment 2 ## Author: Scott Elliott ## Completed April 26, 2015 ## SUMMARY ## These functions are used to take a square invertible matrix object, ## calculate the inverse, then store the inverted matrix in a cache ## for quick retreival without having to recalculate the inverse. ## make...
/cachematrix.R
no_license
sdelliott/ProgrammingAssignment2
R
false
false
2,971
r
## Coursera R Programming Assignment 2 ## Author: Scott Elliott ## Completed April 26, 2015 ## SUMMARY ## These functions are used to take a square invertible matrix object, ## calculate the inverse, then store the inverted matrix in a cache ## for quick retreival without having to recalculate the inverse. ## make...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vector.R \name{vec} \alias{vec} \alias{is_vec} \alias{as_vec} \title{Vector of vectors} \usage{ vec(..., default_dim = 2) is_vec(x) as_vec(x) } \arguments{ \item{...}{Various input. See the Constructor section.} \item{default_dim}{The dime...
/man/vec.Rd
permissive
KevCaz/euclid
R
false
true
2,166
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vector.R \name{vec} \alias{vec} \alias{is_vec} \alias{as_vec} \title{Vector of vectors} \usage{ vec(..., default_dim = 2) is_vec(x) as_vec(x) } \arguments{ \item{...}{Various input. See the Constructor section.} \item{default_dim}{The dime...
#' Set and check parameter settings of estimate_R #' #' This function defines settings for estimate_R It takes a list of named #' items as input, set defaults where arguments are #' missing, and return a list of settings. #' #' @param ... Acceptable arguments for ... are: #' #' \describe{ #' #' \item{t_start}{Vector ...
/R/make_config.R
no_license
mrc-ide/EpiEstim
R
false
false
15,929
r
#' Set and check parameter settings of estimate_R #' #' This function defines settings for estimate_R It takes a list of named #' items as input, set defaults where arguments are #' missing, and return a list of settings. #' #' @param ... Acceptable arguments for ... are: #' #' \describe{ #' #' \item{t_start}{Vector ...
############################################# # Script to process MNgage data # # from Minnesota Climate office # # Kirk R. Wythers # # 2017.01.12 # ############################################# # Process MNgage precipitation data from one...
/MNgage.r
no_license
kwythers/climate
R
false
false
8,543
r
############################################# # Script to process MNgage data # # from Minnesota Climate office # # Kirk R. Wythers # # 2017.01.12 # ############################################# # Process MNgage precipitation data from one...
\name{plotCat} \alias{plotCat} \title{Plotting correspondence at the top curves} \description{ This function plots corresponding at the top (CAT) curves using overlap proportions computed by \code{computeCat}. A number of arguments can be used for a pretty display, and for annotating the plot, and adding the...
/man/plotCat.Rd
no_license
c1au6i0/matchBox
R
false
false
6,777
rd
\name{plotCat} \alias{plotCat} \title{Plotting correspondence at the top curves} \description{ This function plots corresponding at the top (CAT) curves using overlap proportions computed by \code{computeCat}. A number of arguments can be used for a pretty display, and for annotating the plot, and adding the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remix.r \name{cross_one} \alias{cross_one} \title{Cross one x and one y} \usage{ cross_one(x, y = NULL, funs = NULL, ..., margin = 0:2, total = FALSE, digits = 2, showNA = c("no", "ifany", "always"), method = c("pearson", "kendall", "spea...
/man/cross_one.Rd
no_license
eusebe/biostat2
R
false
true
1,459
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/remix.r \name{cross_one} \alias{cross_one} \title{Cross one x and one y} \usage{ cross_one(x, y = NULL, funs = NULL, ..., margin = 0:2, total = FALSE, digits = 2, showNA = c("no", "ifany", "always"), method = c("pearson", "kendall", "spea...
##simulate CB data source('paramsCB.R') source("CBsimulator.R") sim <- simCB(beta=beta,N=N,effprop=effprop,i0=i0,reporting=reporting, numobs=numobs,seed=seed) sim data <- list(obs=sim$Iobs, N=N, i0=i0, numobs=nrow(sim), zerohack=zerohack) ##initial va...
/simulateCB.R
no_license
morgankain/NIMBLE-Pres
R
false
false
599
r
##simulate CB data source('paramsCB.R') source("CBsimulator.R") sim <- simCB(beta=beta,N=N,effprop=effprop,i0=i0,reporting=reporting, numobs=numobs,seed=seed) sim data <- list(obs=sim$Iobs, N=N, i0=i0, numobs=nrow(sim), zerohack=zerohack) ##initial va...
\name{SegSpatial-class} \docType{class} \alias{SegSpatial-class} \alias{coerce,SegSpatial,SpatialPoints-method} \alias{coerce,SegSpatial,SpatialPointsDataFrame-method} \alias{coerce,SegSpatial,SpatialPixelsDataFrame-method} \alias{coerce,SegSpatial,list-method} \alias{as.list.SegSpatial-method} \alias{show,SegS...
/man/SegSpatial-class.Rd
no_license
syunhong/seg
R
false
false
3,645
rd
\name{SegSpatial-class} \docType{class} \alias{SegSpatial-class} \alias{coerce,SegSpatial,SpatialPoints-method} \alias{coerce,SegSpatial,SpatialPointsDataFrame-method} \alias{coerce,SegSpatial,SpatialPixelsDataFrame-method} \alias{coerce,SegSpatial,list-method} \alias{as.list.SegSpatial-method} \alias{show,SegS...
## ----options, echo=FALSE, warning=FALSE, message=FALSE---------------------------------------------------------------- options(width=120) opts_chunk$set(comment=NA, fig.width=6, fig.height=4.4, size='tiny', out.width='\\textwidth', fig.al...
/courses/stat587Eng/slides/Regression/R06-ANOVA_F-tests/R06-ANOVA_F-tests.R
no_license
jarad/jarad.github.com
R
false
false
4,682
r
## ----options, echo=FALSE, warning=FALSE, message=FALSE---------------------------------------------------------------- options(width=120) opts_chunk$set(comment=NA, fig.width=6, fig.height=4.4, size='tiny', out.width='\\textwidth', fig.al...
library("mlxR") library("psych") library("coda") library("Matrix") library(abind) require(ggplot2) require(gridExtra) require(reshape2) library(dplyr) # save.image("rtte_mcmc_conv.RData") # setwd("/Users/karimimohammedbelhal/Desktop/package_contrib/saemixB/R") setwd("/Users/karimimohammedbelhal/Desktop/ongoing_research...
/FastSAEM - Main/fSAEM_Code/fsaem_newcombination/rtte_compare_mcmc.R
no_license
BelhalK/AccelerationTrainingAlgorithms
R
false
false
13,390
r
library("mlxR") library("psych") library("coda") library("Matrix") library(abind) require(ggplot2) require(gridExtra) require(reshape2) library(dplyr) # save.image("rtte_mcmc_conv.RData") # setwd("/Users/karimimohammedbelhal/Desktop/package_contrib/saemixB/R") setwd("/Users/karimimohammedbelhal/Desktop/ongoing_research...
#' @title Plot regression models #' @name plot_model #' #' @description #' \code{plot_model()} creates plots from regression models, either #' estimates (as so-called forest or dot whisker plots) or marginal effects. #' #' @param model A regression model object. Depending on the \code{type}, many #' kinds of mode...
/R/plot_model.R
no_license
borghenry/sjPlot
R
false
false
29,874
r
#' @title Plot regression models #' @name plot_model #' #' @description #' \code{plot_model()} creates plots from regression models, either #' estimates (as so-called forest or dot whisker plots) or marginal effects. #' #' @param model A regression model object. Depending on the \code{type}, many #' kinds of mode...
#' compile collated dataset function #' #' this function puts compiles the collated dataset from records #' @param dataset_name_prefix a character string to prefix the datasets with, no default #' @param dir_names a vector of directory names to import records from. default is NULL, in which case records from all direc...
/R/compile.collated.dataset.r
no_license
tracits/beehive
R
false
false
1,699
r
#' compile collated dataset function #' #' this function puts compiles the collated dataset from records #' @param dataset_name_prefix a character string to prefix the datasets with, no default #' @param dir_names a vector of directory names to import records from. default is NULL, in which case records from all direc...
#PROCESS Turner C7 FILES FROM R/V WALTON SMITH & ADD LATITUDE AND LONGITUDE #Step 1: Import and process R/V Walton Smith Turner C7 "*DAT" files setwd("C:/Users/kelly.robinson/Dropbox/Cowen_Sponaugle/OSTRICH/PhysData/vids/Turner C7") library(data.table) options(digits = 5) ##Loop through .DAT files in a directory and...
/process Turner C7 files.R
no_license
Planktos/OSTRICH_rvws
R
false
false
4,771
r
#PROCESS Turner C7 FILES FROM R/V WALTON SMITH & ADD LATITUDE AND LONGITUDE #Step 1: Import and process R/V Walton Smith Turner C7 "*DAT" files setwd("C:/Users/kelly.robinson/Dropbox/Cowen_Sponaugle/OSTRICH/PhysData/vids/Turner C7") library(data.table) options(digits = 5) ##Loop through .DAT files in a directory and...
library(shiny) library(DT) fluidPage(titlePanel("DaKaMon Importer"), tabsetPanel( tabPanel("FoI generation", sidebarLayout( sidebarPanel( fileInput("csvFileFoI", "Select a FoI file for upload."), ...
/DaKaMon/import/ui.R
no_license
BenGraeler/demos
R
false
false
2,708
r
library(shiny) library(DT) fluidPage(titlePanel("DaKaMon Importer"), tabsetPanel( tabPanel("FoI generation", sidebarLayout( sidebarPanel( fileInput("csvFileFoI", "Select a FoI file for upload."), ...
library(ggplot2) setwd("~/Documents/git/cocolab/determiners/experiments/2-choose-utterance/Submiterator-master") d = read.table("choose-utterance-trials.tsv",sep="\t",header=T) head(d) s = read.table("choose-utterance-subject_information.tsv",sep="\t",header=T) head(s) d$language = s$language[match(d$workerid,s$worke...
/experiments/2-choose-utterance/results/analysis.R
no_license
gscontras/determiners
R
false
false
1,863
r
library(ggplot2) setwd("~/Documents/git/cocolab/determiners/experiments/2-choose-utterance/Submiterator-master") d = read.table("choose-utterance-trials.tsv",sep="\t",header=T) head(d) s = read.table("choose-utterance-subject_information.tsv",sep="\t",header=T) head(s) d$language = s$language[match(d$workerid,s$worke...
##Masculine Coded Items and Frequency Table and bargraph ######### Masc_Coded_OS<-c(SERLIcat$'2_HammerOS', SERLIcat$'2_ShovelOS', SERLIcat$'2_SawOS',SERLIcat$'2_RifleOS', SERLIcat$'2_StethOS', SERLIcat$'2_BoxingGloveOS', SERLIcat$'2_FireHatOS', SERLIcat$'2_BadgeOS', SERLIcat$'2_CarOS', SERLIcat$'2_BatOS') Masc_Code...
/OSItemsbycode_frequency.R
no_license
jtorflint/SERLI_Katz
R
false
false
1,829
r
##Masculine Coded Items and Frequency Table and bargraph ######### Masc_Coded_OS<-c(SERLIcat$'2_HammerOS', SERLIcat$'2_ShovelOS', SERLIcat$'2_SawOS',SERLIcat$'2_RifleOS', SERLIcat$'2_StethOS', SERLIcat$'2_BoxingGloveOS', SERLIcat$'2_FireHatOS', SERLIcat$'2_BadgeOS', SERLIcat$'2_CarOS', SERLIcat$'2_BatOS') Masc_Code...
/Rcode_Kernel SVM.R
no_license
sawantmayur47/1-Alert
R
false
false
1,688
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init.R \name{initAFFMeanCD} \alias{initAFFMeanCD} \title{Initialisation of AFF change detector} \usage{ initAFFMeanCD(alpha = 0.01, eta = 0.01, BL = 50) } \arguments{ \item{alpha}{The value of the significance level. Default value is \code{0...
/ffstream/man/initAFFMeanCD.Rd
no_license
akhikolla/InformationHouse
R
false
true
1,220
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init.R \name{initAFFMeanCD} \alias{initAFFMeanCD} \title{Initialisation of AFF change detector} \usage{ initAFFMeanCD(alpha = 0.01, eta = 0.01, BL = 50) } \arguments{ \item{alpha}{The value of the significance level. Default value is \code{0...
### function to get reasons from a retraction xml file get_reasons <- function(fn){ require(xml2) # read xml data = read_xml(fn, as_html = T) # find all div nodes nodes<-xml_find_all(data, ".//div") # filter out the nodes where the attribute class="rReason" nodes<-nodes[which(xml_attr(nodes, "class") == "...
/retraction_reasons.R
permissive
alorchhota/retraction
R
false
false
2,770
r
### function to get reasons from a retraction xml file get_reasons <- function(fn){ require(xml2) # read xml data = read_xml(fn, as_html = T) # find all div nodes nodes<-xml_find_all(data, ".//div") # filter out the nodes where the attribute class="rReason" nodes<-nodes[which(xml_attr(nodes, "class") == "...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotBurnSummary.R \name{plotBurnSummary} \alias{plotBurnSummary} \title{Plots summary of burns} \usage{ plotBurnSummary( dataPath, typeSim, lastYear, theObject = NULL, overwrite = FALSE ) } \arguments{ \item{dataPath}{character. Pat...
/man/plotBurnSummary.Rd
no_license
eliotmcintire/usefun
R
false
true
677
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotBurnSummary.R \name{plotBurnSummary} \alias{plotBurnSummary} \title{Plots summary of burns} \usage{ plotBurnSummary( dataPath, typeSim, lastYear, theObject = NULL, overwrite = FALSE ) } \arguments{ \item{dataPath}{character. Pat...
activity_total_steps <- with(activity, aggregate(steps, by = list(date), FUN = sum, na.rm = TRUE)) names(activity_total_steps) <- c("date", "steps") hist(activity_total_steps$steps, main = "Total number of steps taken per day", xlab = "Total steps taken per day", col = "darkblue", ylim = c(0,20), breaks = seq(0,25000...
/steps taken per day.R
no_license
juliovidal14/Reproducible-research-course-project-1
R
false
false
409
r
activity_total_steps <- with(activity, aggregate(steps, by = list(date), FUN = sum, na.rm = TRUE)) names(activity_total_steps) <- c("date", "steps") hist(activity_total_steps$steps, main = "Total number of steps taken per day", xlab = "Total steps taken per day", col = "darkblue", ylim = c(0,20), breaks = seq(0,25000...
\name{exercise_input} \alias{exercise_input} \docType{data} \title{ An example dataset to demonstrate the usage of 'HDMT' } \description{ This example dataset was included to assess the mediation role of DNA methylation in the effect of exercise on prostate cancer progression in a Seattle-based cohort of patients dia...
/man/exercise_input.Rd
no_license
cran/HDMT
R
false
false
1,333
rd
\name{exercise_input} \alias{exercise_input} \docType{data} \title{ An example dataset to demonstrate the usage of 'HDMT' } \description{ This example dataset was included to assess the mediation role of DNA methylation in the effect of exercise on prostate cancer progression in a Seattle-based cohort of patients dia...
conf <- rapbase::getConfig() conf$reg <- list(noric = list(nationalAccess = list(reshId = 100000))) conf$reg$noric$nationalAccess$nameKey <- "Nat" yaml::write_yaml(conf, file = "./rapbaseConfig.yml") orig_path <- Sys.getenv("R_RAP_CONFIG_PATH") Sys.setenv(R_RAP_CONFIG_PATH = getwd()) test_that("a registry name can be...
/tests/testthat/test-makeRegistryName.R
permissive
Rapporteket/NORIC
R
false
false
578
r
conf <- rapbase::getConfig() conf$reg <- list(noric = list(nationalAccess = list(reshId = 100000))) conf$reg$noric$nationalAccess$nameKey <- "Nat" yaml::write_yaml(conf, file = "./rapbaseConfig.yml") orig_path <- Sys.getenv("R_RAP_CONFIG_PATH") Sys.setenv(R_RAP_CONFIG_PATH = getwd()) test_that("a registry name can be...
library(hash) ### Name: clear ### Title: Removes all key-value pairs from a hash ### Aliases: clear clear-methods clear,hash-method ### Keywords: methods data manip ### ** Examples h <- hash( letters, 1:26 ) h # An object of type 'hash' containing 26 key-value pairs. clear(h) h # An object of type 'hash'...
/data/genthat_extracted_code/hash/examples/clear.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
355
r
library(hash) ### Name: clear ### Title: Removes all key-value pairs from a hash ### Aliases: clear clear-methods clear,hash-method ### Keywords: methods data manip ### ** Examples h <- hash( letters, 1:26 ) h # An object of type 'hash' containing 26 key-value pairs. clear(h) h # An object of type 'hash'...
/Flores Sheyla - Tipo de producción/Flores Sheyla - Tipo de producción.R
no_license
Sheyla28/Hello_World
R
false
false
8,514
r
library(lubridate) library(xlsx) library(dplyr) library(doBy) library(data.table) Retail_Data_R <- read.csv(file.choose()) Retail_Data_T <- read.csv(file.choose()) str(Retail_Data_R) str(Retail_Data_T) dim(Retail_Data_R) dim(Retail_Data_T) Retail_Data_T$trans_date<-dmy(Retail_Data_T$trans_date) #date month...
/RFM.R
no_license
devdatta95/RFM-For-customer-analysis-in-R
R
false
false
1,779
r
library(lubridate) library(xlsx) library(dplyr) library(doBy) library(data.table) Retail_Data_R <- read.csv(file.choose()) Retail_Data_T <- read.csv(file.choose()) str(Retail_Data_R) str(Retail_Data_T) dim(Retail_Data_R) dim(Retail_Data_T) Retail_Data_T$trans_date<-dmy(Retail_Data_T$trans_date) #date month...
\alias{gtkRangeSetFlippable} \name{gtkRangeSetFlippable} \title{gtkRangeSetFlippable} \description{If a range is flippable, it will switch its direction if it is horizontal and its direction is \code{GTK_TEXT_DIR_RTL}.} \usage{gtkRangeSetFlippable(object, flippable)} \arguments{ \item{\verb{object}}{a \code{\link{GtkRa...
/RGtk2/man/gtkRangeSetFlippable.Rd
no_license
lawremi/RGtk2
R
false
false
529
rd
\alias{gtkRangeSetFlippable} \name{gtkRangeSetFlippable} \title{gtkRangeSetFlippable} \description{If a range is flippable, it will switch its direction if it is horizontal and its direction is \code{GTK_TEXT_DIR_RTL}.} \usage{gtkRangeSetFlippable(object, flippable)} \arguments{ \item{\verb{object}}{a \code{\link{GtkRa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions_manip_db.R \name{divid_plot} \alias{divid_plot} \title{Divide 1 ha square plots into 25 squares subplots of 400m² following a regular 5*5 grid} \usage{ divid_plot(coordinates_sf, plot_name = "plot_name") } \arguments{ \item{coordina...
/man/divid_plot.Rd
no_license
gdauby/bdd_plots_central_africa
R
false
true
3,043
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions_manip_db.R \name{divid_plot} \alias{divid_plot} \title{Divide 1 ha square plots into 25 squares subplots of 400m² following a regular 5*5 grid} \usage{ divid_plot(coordinates_sf, plot_name = "plot_name") } \arguments{ \item{coordina...
test_that("DAPSm with fixed weight for toyData2", { data('toyData2') toyData2$prop.scores <- glm(Z ~ X1 + X2 + X3 + X4, family = binomial, data = toyData2)$fitted.values daps <- DAPSest(toyData2, out.col = 2, trt.col = 1, caliper = 0.3, weight = 0.7, coords.columns ...
/tests/testthat/tests.R
no_license
gpapadog/DAPSm
R
false
false
2,056
r
test_that("DAPSm with fixed weight for toyData2", { data('toyData2') toyData2$prop.scores <- glm(Z ~ X1 + X2 + X3 + X4, family = binomial, data = toyData2)$fitted.values daps <- DAPSest(toyData2, out.col = 2, trt.col = 1, caliper = 0.3, weight = 0.7, coords.columns ...
############################################################# ### R-code for master thesis 1, 22.03.2017 ### Written by Albert Kwame Osei-Owusu ############################################################# ### Initial stuff ### rm(list=ls()) ## setting path to library .libPaths("/Users/albertosei-owusu/Desktop/R Pac...
/Regressions.R
no_license
Allisterh/Master-thesis
R
false
false
20,598
r
############################################################# ### R-code for master thesis 1, 22.03.2017 ### Written by Albert Kwame Osei-Owusu ############################################################# ### Initial stuff ### rm(list=ls()) ## setting path to library .libPaths("/Users/albertosei-owusu/Desktop/R Pac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quicksight_operations.R \name{quicksight_create_group_membership} \alias{quicksight_create_group_membership} \title{Adds an Amazon QuickSight user to an Amazon QuickSight group} \usage{ quicksight_create_group_membership( MemberName, Grou...
/cran/paws.analytics/man/quicksight_create_group_membership.Rd
permissive
paws-r/paws
R
false
true
1,046
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/quicksight_operations.R \name{quicksight_create_group_membership} \alias{quicksight_create_group_membership} \title{Adds an Amazon QuickSight user to an Amazon QuickSight group} \usage{ quicksight_create_group_membership( MemberName, Grou...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ANOVA_exact.R \name{ANOVA_exact} \alias{ANOVA_exact} \alias{ANOVA_exact2} \title{Simulates an exact dataset (mu, sd, and r represent empirical, not population, mean and covariance matrix) from the design to calculate power} \usage{ ANOVA_exac...
/man/ANOVA_exact.Rd
permissive
arcaldwell49/Superpower
R
false
true
4,744
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ANOVA_exact.R \name{ANOVA_exact} \alias{ANOVA_exact} \alias{ANOVA_exact2} \title{Simulates an exact dataset (mu, sd, and r represent empirical, not population, mean and covariance matrix) from the design to calculate power} \usage{ ANOVA_exac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Proc.reg.reset.R \name{Proc.reg.reset} \alias{Proc.reg.reset} \title{Summary table of the Reset test} \usage{ Proc.reg.reset(lm) } \arguments{ \item{lm}{A lm() object} } \value{ returns a summary table of the Reset test } \descr...
/man/Proc.reg.reset.Rd
permissive
ipveka/Proc-Sas
R
false
true
410
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Proc.reg.reset.R \name{Proc.reg.reset} \alias{Proc.reg.reset} \title{Summary table of the Reset test} \usage{ Proc.reg.reset(lm) } \arguments{ \item{lm}{A lm() object} } \value{ returns a summary table of the Reset test } \descr...
## Potential Connectivity Matrices #From Diane Thompson- for 10-day PLD library(tidyverse) #version 1.3.0 ##Loading in matrices from "Downloaded_Data" folder library(ncdf4) #version 1.17 connect_matrix <- nc_open("CORAL-connect_25_historical_pconnect_10-day_noedges2.nc") print(connect_matrix) #This gives the meta-d...
/R Code/Potential_Connectivity.R
no_license
pinskylab/Premnas-biaculeatus
R
false
false
16,058
r
## Potential Connectivity Matrices #From Diane Thompson- for 10-day PLD library(tidyverse) #version 1.3.0 ##Loading in matrices from "Downloaded_Data" folder library(ncdf4) #version 1.17 connect_matrix <- nc_open("CORAL-connect_25_historical_pconnect_10-day_noedges2.nc") print(connect_matrix) #This gives the meta-d...
library(ggplot2) library(NLP) library(tm) library(SnowballC) library(cluster) library(factoextra) library(NbClust) library(wordcloud) library(plotly) library(caret) library(corrplot) library(reshape2) library(stringr) library(cowplot) rm(list=ls()) #Setting working directory setwd("/Users/martinberger/Desktop/DPA/T3C_P...
/T3C_DATA_OVERVIEW.R
no_license
Martin-Berger/T3C
R
false
false
8,741
r
library(ggplot2) library(NLP) library(tm) library(SnowballC) library(cluster) library(factoextra) library(NbClust) library(wordcloud) library(plotly) library(caret) library(corrplot) library(reshape2) library(stringr) library(cowplot) rm(list=ls()) #Setting working directory setwd("/Users/martinberger/Desktop/DPA/T3C_P...
# =================== Experimental Optimisation Procedure across various scenarios [Parallelized] # This interactively-run experimental script uses the output from a single forecasting technique # (specified via a pointer to a particular receipt matrix), as parametrised in a certain way, # along with using an accompa...
/3.2 Loss Optimisation Procedure [Parallelized].R
permissive
arnobotha/The-loss-optimisation-of-loan-recovery-decision-times-using-forecast-cash-flows
R
false
false
21,910
r
# =================== Experimental Optimisation Procedure across various scenarios [Parallelized] # This interactively-run experimental script uses the output from a single forecasting technique # (specified via a pointer to a particular receipt matrix), as parametrised in a certain way, # along with using an accompa...
closeAllConnections() rm(list=ls()) dir = getwd() out = "./elastic_net_weights.csv" library(glmnet) library(grpreg) data(Birthwt) X <- Birthwt$X Y <- Birthwt$bwt # groups <- c(1,1,1,2,2,2,3,3,4,5,5,6,7,8,8,8) glm_object <- cv.glmnet(x=X, y=Y, nfolds=4, type.measure = "mse", grouped=TRUE, type.multinomial = "grouped") w...
/Experimental section/Models/Elastic Net/elastic-net.R
no_license
adityagc/Graduate-Research
R
false
false
532
r
closeAllConnections() rm(list=ls()) dir = getwd() out = "./elastic_net_weights.csv" library(glmnet) library(grpreg) data(Birthwt) X <- Birthwt$X Y <- Birthwt$bwt # groups <- c(1,1,1,2,2,2,3,3,4,5,5,6,7,8,8,8) glm_object <- cv.glmnet(x=X, y=Y, nfolds=4, type.measure = "mse", grouped=TRUE, type.multinomial = "grouped") w...
#' Convert timestamps to frame numbers #' #' Provide the frame rate to use to create break points from millisecond time data #' #' @param x Vector of timestamps #' @param fps Frames per second of the video source. #' Defaults to 30 Frames Per Second. The smaller the value, the more likely #' two events wi...
/R/unsorted.R
no_license
danniekim/mejr
R
false
false
3,277
r
#' Convert timestamps to frame numbers #' #' Provide the frame rate to use to create break points from millisecond time data #' #' @param x Vector of timestamps #' @param fps Frames per second of the video source. #' Defaults to 30 Frames Per Second. The smaller the value, the more likely #' two events wi...
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926978-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,101
r
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
#parameters and settings; #seed ran.seed <- 1 #Number of new infections per day within the whole ward 58 & 59 is Poisson distributed; #lambda <- 1 #lambda for the peak season, now assume no seasonality; n.sim <- 1000 n.pop <- 160000 n.household <-30000 #ask the student for details; n.person.per.house <- 16/3 n.house.p...
/v7/v7.param.R
no_license
YWAN446/Adaptive-Sampling-Site-Allocation
R
false
false
1,771
r
#parameters and settings; #seed ran.seed <- 1 #Number of new infections per day within the whole ward 58 & 59 is Poisson distributed; #lambda <- 1 #lambda for the peak season, now assume no seasonality; n.sim <- 1000 n.pop <- 160000 n.household <-30000 #ask the student for details; n.person.per.house <- 16/3 n.house.p...
library(ggplot2) dat = readLines("newrep.txt") # ltna load time and number analysis ltna = function(x, dropstr="built|methods.found") { zl = which(nchar(x)==0) bad = c(zl, grep(dropstr, x)) if (length(bad)>0) x = x[-bad] pre = grep("elapsed", x) nms = grep("----", x, value=TRUE) tms = x[pre+1] sapply(tms, function(x) s...
/procTimes.R
no_license
vjcitn/stackweight
R
false
false
791
r
library(ggplot2) dat = readLines("newrep.txt") # ltna load time and number analysis ltna = function(x, dropstr="built|methods.found") { zl = which(nchar(x)==0) bad = c(zl, grep(dropstr, x)) if (length(bad)>0) x = x[-bad] pre = grep("elapsed", x) nms = grep("----", x, value=TRUE) tms = x[pre+1] sapply(tms, function(x) s...
# Schedule_Task_Run_R_Script.r argv <- commandArgs(TRUE) x <- as.numeric(argv[1]) y <- as.numeric(argv[2]) cat("x =", x, "\n") cat("y =", y, "\n") cat("x + y = ", x + y, "\n") cat("x - y = ", x - y, "\n") cat("x * y = ", x * y, "\n") cat("x / y = ", x / y, "\n")
/R_Learning/Schedule_Task_Run_R_Script.r
no_license
xiangxing98/xiangxing98.github.io
R
false
false
262
r
# Schedule_Task_Run_R_Script.r argv <- commandArgs(TRUE) x <- as.numeric(argv[1]) y <- as.numeric(argv[2]) cat("x =", x, "\n") cat("y =", y, "\n") cat("x + y = ", x + y, "\n") cat("x - y = ", x - y, "\n") cat("x * y = ", x * y, "\n") cat("x / y = ", x / y, "\n")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_tools.R \name{spatial.clusters} \alias{spatial.clusters} \title{Visualize spatial distribution of clusters.} \usage{ spatial.clusters(object, clusters = NULL, HE.list = NULL, arrange = T, ncols = NULL, xlim = c(1, 33), ylim = c(1, 3...
/man/spatial.clusters.Rd
no_license
ludvigla/spaceST
R
false
true
1,205
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spatial_tools.R \name{spatial.clusters} \alias{spatial.clusters} \title{Visualize spatial distribution of clusters.} \usage{ spatial.clusters(object, clusters = NULL, HE.list = NULL, arrange = T, ncols = NULL, xlim = c(1, 33), ylim = c(1, 3...
# Copyright 2014-2017 Google Inc. All rights reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
/R/impact_model.R
permissive
chenwendi/CausalImpactLite
R
false
false
10,309
r
# Copyright 2014-2017 Google Inc. All rights reserved. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/f_03_to_model_data.r \name{f_to_model_data} \alias{f_to_model_data} \title{Data transformation: keep model variables and expand categorical variables (internal use)} \usage{ f_to_model_data(formula, data, id_name, time_name) } \argume...
/man/f_to_model_data.Rd
no_license
KartikeyaSethi/rERR
R
false
true
1,040
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/f_03_to_model_data.r \name{f_to_model_data} \alias{f_to_model_data} \title{Data transformation: keep model variables and expand categorical variables (internal use)} \usage{ f_to_model_data(formula, data, id_name, time_name) } \argume...
# uci car data uciCar <- read.table("http://www.win-vector.com/dfiles/car.data.csv", sep=",", header=T); # uci formatted german bank data d <- read.table('http://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/german.data', stringsAsFactors=F,header=F) colnames(d) <- c( 'Status.of.existing.checki...
/R/ch2.R
no_license
drsnyder/practical-data-science
R
false
false
3,570
r
# uci car data uciCar <- read.table("http://www.win-vector.com/dfiles/car.data.csv", sep=",", header=T); # uci formatted german bank data d <- read.table('http://archive.ics.uci.edu/ml/machine-learning-databases/statlog/german/german.data', stringsAsFactors=F,header=F) colnames(d) <- c( 'Status.of.existing.checki...
#' @title Set up R project #' @description This function allows you to set up your R project structure with ease #' #' @param data Create folder called data? TRUE or FALSE #' @param output Create folder called output? TRUE or FALSE #' @param plots Create folder called plots in output? TRUE or FALSE #' @param stan Use s...
/R/create_project.R
permissive
nschiett/fishproject
R
false
false
2,909
r
#' @title Set up R project #' @description This function allows you to set up your R project structure with ease #' #' @param data Create folder called data? TRUE or FALSE #' @param output Create folder called output? TRUE or FALSE #' @param plots Create folder called plots in output? TRUE or FALSE #' @param stan Use s...
## Put comments here that give an overall description of what your ## functions do ## The function returns a list with the properties to set and get the ## initial input, and to set and get the cached inverse makeCacheMatrix <- function(x = matrix()) { inverse <- NULL set <- function(x) { m <<- x ...
/cachematrix.R
no_license
cristisor/ProgrammingAssignment2
R
false
false
1,004
r
## Put comments here that give an overall description of what your ## functions do ## The function returns a list with the properties to set and get the ## initial input, and to set and get the cached inverse makeCacheMatrix <- function(x = matrix()) { inverse <- NULL set <- function(x) { m <<- x ...
rm(list=ls()) set.seed(2016) options(digits=15) source('utility_functions.R') source('data.R') V=Vcr G = k1- rankMatrix(V)[1] # number of islands diag.V = diag(V) ts = format(Sys.time(), "%d%m%y_%H%M%S") folderName = paste0("marginal_", ts, sep = "") dir.create(path = folderName) start.time=Sys.time() M=12 rr...
/marginal.R
no_license
soumenstat89/multiplesources
R
false
false
1,728
r
rm(list=ls()) set.seed(2016) options(digits=15) source('utility_functions.R') source('data.R') V=Vcr G = k1- rankMatrix(V)[1] # number of islands diag.V = diag(V) ts = format(Sys.time(), "%d%m%y_%H%M%S") folderName = paste0("marginal_", ts, sep = "") dir.create(path = folderName) start.time=Sys.time() M=12 rr...
library(webchem) ### Name: etox_basic ### Title: Get basic information from a ETOX ID ### Aliases: etox_basic ### ** Examples ## Not run: ##D id <- get_etoxid('Triclosan', match = 'best') ##D etox_basic(id$etoxid) ##D ##D # Retrieve CAS for multiple inputs ##D ids <- c("20179", "9051") ##D out <- etox_basic(ids) ...
/data/genthat_extracted_code/webchem/examples/etox_basic.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
411
r
library(webchem) ### Name: etox_basic ### Title: Get basic information from a ETOX ID ### Aliases: etox_basic ### ** Examples ## Not run: ##D id <- get_etoxid('Triclosan', match = 'best') ##D etox_basic(id$etoxid) ##D ##D # Retrieve CAS for multiple inputs ##D ids <- c("20179", "9051") ##D out <- etox_basic(ids) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cv.R \name{exh.train.cv} \alias{exh.train.cv} \title{Cross-validation of a panel} \usage{ exh.train.cv( data, predictors, response, fixed.predictors = NULL, id = NULL, levels = base::levels(as.factor(data[[response]])), na.rm = ...
/man/exh.train.cv.Rd
no_license
xrobin/PanelomiX
R
false
true
1,675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cv.R \name{exh.train.cv} \alias{exh.train.cv} \title{Cross-validation of a panel} \usage{ exh.train.cv( data, predictors, response, fixed.predictors = NULL, id = NULL, levels = base::levels(as.factor(data[[response]])), na.rm = ...