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
# Subsetting # Select planets with diameter < 1 subset(planets_df, subset = diameter < 1) # Use order() to create positions positions <- order(planets_df$diameter) # Use positions to sort planets_df planets_df[positions, ] ## List # Vector with numerics from 1 up to 10 my_vector <- 1:10 # Matrix with numerics ...
/DataManipulation.R
no_license
rgroot1/ExploringR
R
false
false
1,744
r
# Subsetting # Select planets with diameter < 1 subset(planets_df, subset = diameter < 1) # Use order() to create positions positions <- order(planets_df$diameter) # Use positions to sort planets_df planets_df[positions, ] ## List # Vector with numerics from 1 up to 10 my_vector <- 1:10 # Matrix with numerics ...
% $Id: outlier.Rd 238 2021-07-11 16:12:17Z X022278 $ \name{outlier.ap} \alias{outlier.ap} \alias{outlier.ap.plot} \alias{outlierC.ap} \title{ Detection of outliers in benchmark models } \description{ The functions implements the Wilson (1993) outlier detection method. One written entirely in R and anothe...
/man/outlier.Rd
no_license
cran/Benchmarking
R
false
false
4,379
rd
% $Id: outlier.Rd 238 2021-07-11 16:12:17Z X022278 $ \name{outlier.ap} \alias{outlier.ap} \alias{outlier.ap.plot} \alias{outlierC.ap} \title{ Detection of outliers in benchmark models } \description{ The functions implements the Wilson (1993) outlier detection method. One written entirely in R and anothe...
## TMAO <- TMAO_1_4_5[!is.na(TMAO_1_4_5$heart_ultrasound),] fac <- TMAO$heart_ultrasound ## #TMAO_1_4_5$group <- TMAO$TMAO_group TMAO %>% get_num() %>% sapply(get_stat_num) -> a#total summary TMAO %>% filter(get("heart_ultrasound") == levels(fac)[1]) %>% get_num() %>% sapply(get_stat_num) -> b#summary for gr...
/02_scripts/demo/超声分组三列表.R
no_license
jixing475/workflower2office
R
false
false
925
r
## TMAO <- TMAO_1_4_5[!is.na(TMAO_1_4_5$heart_ultrasound),] fac <- TMAO$heart_ultrasound ## #TMAO_1_4_5$group <- TMAO$TMAO_group TMAO %>% get_num() %>% sapply(get_stat_num) -> a#total summary TMAO %>% filter(get("heart_ultrasound") == levels(fac)[1]) %>% get_num() %>% sapply(get_stat_num) -> b#summary for gr...
library(xlsx) #读取fv~he的数据 #在同三个nozzle内(30g,32g,34g)内,9组不同 #不同流量不同针头下的数据 #针头为30g na<-read.xlsx("he-30g.xlsx",sheetName="2kv18",header=TRUE) nb<-read.xlsx("he-30g.xlsx",sheetName="2kv54",header=TRUE) nc<-read.xlsx("he-30g.xlsx",sheetName="2kv180",header=TRUE) na16<-read.xlsx("he-30g.xlsx",sheetName="16kv",header=TRUE)...
/nozzles/fe_kv_30g.R
permissive
shuaimeng/r
R
false
false
3,344
r
library(xlsx) #读取fv~he的数据 #在同三个nozzle内(30g,32g,34g)内,9组不同 #不同流量不同针头下的数据 #针头为30g na<-read.xlsx("he-30g.xlsx",sheetName="2kv18",header=TRUE) nb<-read.xlsx("he-30g.xlsx",sheetName="2kv54",header=TRUE) nc<-read.xlsx("he-30g.xlsx",sheetName="2kv180",header=TRUE) na16<-read.xlsx("he-30g.xlsx",sheetName="16kv",header=TRUE)...
# Este es otro ejemplo x <- rnorm(100) hist(x)
/ej1.R
no_license
eliassevilla/BS
R
false
false
48
r
# Este es otro ejemplo x <- rnorm(100) hist(x)
library(lineup) ### Name: disteg ### Title: Calculate distance between two gene expression data sets ### Aliases: disteg ### Keywords: utilities ### ** Examples library(qtl) # load example data data(f2cross, expr1, pmap, genepos) ## Don't show: keep <- c(1:20, 197, 553, 573, 740, 794, 822, 1474, 1522, 1...
/data/genthat_extracted_code/lineup/examples/disteg.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,214
r
library(lineup) ### Name: disteg ### Title: Calculate distance between two gene expression data sets ### Aliases: disteg ### Keywords: utilities ### ** Examples library(qtl) # load example data data(f2cross, expr1, pmap, genepos) ## Don't show: keep <- c(1:20, 197, 553, 573, 740, 794, 822, 1474, 1522, 1...
household_power_consumption <- read.csv("C:/Users/user/Dropbox/coursera/exploratory data/exdata_data_household_power_consumption/household_power_consumption.txt", sep=";", na.string="?") shortdata<-household_power_consumption[household_power_consumption$Date %in% c("1/2/2007", "2/2/2007"), ] shortdata$DateTime <- as.PO...
/Plot3.R
no_license
VioletaMisheva/ExData_Plotting1
R
false
false
817
r
household_power_consumption <- read.csv("C:/Users/user/Dropbox/coursera/exploratory data/exdata_data_household_power_consumption/household_power_consumption.txt", sep=";", na.string="?") shortdata<-household_power_consumption[household_power_consumption$Date %in% c("1/2/2007", "2/2/2007"), ] shortdata$DateTime <- as.PO...
## Getting and Cleaning Data. Final Project ## Goal: Load, merg, and clean the data, then condense into ## Average data for each variable. ## ## ## Import packages library(dplyr) library(tidyr) ## Read in Train and Test files, activity files, and subject files and merge into one Dataframe ## using cbind() and dyp...
/run_analysis.R
no_license
JHammer268/Getting-and-Cleaning-Data-Wk4
R
false
false
3,959
r
## Getting and Cleaning Data. Final Project ## Goal: Load, merg, and clean the data, then condense into ## Average data for each variable. ## ## ## Import packages library(dplyr) library(tidyr) ## Read in Train and Test files, activity files, and subject files and merge into one Dataframe ## using cbind() and dyp...
# Packages library(readr) library(dplyr) # Read in the .csv's test_set <- read.csv("data/raw/tor_test_set_mob_home.csv") cv_set <- read.csv("data/raw/tor_cv_set_mob_home.csv") training_set <- read.csv("data/raw/tor_train_set_mob_home.csv") # 0 is the lowest DAMAGE_PROPERTY value # Its also by-far the most abun...
/Old_Code/R/37_get_no_zeros_mob_home_data.R
no_license
jdiaz4302/tornadoesr
R
false
false
1,030
r
# Packages library(readr) library(dplyr) # Read in the .csv's test_set <- read.csv("data/raw/tor_test_set_mob_home.csv") cv_set <- read.csv("data/raw/tor_cv_set_mob_home.csv") training_set <- read.csv("data/raw/tor_train_set_mob_home.csv") # 0 is the lowest DAMAGE_PROPERTY value # Its also by-far the most abun...
\name{gadm_remove} \alias{gadm_remove} \alias{gadm.remove} \title{ Remove one or more regions from a map } \description{ Remove the polygons of one or more regions from a map. } \usage{ gadm_remove(x, level=NULL, regions=NULL) gadm.remove(x, level=NULL, regions=NULL) # deprecated } \arguments{ \item{x}{ \bo...
/man/gadm_remove.Rd
no_license
Epiconcept-Paris/GADMTools
R
false
false
942
rd
\name{gadm_remove} \alias{gadm_remove} \alias{gadm.remove} \title{ Remove one or more regions from a map } \description{ Remove the polygons of one or more regions from a map. } \usage{ gadm_remove(x, level=NULL, regions=NULL) gadm.remove(x, level=NULL, regions=NULL) # deprecated } \arguments{ \item{x}{ \bo...
#' Return a table of PharmacoSets available for download #' #' The function fetches a table of all PharmacoSets available for download. #' The table includes the dataset names, version information for the data in the PSet, #' the date of last update, the name of the PSet, and references for the data contained within,...
/R/downloadPSet.R
no_license
saisaitian/PharmacoGx
R
false
false
4,585
r
#' Return a table of PharmacoSets available for download #' #' The function fetches a table of all PharmacoSets available for download. #' The table includes the dataset names, version information for the data in the PSet, #' the date of last update, the name of the PSet, and references for the data contained within,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rivals.r \docType{data} \name{rivals} \alias{rivals} \title{Rivals Recruiting Ranking Data} \format{ An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 1558 rows and 9 columns. } \usage{ ri...
/man/rivals.Rd
no_license
lebebr01/ncaafb
R
false
true
415
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rivals.r \docType{data} \name{rivals} \alias{rivals} \title{Rivals Recruiting Ranking Data} \format{ An object of class \code{spec_tbl_df} (inherits from \code{tbl_df}, \code{tbl}, \code{data.frame}) with 1558 rows and 9 columns. } \usage{ ri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/omake.R \name{timer} \alias{timer} \title{Measure the time and display original message.} \usage{ timer( StopTime, MESSAGE = "STOP!!", disp = T, units = "secs", cex = 5, font = 1, col = 1, family = "" ) } \arguments{ \item{Sto...
/man/timer.Rd
permissive
takuizum/irtfun2
R
false
true
830
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/omake.R \name{timer} \alias{timer} \title{Measure the time and display original message.} \usage{ timer( StopTime, MESSAGE = "STOP!!", disp = T, units = "secs", cex = 5, font = 1, col = 1, family = "" ) } \arguments{ \item{Sto...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inputs.R \name{robyn_inputs} \alias{robyn_inputs} \title{Input data sanity check & transformation} \usage{ robyn_inputs( dt_input = NULL, dt_holidays = NULL, date_var = "auto", dep_var = NULL, dep_var_type = NULL, prophet_vars = N...
/R/man/robyn_inputs.Rd
permissive
jtatineni/Robyn
R
false
true
8,124
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/inputs.R \name{robyn_inputs} \alias{robyn_inputs} \title{Input data sanity check & transformation} \usage{ robyn_inputs( dt_input = NULL, dt_holidays = NULL, date_var = "auto", dep_var = NULL, dep_var_type = NULL, prophet_vars = N...
# Copyright 2019-2022 by Robert M. Kirkpatrick # Licensed under CC BY 4.0 <http://creativecommons.org/licenses/by/4.0/> # Demonstration of fitting an independent-pathway model. # Parameterization: loadings onto the IPs are free, IP's variances fixed to 1.0. set.seed(1705160) library(mvtnorm) library(Matrix) library(O...
/IndePthwy_dV.R
permissive
RMKirkpatrick/mxGREMLdemos
R
false
false
13,050
r
# Copyright 2019-2022 by Robert M. Kirkpatrick # Licensed under CC BY 4.0 <http://creativecommons.org/licenses/by/4.0/> # Demonstration of fitting an independent-pathway model. # Parameterization: loadings onto the IPs are free, IP's variances fixed to 1.0. set.seed(1705160) library(mvtnorm) library(Matrix) library(O...
# R BASICS # this is a comment # variable assignments min_var = 0 max_var <- 500 # run code by putting your cursor on the line # then hit run (or Ctr/Cmd + Enter) # Functions are called with a name followed by a set of parenthesis # Function arguments are inside the parenthesis # this prints ‘0’ print(min_var) # t...
/AU19 - R Tidyverse/Code/TidyComplete.R
no_license
OhioStateBDAA/Education
R
false
false
4,503
r
# R BASICS # this is a comment # variable assignments min_var = 0 max_var <- 500 # run code by putting your cursor on the line # then hit run (or Ctr/Cmd + Enter) # Functions are called with a name followed by a set of parenthesis # Function arguments are inside the parenthesis # this prints ‘0’ print(min_var) # t...
\docType{package} \name{RMendeley} \alias{RMendeley} \alias{RMendeley-package} \alias{package-RMendeley} \title{RMendeley - A programmatic interface to the Web Service methods provided by the Mendeley open science} \description{ This is version 1.0.0 of package RMendeley. User specific API methods require obtaining...
/man/RMendeley.Rd
no_license
imclab/RMendeley
R
false
false
2,910
rd
\docType{package} \name{RMendeley} \alias{RMendeley} \alias{RMendeley-package} \alias{package-RMendeley} \title{RMendeley - A programmatic interface to the Web Service methods provided by the Mendeley open science} \description{ This is version 1.0.0 of package RMendeley. User specific API methods require obtaining...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/split2.crd.R \name{split2.crd} \alias{split2.crd} \title{Split-plots in CRD} \usage{ split2.crd( factor1, factor2, repet, resp, quali = c(TRUE, TRUE), mcomp = "tukey", fac.names = c("F1", "F2"), sigT = 0.05, sigF = 0.05, u...
/man/split2.crd.Rd
no_license
cran/ExpDes
R
false
true
2,725
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/split2.crd.R \name{split2.crd} \alias{split2.crd} \title{Split-plots in CRD} \usage{ split2.crd( factor1, factor2, repet, resp, quali = c(TRUE, TRUE), mcomp = "tukey", fac.names = c("F1", "F2"), sigT = 0.05, sigF = 0.05, u...
message("Bivariate Probit models") example(biprobit) message("Polygenic models") example(bptwin) example(twinlm) message("Clayton-Oakes, Two-stage") example(ClaytonOakes) example(twostage) message("Pairwise-Odds-Ratio") example(binomial.twostage) example(easy.binomial.twostage) message("Bivariate competing risks") ...
/demo/models.R
no_license
kkholst/mets
R
false
false
342
r
message("Bivariate Probit models") example(biprobit) message("Polygenic models") example(bptwin) example(twinlm) message("Clayton-Oakes, Two-stage") example(ClaytonOakes) example(twostage) message("Pairwise-Odds-Ratio") example(binomial.twostage) example(easy.binomial.twostage) message("Bivariate competing risks") ...
## # loading the libraries library(biomaRt) library(ensembldb) library(EnsDb.Hsapiens.v86) library(GenomicFeatures) gene.file <- read.csv("HALLMARK_REACTIVE_OXIGEN_SPECIES_PATHWAY.csv", header=T, stringsAsFactors=F) genes <- gene.file$gene ensembl.id <- genes(EnsDb.Hsapiens.v86, filter=list(GeneNa...
/Data/MSigDB/HALLMARK_REACTIVE_OXIGEN_SPECIES_PATHWAY/ensembl.id.R
no_license
haoboguo/NetBAS
R
false
false
576
r
## # loading the libraries library(biomaRt) library(ensembldb) library(EnsDb.Hsapiens.v86) library(GenomicFeatures) gene.file <- read.csv("HALLMARK_REACTIVE_OXIGEN_SPECIES_PATHWAY.csv", header=T, stringsAsFactors=F) genes <- gene.file$gene ensembl.id <- genes(EnsDb.Hsapiens.v86, filter=list(GeneNa...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 14878 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 14878 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#29.asp/ctrl.e#1.a#3.E#124.A#48.c#.w#5.s#29.asp.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
732
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 14878 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 14878 c c Input Parameter (command line, file): c input filename QBFLIB/Amendola-Ricca-Truszczynski/selection-hard/ctrl.e#1.a#...
.overDF = function(r, data, n, returnList, fn, ...) { if (returnList == FALSE && is.null(fn)) ret = data[sapply(r, function(x) x[1]), , drop=FALSE] else { ret = lapply(1:n, function(x) data[r[[x]],,drop=FALSE]) # list of data.frames if (returnList == FALSE) { # apply fn: ret = do.call(rbind, # rbind each agg...
/sp/R/over.R
no_license
radfordneal/R-package-mods
R
false
false
7,097
r
.overDF = function(r, data, n, returnList, fn, ...) { if (returnList == FALSE && is.null(fn)) ret = data[sapply(r, function(x) x[1]), , drop=FALSE] else { ret = lapply(1:n, function(x) data[r[[x]],,drop=FALSE]) # list of data.frames if (returnList == FALSE) { # apply fn: ret = do.call(rbind, # rbind each agg...
## Exploratory Data Analysis, Project 1, Plot 2 full_data <- read.csv2("household_power_consumption.txt", sep = ";", na.strings = "?", colClasses = "character") data <- full_data[with(full_data, Date == "1/2/2007" | Date == "2/2/2007"), ] x <- data[, 1] # x <- weekdays(as.Date(x)) x <- c(1:leng...
/plot2.R
no_license
cmdr/ExData_Plotting1
R
false
false
684
r
## Exploratory Data Analysis, Project 1, Plot 2 full_data <- read.csv2("household_power_consumption.txt", sep = ";", na.strings = "?", colClasses = "character") data <- full_data[with(full_data, Date == "1/2/2007" | Date == "2/2/2007"), ] x <- data[, 1] # x <- weekdays(as.Date(x)) x <- c(1:leng...
enclass <- function(x, class) { class(x) <- c(class, class(x)) x }
/R/utils_oop.R
permissive
kendonB/targets
R
false
false
71
r
enclass <- function(x, class) { class(x) <- c(class, class(x)) x }
context("svd tidiers") mat <- scale(as.matrix(USJudgeRatings)) s <- svd(mat) p <- prcomp(mat) test_that("svd tidiers work", { td <- tidy(s, matrix = "u") check_tidy(td, exp.row = 516, exp.col = 3) td <- tidy(s, matrix = "d") check_tidy(td, exp.row = 12, exp.col = 4) td <- tidy(s, matrix = "v") check_tid...
/tests/testthat/test-svd.R
no_license
talgalili/broom
R
false
false
1,558
r
context("svd tidiers") mat <- scale(as.matrix(USJudgeRatings)) s <- svd(mat) p <- prcomp(mat) test_that("svd tidiers work", { td <- tidy(s, matrix = "u") check_tidy(td, exp.row = 516, exp.col = 3) td <- tidy(s, matrix = "d") check_tidy(td, exp.row = 12, exp.col = 4) td <- tidy(s, matrix = "v") check_tid...
context("consume tricky data") ss <- gs_key(pts_key, lookup = FALSE, visibility = "public", verbose = FALSE) test_that("We can handle embedded empty cells via csv", { dat_csv <- ss %>% get_via_csv("embedded_empty_cells") expect_equal(dim(dat_csv), c(7L, 7L)) expect_equal(which(is.na(dat_csv$country)), c(3L, 5L...
/tests/testthat/test-consume-data-tricky.R
permissive
johnfrye/googlesheets
R
false
false
5,121
r
context("consume tricky data") ss <- gs_key(pts_key, lookup = FALSE, visibility = "public", verbose = FALSE) test_that("We can handle embedded empty cells via csv", { dat_csv <- ss %>% get_via_csv("embedded_empty_cells") expect_equal(dim(dat_csv), c(7L, 7L)) expect_equal(which(is.na(dat_csv$country)), c(3L, 5L...
testlist <- list(lambda = NaN, logq = NaN, nu = NaN, p = NaN, tol = 0) result <- do.call(COMPoissonReg:::qzicmp_cpp,testlist) str(result)
/COMPoissonReg/inst/testfiles/qzicmp_cpp/libFuzzer_qzicmp_cpp/qzicmp_cpp_valgrind_files/1612729203-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
137
r
testlist <- list(lambda = NaN, logq = NaN, nu = NaN, p = NaN, tol = 0) result <- do.call(COMPoissonReg:::qzicmp_cpp,testlist) str(result)
################################################################### # WATERSHED DELINEATION # ################################################################### # This code takes a DEM of the place of interest, # fills sinks, creates a channel system (and produces # a shapefile of streams), and then take...
/Raven Modelling Library/Spatial Processing/Watershed.R
no_license
mchernos/R-Hydro-Library
R
false
false
6,154
r
################################################################### # WATERSHED DELINEATION # ################################################################### # This code takes a DEM of the place of interest, # fills sinks, creates a channel system (and produces # a shapefile of streams), and then take...
library(plyr) source("model2-likelihoods.R") source("model2-posteriors.R") init.model2 <- function(nc) { model <- list() model$class <- list(p=numeric(nc)) model$miss.rvsp <- list(p=0) model$miss.rhd <- list(p=0) model$miss.pfvc <- list(p=0) model$miss.pdlco <- list(p=0) model$classes <- list() for ...
/model1/model1-estimate.R
permissive
pschulam-attic/sclero-models
R
false
false
2,355
r
library(plyr) source("model2-likelihoods.R") source("model2-posteriors.R") init.model2 <- function(nc) { model <- list() model$class <- list(p=numeric(nc)) model$miss.rvsp <- list(p=0) model$miss.rhd <- list(p=0) model$miss.pfvc <- list(p=0) model$miss.pdlco <- list(p=0) model$classes <- list() for ...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( titlePanel("新春金多寶"), img(s...
/CNYMark6/app.R
no_license
fungyip/Mark6CNY
R
false
false
1,031
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define UI for application that draws a histogram ui <- fluidPage( titlePanel("新春金多寶"), img(s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dprime.R \name{dprime} \alias{dprime} \title{Calculates Signal Detection Theory indices.} \usage{ dprime(n_hit, n_miss, n_fa, n_cr) } \arguments{ \item{n_hit}{Number of hits.} \item{n_miss}{Number of misses.} \item{n_fa}{Number...
/man/dprime.Rd
no_license
cran/neuropsychology
R
false
true
2,233
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dprime.R \name{dprime} \alias{dprime} \title{Calculates Signal Detection Theory indices.} \usage{ dprime(n_hit, n_miss, n_fa, n_cr) } \arguments{ \item{n_hit}{Number of hits.} \item{n_miss}{Number of misses.} \item{n_fa}{Number...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tagmanager_objects.R \name{UserAccess} \alias{UserAccess} \title{UserAccess Object} \usage{ UserAccess(accountAccess = NULL, accountId = NULL, containerAccess = NULL, emailAddress = NULL, permissionId = NULL) } \arguments{ \item{accountAcce...
/googletagmanagerv1.auto/man/UserAccess.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
744
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tagmanager_objects.R \name{UserAccess} \alias{UserAccess} \title{UserAccess Object} \usage{ UserAccess(accountAccess = NULL, accountId = NULL, containerAccess = NULL, emailAddress = NULL, permissionId = NULL) } \arguments{ \item{accountAcce...
library(phyloseq) set.seed(242) mytopk <- function (k, na.rm = TRUE) { function(x) { if (na.rm) { x = x[!is.na(x)] } x >= sort(x, decreasing = TRUE)[k] & x > 0 } } map <- import_qiime_sample_data('/Users/Ryan/Dropbox/Selectively_Shared_Vega_Lab_Stuff/GCMP/Projects/Australia...
/4_coevolution/procedure/2_filter.r
no_license
xushifen/GCMP_Australia_Coevolution
R
false
false
9,316
r
library(phyloseq) set.seed(242) mytopk <- function (k, na.rm = TRUE) { function(x) { if (na.rm) { x = x[!is.na(x)] } x >= sort(x, decreasing = TRUE)[k] & x > 0 } } map <- import_qiime_sample_data('/Users/Ryan/Dropbox/Selectively_Shared_Vega_Lab_Stuff/GCMP/Projects/Australia...
##Load the Household Power Consumption data file ##Read the data ##Subset the data for first 2 days of Feb 2007 datafile<-"./data/household_power_consumption/household_power_consumption.txt" data<-read.table(datafile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData<-data[data$Date %in% c("1/2/20...
/plot3.R
no_license
RajasekaranKR/ExData_Plotting1
R
false
false
1,051
r
##Load the Household Power Consumption data file ##Read the data ##Subset the data for first 2 days of Feb 2007 datafile<-"./data/household_power_consumption/household_power_consumption.txt" data<-read.table(datafile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subSetData<-data[data$Date %in% c("1/2/20...
# Page no. : 497 # How are you doing? # 4th Question a <- -1.23 # Regression constant b <- 6.11 # Regression coefficient # (a) x <- 2.00 # Predictor variable y_cap <- a + (b * x) # Predicted score (Linear predictor) cat("Predicted score (Linear predict...
/Statistics_For_Psychology_by_Arthur_Aron_Elliot_J_Coups_And_Elaine_N_Aron/CH12/EX12.1b/Ex12_1b.R
permissive
FOSSEE/R_TBC_Uploads
R
false
false
682
r
# Page no. : 497 # How are you doing? # 4th Question a <- -1.23 # Regression constant b <- 6.11 # Regression coefficient # (a) x <- 2.00 # Predictor variable y_cap <- a + (b * x) # Predicted score (Linear predictor) cat("Predicted score (Linear predict...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/DiscPlot.R \name{gdocs_pal} \alias{gdocs_pal} \title{Google Docs color palette (discrete)} \usage{ gdocs_pal() } \description{ Color palettes from Google Docs. } \examples{ library(scales) show_col(gdocs_pal()(20)) } \seealso{ Other c...
/man/gdocs_pal.Rd
no_license
joshjfink/DiscDots
R
false
false
438
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/DiscPlot.R \name{gdocs_pal} \alias{gdocs_pal} \title{Google Docs color palette (discrete)} \usage{ gdocs_pal() } \description{ Color palettes from Google Docs. } \examples{ library(scales) show_col(gdocs_pal()(20)) } \seealso{ Other c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/complexity_measures_Renyi.R \name{permutation_entropy_Renyi} \alias{permutation_entropy_Renyi} \title{A function to compute Renyi entropy} \usage{ permutation_entropy_Renyi(opd, alpha) } \arguments{ \item{opd}{A numeric vector that details an...
/man/permutation_entropy_Renyi.Rd
no_license
cran/statcomp
R
false
true
845
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/complexity_measures_Renyi.R \name{permutation_entropy_Renyi} \alias{permutation_entropy_Renyi} \title{A function to compute Renyi entropy} \usage{ permutation_entropy_Renyi(opd, alpha) } \arguments{ \item{opd}{A numeric vector that details an...
#' Fit a spatial model with INLA #' #' This function fits a spatial model using Gaussian random fields with INLA. #' The function is not intended to be used directly by the user, but #' documentation is included so that you can see the argument values that you #' might pass from [fit_survey_sets()]. It is called intern...
/R/fit-inla.R
no_license
chuanboguo/gfplot
R
false
false
6,610
r
#' Fit a spatial model with INLA #' #' This function fits a spatial model using Gaussian random fields with INLA. #' The function is not intended to be used directly by the user, but #' documentation is included so that you can see the argument values that you #' might pass from [fit_survey_sets()]. It is called intern...
## Load the libraries required to run this script library(sqldf) ## Load the data required for the project 1 ## Load only the data that contains dates 2/1/2007 and 2/2/2007 ## Total of 2880 obsercations of 9 variables ## Make sure that the project file is unzipped and placed in current working directory ## (This script...
/plot3.R
no_license
karthikrv82/ExData_Plotting1
R
false
false
1,422
r
## Load the libraries required to run this script library(sqldf) ## Load the data required for the project 1 ## Load only the data that contains dates 2/1/2007 and 2/2/2007 ## Total of 2880 obsercations of 9 variables ## Make sure that the project file is unzipped and placed in current working directory ## (This script...
library(shiny) library('e1071') source('main_prepareData.R') shinyServer(function(input, output, session) { selAll <- observeEvent(input$SelectAll, { updateCheckboxGroupInput(session,"Retailers", selected=as.character(c(4,9:12))) }) delALL <- observeEvent(input$DelAll, { updateCheckboxGroupInput(session,"...
/All Projects/rentProject/server.R
no_license
xiao-tian/R272Samples
R
false
false
2,135
r
library(shiny) library('e1071') source('main_prepareData.R') shinyServer(function(input, output, session) { selAll <- observeEvent(input$SelectAll, { updateCheckboxGroupInput(session,"Retailers", selected=as.character(c(4,9:12))) }) delALL <- observeEvent(input$DelAll, { updateCheckboxGroupInput(session,"...
# Trading Strategy: Trend-Following # Technical Indicators: Fast and Slow SMA # Optimization/Walk Forward Analysis: Yes/No # 1. Pacakges #### library("quantstrat") rm(list = ls()) dev.off(dev.list()["RStudioGD"]) # 2. Setup #### # 2.1. Initial Settings init.portf <- '2007-12-31' start.date <- '2008-01-01' end.date <-...
/Trading Strategies/TrendFollowing-SMA-Opt.R
no_license
idiaz01/Rquant
R
false
false
5,740
r
# Trading Strategy: Trend-Following # Technical Indicators: Fast and Slow SMA # Optimization/Walk Forward Analysis: Yes/No # 1. Pacakges #### library("quantstrat") rm(list = ls()) dev.off(dev.list()["RStudioGD"]) # 2. Setup #### # 2.1. Initial Settings init.portf <- '2007-12-31' start.date <- '2008-01-01' end.date <-...
################################## ## ## == A reuse distance based GPU cache model ## This file is part of a cache model for GPUs. The cache model is based on ## reuse distance theory extended to work with GPUs. The cache model primarly ## focusses on modelling NVIDIA's Fermi architecture. ## ## == More information on ...
/src/visualiser/common.r
permissive
winniezhou0/gpu-cache-model
R
false
false
1,770
r
################################## ## ## == A reuse distance based GPU cache model ## This file is part of a cache model for GPUs. The cache model is based on ## reuse distance theory extended to work with GPUs. The cache model primarly ## focusses on modelling NVIDIA's Fermi architecture. ## ## == More information on ...
#LESSON_1 #1.Try read.csv() and read.table() to import "swimming_pools.csv" as a data frame with the name pools. pools <- read.csv("C:/Users/THINK/Desktop/swimming_pools.csv", header = TRUE) #2.Try write.table(), dput(), and save() functions to write pools to files. write.table (pools, file ="C:/Users/THINK/Deskt...
/SC2019Lab-1-马思汝-16081037.R
no_license
anhnguyendepocen/SC2019-assignments
R
false
false
2,346
r
#LESSON_1 #1.Try read.csv() and read.table() to import "swimming_pools.csv" as a data frame with the name pools. pools <- read.csv("C:/Users/THINK/Desktop/swimming_pools.csv", header = TRUE) #2.Try write.table(), dput(), and save() functions to write pools to files. write.table (pools, file ="C:/Users/THINK/Deskt...
\name{PLOTR} \alias{PLOTR} \title{Create Diagnostic Plots for a NONMEM Run} \description{ \code{PLOTR} is a function to generate diagnostic plots and/or covariate evaluation plots following a successful NONMEM run. It is called by \code{NONR} if diagnostic plots are requested or can be called independently follo...
/man/PLOTR.Rd
no_license
metrumresearchgroup/metrumrg
R
false
false
7,012
rd
\name{PLOTR} \alias{PLOTR} \title{Create Diagnostic Plots for a NONMEM Run} \description{ \code{PLOTR} is a function to generate diagnostic plots and/or covariate evaluation plots following a successful NONMEM run. It is called by \code{NONR} if diagnostic plots are requested or can be called independently follo...
#load the library library("twitteR") library("NLP") library("tm") library("wordcloud") library("RColorBrewer") library("SnowballC") library("syuzhet") #Twitter API credentials api_key <- "Your API key" api_secret <- "Your API secret" token_key <- "Your Token Key" token_secret <- "Your Token secret" #Connect to Twitt...
/analyseIoTtweets.R
no_license
gosuddin/IoT-Sentimental-Analysis
R
false
false
1,511
r
#load the library library("twitteR") library("NLP") library("tm") library("wordcloud") library("RColorBrewer") library("SnowballC") library("syuzhet") #Twitter API credentials api_key <- "Your API key" api_secret <- "Your API secret" token_key <- "Your Token Key" token_secret <- "Your Token secret" #Connect to Twitt...
#' Train models within a model grid #' #' The S3 method of the train function for the 'model_grid' class consolidates #' all model (and training) configurations from a model grid and #' trains them with the train function from the caret package. #' #' @param mg \code{model_grid} #' @param train_all \code{logical} if se...
/R/train_model_grid.R
no_license
smaakage85/modelgrid
R
false
false
4,238
r
#' Train models within a model grid #' #' The S3 method of the train function for the 'model_grid' class consolidates #' all model (and training) configurations from a model grid and #' trains them with the train function from the caret package. #' #' @param mg \code{model_grid} #' @param train_all \code{logical} if se...
#### Plot 4 #### ## uploading data ## # uploading the data, separating the text file by "; powdata = read.table("household_power_consumption.txt", sep = ";") # making the top row be the name of the columns colnames(powdata) = as.character(unlist(powdata[1,])) powdata = powdata[-1, ] # getting the dat...
/Plot4.R
no_license
fisch2332/ExData_Plotting1
R
false
false
1,590
r
#### Plot 4 #### ## uploading data ## # uploading the data, separating the text file by "; powdata = read.table("household_power_consumption.txt", sep = ";") # making the top row be the name of the columns colnames(powdata) = as.character(unlist(powdata[1,])) powdata = powdata[-1, ] # getting the dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emmeans.R \name{emmobj} \alias{emmobj} \title{Construct an \code{emmGrid} object from scratch} \usage{ emmobj(bhat, V, levels, linfct = diag(length(bhat)), df = NA, dffun, dfargs = list(), post.beta = matrix(NA), ...) } \arguments{ \item{bh...
/man/emmobj.Rd
no_license
singmann/emmeans
R
false
true
3,399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/emmeans.R \name{emmobj} \alias{emmobj} \title{Construct an \code{emmGrid} object from scratch} \usage{ emmobj(bhat, V, levels, linfct = diag(length(bhat)), df = NA, dffun, dfargs = list(), post.beta = matrix(NA), ...) } \arguments{ \item{bh...
###########################################################################/** # @RdocClass RspRSourceCode # # @title "The RspRSourceCode class" # # \description{ # @classhierarchy # # An RspRSourceCode object is an @see "RspSourceCode" holding R source code. # } # # @synopsis # # \arguments{ # \item{...}{@characte...
/R/RspRSourceCode.R
no_license
HenrikBengtsson/R.rsp
R
false
false
6,742
r
###########################################################################/** # @RdocClass RspRSourceCode # # @title "The RspRSourceCode class" # # \description{ # @classhierarchy # # An RspRSourceCode object is an @see "RspSourceCode" holding R source code. # } # # @synopsis # # \arguments{ # \item{...}{@characte...
source("../functions/global_var.R") mystate0 = get_state0("../data/ct_init.csv") myparams = yaml.load_file("../parameters/params.yml") myposterior = read.csv("../data/posterior_a036.csv", stringsAsFactors=FALSE) mydaymax = ymd("2020-09-01") myschools_reopen_date = ymd("3000-01-01") mytesting_on_date ...
/functions/plot_calibration.R
permissive
fcrawford/covid19_ct
R
false
false
1,627
r
source("../functions/global_var.R") mystate0 = get_state0("../data/ct_init.csv") myparams = yaml.load_file("../parameters/params.yml") myposterior = read.csv("../data/posterior_a036.csv", stringsAsFactors=FALSE) mydaymax = ymd("2020-09-01") myschools_reopen_date = ymd("3000-01-01") mytesting_on_date ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feed.list.R \name{feed.list} \alias{feed.list} \title{feed.list} \usage{ feed.list(category = "https://www.feedipedia.org/content/feeds?category=All") } \arguments{ \item{category}{A category that you want to find(all; forage; plantProduct; a...
/man/feed.list.Rd
no_license
lovetoken/feed
R
false
true
559
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/feed.list.R \name{feed.list} \alias{feed.list} \title{feed.list} \usage{ feed.list(category = "https://www.feedipedia.org/content/feeds?category=All") } \arguments{ \item{category}{A category that you want to find(all; forage; plantProduct; a...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') check.deeplearning_autoencoder <- function(conn) { Log.info("Deep Learning Autoencoder MNIST)") train_hex = h2o.uploadFile(conn, locate("bigdata/laptop/mnist/train.csv.gz")) test_hex = h2o.uploadFile(conn...
/h2o-r/tests/testdir_algos/deeplearning/runit_deeplearning_autoencoder_large.R
permissive
udemirezen/h2o-dev
R
false
false
2,831
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../../h2o-runit.R') check.deeplearning_autoencoder <- function(conn) { Log.info("Deep Learning Autoencoder MNIST)") train_hex = h2o.uploadFile(conn, locate("bigdata/laptop/mnist/train.csv.gz")) test_hex = h2o.uploadFile(conn...
library(shiny) library(ggplot2) shinyServer(function(input, output) { dataset=reactive(iris[(iris$Sepal.Length>=input$Sepal.Length[1] & iris$Sepal.Length<=input$Sepal.Length[2]& iris$Sepal.Width>=input$Sepal.Width[1] & iris$Sepal.Width<=input$Sepal.Width[2]& ...
/server.R
permissive
patilv/shinyApp
R
false
false
1,006
r
library(shiny) library(ggplot2) shinyServer(function(input, output) { dataset=reactive(iris[(iris$Sepal.Length>=input$Sepal.Length[1] & iris$Sepal.Length<=input$Sepal.Length[2]& iris$Sepal.Width>=input$Sepal.Width[1] & iris$Sepal.Width<=input$Sepal.Width[2]& ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotFoldEnrichment.R \name{plotFoldEnrichment} \alias{plotFoldEnrichment} \title{plotFoldEnrichment} \usage{ plotFoldEnrichment(de_res, pval, N) } \arguments{ \item{de_res}{Dataframe. Generated using \code{\link{diffEnrich}}} \item{pval}{Num...
/man/plotFoldEnrichment.Rd
no_license
SabaLab/diffEnrich
R
false
true
2,165
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotFoldEnrichment.R \name{plotFoldEnrichment} \alias{plotFoldEnrichment} \title{plotFoldEnrichment} \usage{ plotFoldEnrichment(de_res, pval, N) } \arguments{ \item{de_res}{Dataframe. Generated using \code{\link{diffEnrich}}} \item{pval}{Num...
library(Ecfun) ### Name: matchName ### Title: Match surname and givenName in a table ### Aliases: matchName matchName1 ### Keywords: manip ### ** Examples ## ## 1. Names to match exercising many possibile combinations ## of surname with 0, 1, >1 matches possibly after ## replacing with subNonStandardName...
/data/genthat_extracted_code/Ecfun/examples/matchName.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
3,173
r
library(Ecfun) ### Name: matchName ### Title: Match surname and givenName in a table ### Aliases: matchName matchName1 ### Keywords: manip ### ** Examples ## ## 1. Names to match exercising many possibile combinations ## of surname with 0, 1, >1 matches possibly after ## replacing with subNonStandardName...
\name{GitTest-package} \alias{GitTest-package} \alias{GitTest} \docType{package} \title{ \packageTitle{GitTest} } \description{ \packageDescription{GitTest} } \details{ The DESCRIPTION file: \packageDESCRIPTION{GitTest} En este paquete hay una serie de funciones prueba: rest, es.divisible, IMC y IMG \packageIndices{Gi...
/man/GitTest-package.Rd
no_license
Nomarsky/GitTest_2
R
false
false
903
rd
\name{GitTest-package} \alias{GitTest-package} \alias{GitTest} \docType{package} \title{ \packageTitle{GitTest} } \description{ \packageDescription{GitTest} } \details{ The DESCRIPTION file: \packageDESCRIPTION{GitTest} En este paquete hay una serie de funciones prueba: rest, es.divisible, IMC y IMG \packageIndices{Gi...
library(data.tree) library(dplyr) # https://www.coursera.org/learn/data-science-project/supplement/SKIQt/task-4-prediction-model # Questions to consider # # How does the model perform for different choices of the parameters and size of the model? # How much does the model slow down for the performance you gain? # Doe...
/modeling.R
no_license
ranalytica/10_capstone
R
false
false
4,816
r
library(data.tree) library(dplyr) # https://www.coursera.org/learn/data-science-project/supplement/SKIQt/task-4-prediction-model # Questions to consider # # How does the model perform for different choices of the parameters and size of the model? # How much does the model slow down for the performance you gain? # Doe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FS.r \name{FS} \alias{FS} \title{Filter and Feature Selection based on Wilcoxon Rank-Sum test} \usage{ FS(training = data, type_col = 2, col_start = 3, Cutoff_mean = 5e-04, Cutoff_ratio = 0.1, totalReadsCutoff = 500) } \arguments{ \item{tra...
/man/FS.Rd
permissive
qunfengdong/DMBC_old
R
false
true
1,582
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FS.r \name{FS} \alias{FS} \title{Filter and Feature Selection based on Wilcoxon Rank-Sum test} \usage{ FS(training = data, type_col = 2, col_start = 3, Cutoff_mean = 5e-04, Cutoff_ratio = 0.1, totalReadsCutoff = 500) } \arguments{ \item{tra...
#' @title Sort data by number of arms for trial data only with 2 arm studies. #' @description The function sort existing data and create a sorted dataset depending on the number of arms #' @param out1 is the dataframe for outcome 1 #' @param out2 is the dataframe for outcome 2 #' @param TX is the dataframe for treatmen...
/R/sortbyna.2arm.R
no_license
vandy10s/mnma
R
false
false
898
r
#' @title Sort data by number of arms for trial data only with 2 arm studies. #' @description The function sort existing data and create a sorted dataset depending on the number of arms #' @param out1 is the dataframe for outcome 1 #' @param out2 is the dataframe for outcome 2 #' @param TX is the dataframe for treatmen...
#' Title #' #' @param mlest.out #' @param FtimeStart #' @param FtimeEnd #' @param warranty.time #' @param print.total #' #' @return NULL #' @export #' #' @examples #' \dontrun{ #' #' DeviceN.ld <- frame.to.ld(devicen, #' response.column = "months", #' censor.co...
/R/PredictTable.R
no_license
anhnguyendepocen/SMRD
R
false
false
1,954
r
#' Title #' #' @param mlest.out #' @param FtimeStart #' @param FtimeEnd #' @param warranty.time #' @param print.total #' #' @return NULL #' @export #' #' @examples #' \dontrun{ #' #' DeviceN.ld <- frame.to.ld(devicen, #' response.column = "months", #' censor.co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/testWrappers.R \name{ora} \alias{ora} \title{ORA} \usage{ ora(scores = NULL, hitlist = NULL, scoreColumn = 1, bigIsBetter = FALSE, logTrans = FALSE, annotation = NULL, aspects = c("Molecular Function", "Cellular Component", "Biological Pr...
/man/ora.Rd
permissive
kashenfelter/ermineR
R
false
true
5,202
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/testWrappers.R \name{ora} \alias{ora} \title{ORA} \usage{ ora(scores = NULL, hitlist = NULL, scoreColumn = 1, bigIsBetter = FALSE, logTrans = FALSE, annotation = NULL, aspects = c("Molecular Function", "Cellular Component", "Biological Pr...
library(jagsUI) library(stringr) library(dplyr) library(R.utils) library(ggplot2) library(cowplot) #setwd("/home/RMBO.LOCAL/quresh.latif/CFLRP") setwd("C:/Users/Quresh.Latif/files/projects/FS/CFLRP/") load("Data_compiled_RESQ.RData") #___ Inputs ___# mod <- loadObject("mod_RESQ_treatment_reduced") pars <- c("beta0.me...
/archive/02-RESQ_results.R
permissive
qureshlatif/CFLRP-analysis-scripts
R
false
false
4,256
r
library(jagsUI) library(stringr) library(dplyr) library(R.utils) library(ggplot2) library(cowplot) #setwd("/home/RMBO.LOCAL/quresh.latif/CFLRP") setwd("C:/Users/Quresh.Latif/files/projects/FS/CFLRP/") load("Data_compiled_RESQ.RData") #___ Inputs ___# mod <- loadObject("mod_RESQ_treatment_reduced") pars <- c("beta0.me...
############################################## # High Dimensional results with unif errors # ############################################## unifRec <- matrix(0, ncol = 3, nrow = 6 * 20) n.list <- c(100, 200, 500, 1000, 1500, 2000) unifRec[, 1] <- rep(n.list, each = 20) for(i in 1:4){ if(i <4){dat <- read.csv(past...
/additionalSims/plotMaker.R
no_license
ysamwang/highDNG
R
false
false
14,459
r
############################################## # High Dimensional results with unif errors # ############################################## unifRec <- matrix(0, ncol = 3, nrow = 6 * 20) n.list <- c(100, 200, 500, 1000, 1500, 2000) unifRec[, 1] <- rep(n.list, each = 20) for(i in 1:4){ if(i <4){dat <- read.csv(past...
Sys.setenv("R_TESTS" = "") library(testthat) library(shlltest) test_check("shlltest",reporter="summary")
/tests/testthat.R
no_license
kylebaron/shlibtest
R
false
false
105
r
Sys.setenv("R_TESTS" = "") library(testthat) library(shlltest) test_check("shlltest",reporter="summary")
\name{circle} \alias{circle} %- Also NEED an '\alias' for EACH other topic documented here. \title{circle coordinates} \description{ generate circle coordinates for plotting } \usage{ circle(n = 1, ang1=0) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{n}{number of points} \item{ang1...
/man/circle.Rd
no_license
cran/RPMG
R
false
false
617
rd
\name{circle} \alias{circle} %- Also NEED an '\alias' for EACH other topic documented here. \title{circle coordinates} \description{ generate circle coordinates for plotting } \usage{ circle(n = 1, ang1=0) } %- maybe also 'usage' for other objects documented here. \arguments{ \item{n}{number of points} \item{ang1...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/efs_operations.R \name{efs_describe_tags} \alias{efs_describe_tags} \title{Returns the tags associated with a file system} \usage{ efs_describe_tags(MaxItems, Marker, FileSystemId) } \arguments{ \item{MaxItems}{(Optional) The maximum number o...
/paws/man/efs_describe_tags.Rd
permissive
ryanb8/paws
R
false
true
1,466
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/efs_operations.R \name{efs_describe_tags} \alias{efs_describe_tags} \title{Returns the tags associated with a file system} \usage{ efs_describe_tags(MaxItems, Marker, FileSystemId) } \arguments{ \item{MaxItems}{(Optional) The maximum number o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sts.R \name{sts_dynamic_linear_regression_state_space_model} \alias{sts_dynamic_linear_regression_state_space_model} \title{State space model for a dynamic linear regression from provided covariates.} \usage{ sts_dynamic_linear_regression_sta...
/man/sts_dynamic_linear_regression_state_space_model.Rd
no_license
cran/tfprobability
R
false
true
5,174
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sts.R \name{sts_dynamic_linear_regression_state_space_model} \alias{sts_dynamic_linear_regression_state_space_model} \title{State space model for a dynamic linear regression from provided covariates.} \usage{ sts_dynamic_linear_regression_sta...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oxford-colours.R \docType{data} \name{oxgold2} \alias{oxgold2} \title{xx} \format{ } \usage{ oxgold2 } \description{ xx } \keyword{datasets}
/man/OxfordGold2.Rd
no_license
schliebs/ggoxford
R
false
true
220
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oxford-colours.R \docType{data} \name{oxgold2} \alias{oxgold2} \title{xx} \format{ } \usage{ oxgold2 } \description{ xx } \keyword{datasets}
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mars_plotting_functions.R \name{get_legend} \alias{get_legend} \title{Get Legend} \usage{ get_legend(myggplot) } \arguments{ \item{myggplot}{ggplot object} } \value{ Returns a combined legend } \description{ Pull legend from separate ggplots ...
/man/get_legend.Rd
no_license
taywater/pwdgsi
R
false
true
340
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mars_plotting_functions.R \name{get_legend} \alias{get_legend} \title{Get Legend} \usage{ get_legend(myggplot) } \arguments{ \item{myggplot}{ggplot object} } \value{ Returns a combined legend } \description{ Pull legend from separate ggplots ...
library(shiny) library(DT) mainColumns <- c("description", "databaseId", "rr", "ci95Lb", "ci95Ub", "p", "calibratedRr", "calibratedCi95Lb", "calibratedCi95Ub", "c...
/Covid19EstimationFamotidine/server.R
no_license
OHDSI/ShinyDeploy
R
false
false
27,087
r
library(shiny) library(DT) mainColumns <- c("description", "databaseId", "rr", "ci95Lb", "ci95Ub", "p", "calibratedRr", "calibratedCi95Lb", "calibratedCi95Ub", "c...
# Determining Sex-Specific Gene Expression # Sadie Allen # June 20, 2017 # This script is use to loop through gene expression data for over # 20,000 genes and determine which are significantly affected by sex ######################################################################## # FUNCT...
/scripts/week_3_scripts/sex_specific_gene_exp.R
no_license
sadiela/summer_project
R
false
false
3,134
r
# Determining Sex-Specific Gene Expression # Sadie Allen # June 20, 2017 # This script is use to loop through gene expression data for over # 20,000 genes and determine which are significantly affected by sex ######################################################################## # FUNCT...
yo = read.csv("yogurt.csv") str(yo) yo$id = factor(yo$id) str(yo) library(ggplot2) ggplot(aes(x = price), data = yo) + geom_histogram(binwidth = 10) summary(yo) length(unique(yo$price)) library(dplyr) yo = transform(yo, all.purchases = strawberry + blueberry + pina.colada + plain + mixed.berry) ggplot(aes(x = t...
/YogurtDataSetExploration.R
no_license
Arsanuos/R_Scripts
R
false
false
1,236
r
yo = read.csv("yogurt.csv") str(yo) yo$id = factor(yo$id) str(yo) library(ggplot2) ggplot(aes(x = price), data = yo) + geom_histogram(binwidth = 10) summary(yo) length(unique(yo$price)) library(dplyr) yo = transform(yo, all.purchases = strawberry + blueberry + pina.colada + plain + mixed.berry) ggplot(aes(x = t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_functions.R \name{revisions.get} \alias{revisions.get} \title{Gets a revision's metadata or content by ID.} \usage{ revisions.get(fileId, revisionId, acknowledgeAbuse = NULL) } \arguments{ \item{fileId}{The ID of the file} \item{revisi...
/googledrivev3.auto/man/revisions.get.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,585
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_functions.R \name{revisions.get} \alias{revisions.get} \title{Gets a revision's metadata or content by ID.} \usage{ revisions.get(fileId, revisionId, acknowledgeAbuse = NULL) } \arguments{ \item{fileId}{The ID of the file} \item{revisi...
library(shiny) library(DBI) library(odbc) myserver<- ifelse(Sys.info()["nodename"]=="INFRA035",'.','.\\snapman') my_ui <- fluidPage( sidebarLayout( sidebarPanel( sliderInput("cpuSlider","Minutes",min = 0,max = 256,value = 256)) ,mainPanel(plotOutput('cpuPlot')) ) ) my_server <- function(input, ou...
/01-SQL_SAT_Presentation/Demos/01-BaseApp/02-End/app.R
no_license
snowdj/shinybuilder
R
false
false
750
r
library(shiny) library(DBI) library(odbc) myserver<- ifelse(Sys.info()["nodename"]=="INFRA035",'.','.\\snapman') my_ui <- fluidPage( sidebarLayout( sidebarPanel( sliderInput("cpuSlider","Minutes",min = 0,max = 256,value = 256)) ,mainPanel(plotOutput('cpuPlot')) ) ) my_server <- function(input, ou...
# # MakeKinshipAsreml.R # - Description: ??? # # Copyright (c) 2012 Willem Kruijer and Danny Arends MakeKinshipAsreml <- function(K, genotype.names){ if(missing(K)) stop("argument 'K' is missing, with no default") if(missing(genotype.names)) stop("argument 'genotype.names' is missing, with no default") ...
/modules/xgap/plugins/cluster/R/GLS/R/MakeKinshipAsreml.r
no_license
erwinwinder/molgenis_apps
R
false
false
861
r
# # MakeKinshipAsreml.R # - Description: ??? # # Copyright (c) 2012 Willem Kruijer and Danny Arends MakeKinshipAsreml <- function(K, genotype.names){ if(missing(K)) stop("argument 'K' is missing, with no default") if(missing(genotype.names)) stop("argument 'genotype.names' is missing, with no default") ...
library(iRF) load('./data/splicing.Rdata') n.cores <- 24 set.seed(47) fit <- iRF(x=x[train.id,], y=y[train.id], n.iter=3, interactions.return=1:3, n.bootstrap=1, n.core=n.cores, varnames.grp=varnames.all$Predictor_collapsed) save(file='results_splice.Rdata', fit...
/splicing.R
no_license
sunstat/iRF-draft-Rscript
R
false
false
322
r
library(iRF) load('./data/splicing.Rdata') n.cores <- 24 set.seed(47) fit <- iRF(x=x[train.id,], y=y[train.id], n.iter=3, interactions.return=1:3, n.bootstrap=1, n.core=n.cores, varnames.grp=varnames.all$Predictor_collapsed) save(file='results_splice.Rdata', fit...
# convenience function for histograms HistFn <- function(dt, x, nb, title, xlab){ p <- dt %>% ggplot() + aes_string(x, "..density..") + xlab(xlab) + ylab("Density") + ggtitle(title) + geom_histogram( bins = nb, col = azure, fill = azure, alpha = .3) + theme_bw()...
/R/functions/Plot_Fn.R
no_license
laszlo-jakab/competitor-scale
R
false
false
3,368
r
# convenience function for histograms HistFn <- function(dt, x, nb, title, xlab){ p <- dt %>% ggplot() + aes_string(x, "..density..") + xlab(xlab) + ylab("Density") + ggtitle(title) + geom_histogram( bins = nb, col = azure, fill = azure, alpha = .3) + theme_bw()...
test_that("blblm_csv() and blblm() return similar output", { # Ensure that the two functions are equivalent set.seed(10) # Get the splits that will be used in blblm() separatedData <- mtcars %>% split_data(m = 3) # Make CSV files with those splits invisible(1:3 %>% map(function(i) { separatedData...
/tests/testthat/test-blblm_csv.R
permissive
A10theHero/blblm
R
false
false
3,162
r
test_that("blblm_csv() and blblm() return similar output", { # Ensure that the two functions are equivalent set.seed(10) # Get the splits that will be used in blblm() separatedData <- mtcars %>% split_data(m = 3) # Make CSV files with those splits invisible(1:3 %>% map(function(i) { separatedData...
#' @title Rysowanie ścieżek #' #' @description #' Funkcja służy do rysowania scieżek z danych. Szybsza wersja funkcji `plot_paths`. #' #' @param data ramka danych z kolumnami tekstowymi from i to określającymi urządzenia początkowe i końcowe oraz numeryczną #' kolumnętotal #' @param slownik ramka danych z kolumnami ...
/R/plot_paths2.R
no_license
topolskib/sciezkiCNK
R
false
false
1,279
r
#' @title Rysowanie ścieżek #' #' @description #' Funkcja służy do rysowania scieżek z danych. Szybsza wersja funkcji `plot_paths`. #' #' @param data ramka danych z kolumnami tekstowymi from i to określającymi urządzenia początkowe i końcowe oraz numeryczną #' kolumnętotal #' @param slownik ramka danych z kolumnami ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggbrain.R \name{ggbrain} \alias{ggbrain} \title{Plot brain parcellations} \usage{ ggbrain(data = NULL, atlas = "dkt", plot.areas = NULL, position = "dispersed", view = c("lateral", "medial", "axial"), hemisphere = c("right", "left"), mapp...
/man/ggbrain.Rd
no_license
didacvp/ggbrain
R
false
true
2,212
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggbrain.R \name{ggbrain} \alias{ggbrain} \title{Plot brain parcellations} \usage{ ggbrain(data = NULL, atlas = "dkt", plot.areas = NULL, position = "dispersed", view = c("lateral", "medial", "axial"), hemisphere = c("right", "left"), mapp...
# Find non triplet gaps in a nucleotide sequence hasNonImgtGaps <- function (seq) { len <- ceiling(nchar(seq)/3)*3 codons <- substring(seq, seq(1, len-2, 3), seq(3, len, 3)) gaps_lengths <- nchar(gsub("[^\\.\\-]", "", codons)) if (any(gaps_lengths %% 3 != 0)) { TRUE } else { FALSE ...
/R/evidence.R
no_license
cran/tigger
R
false
false
17,038
r
# Find non triplet gaps in a nucleotide sequence hasNonImgtGaps <- function (seq) { len <- ceiling(nchar(seq)/3)*3 codons <- substring(seq, seq(1, len-2, 3), seq(3, len, 3)) gaps_lengths <- nchar(gsub("[^\\.\\-]", "", codons)) if (any(gaps_lengths %% 3 != 0)) { TRUE } else { FALSE ...
plot_varying_nucs <- function(df, mi_table, min_MI = 0.5) { require(tidyverse) require(rlist) library(grid) library(gridExtra) plot_path = 'G:\\Covid-19\\2020_10_07\\Plots\\' temp <- mi_table %>% filter(MI >= min_MI) positions <- as.character(sort(unique(c(temp$Position_1, temp$Position_2))...
/plot_varying_nucs.R
no_license
analytic-garden/Sars-Cov-2-Mutations
R
false
false
1,020
r
plot_varying_nucs <- function(df, mi_table, min_MI = 0.5) { require(tidyverse) require(rlist) library(grid) library(gridExtra) plot_path = 'G:\\Covid-19\\2020_10_07\\Plots\\' temp <- mi_table %>% filter(MI >= min_MI) positions <- as.character(sort(unique(c(temp$Position_1, temp$Position_2))...
structure(list(url = "https://geo.vliz.be/geoserver/Emodnetbio/wfs?service=WFS&version=2.0.0&typeName=Emodnetbio:OOPS_metadata&request=DescribeFeatureType", status_code = 200L, headers = structure(list(`access-control-allow-origin` = "*", `x-frame-options` = "SAMEORIGIN", `content-disposition` = "inline; ...
/tests/fixtures/biology-info/api/wfs-0a8298.R
permissive
EMODnet/EMODnetWFS
R
false
false
13,591
r
structure(list(url = "https://geo.vliz.be/geoserver/Emodnetbio/wfs?service=WFS&version=2.0.0&typeName=Emodnetbio:OOPS_metadata&request=DescribeFeatureType", status_code = 200L, headers = structure(list(`access-control-allow-origin` = "*", `x-frame-options` = "SAMEORIGIN", `content-disposition` = "inline; ...
test_that("t-test-one-sample output", { expect_length(df_sem(dplyr::group_by(color_index, roi_id), color_index), 5) expect_equal( NROW(t_test_one_sample(dplyr::group_by(color_index, roi_id), color_index)), 8 ) })
/tests/testthat/test-df_sem.R
permissive
Irisfee/roistats
R
false
false
227
r
test_that("t-test-one-sample output", { expect_length(df_sem(dplyr::group_by(color_index, roi_id), color_index), 5) expect_equal( NROW(t_test_one_sample(dplyr::group_by(color_index, roi_id), color_index)), 8 ) })
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/concordance.indices.R \name{concordance.indices} \alias{concordance.indices} \title{Concordance} \usage{ concordance.indices(sort.boot.x, sort.boot.y, t, trim.alpha, nx, ny) } \arguments{ \item{sort.boot.x}{A matrix of the bo...
/man/concordance.indices.Rd
no_license
cran/dplRCon
R
false
false
1,109
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/concordance.indices.R \name{concordance.indices} \alias{concordance.indices} \title{Concordance} \usage{ concordance.indices(sort.boot.x, sort.boot.y, t, trim.alpha, nx, ny) } \arguments{ \item{sort.boot.x}{A matrix of the bo...
library('RUnit') source('mySd.R') test.suite <- defineTestSuite("simple", dirs = file.path("tests"), testFileRegexp = '^\\d+\\.R') test.result <- runTestSuite(test.suite) printTextProtocol(test.result)
/mySd/run_tests.R
no_license
cupp/R
R
false
false
295
r
library('RUnit') source('mySd.R') test.suite <- defineTestSuite("simple", dirs = file.path("tests"), testFileRegexp = '^\\d+\\.R') test.result <- runTestSuite(test.suite) printTextProtocol(test.result)
##Carlos Gee ##Read data and format power_data <- read.table("household_power_consumption.txt",blank.lines.skip=TRUE,strip.white=TRUE,header=TRUE,sep=";",na.strings="?") power_data$Date<-as.Date(power_data$Date, "%d/%m/%Y") power_data$Time<-paste(power_data$Date,power_data$Time) power_data$Time<-strptime(power_d...
/plot 3.R
no_license
carlosgee111/ExData_Plotting1
R
false
false
1,293
r
##Carlos Gee ##Read data and format power_data <- read.table("household_power_consumption.txt",blank.lines.skip=TRUE,strip.white=TRUE,header=TRUE,sep=";",na.strings="?") power_data$Date<-as.Date(power_data$Date, "%d/%m/%Y") power_data$Time<-paste(power_data$Date,power_data$Time) power_data$Time<-strptime(power_d...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53806557793526e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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/1615783538-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.53806557793526e+295, 1.22810536108214e+146, 4.12396251261199e-221, 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...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigatewayv2_operations.R \name{apigatewayv2_untag_resource} \alias{apigatewayv2_untag_resource} \title{Deletes a Tag} \usage{ apigatewayv2_untag_resource(ResourceArn, TagKeys) } \arguments{ \item{ResourceArn}{[required] The resource ARN for ...
/cran/paws.networking/man/apigatewayv2_untag_resource.Rd
permissive
paws-r/paws
R
false
true
529
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/apigatewayv2_operations.R \name{apigatewayv2_untag_resource} \alias{apigatewayv2_untag_resource} \title{Deletes a Tag} \usage{ apigatewayv2_untag_resource(ResourceArn, TagKeys) } \arguments{ \item{ResourceArn}{[required] The resource ARN for ...
# Set the seed so we get the same random numbers every time we run this code set.seed(007) # Generate a sequence of 10000 random numbers from a normal distribution with a mean of zero and a standard deviation of 3 # This represents variations in sea level due to climate variability sea.lvl.var <- rnorm(10000, mean = 0...
/ass_4_model_baseline.R
no_license
pat-k-byrne/esm_203_ass_4
R
false
false
1,703
r
# Set the seed so we get the same random numbers every time we run this code set.seed(007) # Generate a sequence of 10000 random numbers from a normal distribution with a mean of zero and a standard deviation of 3 # This represents variations in sea level due to climate variability sea.lvl.var <- rnorm(10000, mean = 0...
################################################## # # GEB 6895: Tools for Business Intelligence # # Data Mining Demo # Data Mining over many Irrelevant Variables # Includes variables with measurement error # and two highly correlated substitutes. # # Lealand Morin, Ph.D. # Assistant Professor # Department of Econom...
/demo_08_model_validation_in_R/Training_And_Testing_2.R
no_license
cmgreear/GEB6895F19
R
false
false
11,735
r
################################################## # # GEB 6895: Tools for Business Intelligence # # Data Mining Demo # Data Mining over many Irrelevant Variables # Includes variables with measurement error # and two highly correlated substitutes. # # Lealand Morin, Ph.D. # Assistant Professor # Department of Econom...
#Vector of failure times data -- SYS1 #x <- c(3, 33, 146, 227, 342, 351, 353, 444, 556, 571, 709, 759, 836, 860, 968, 1056, 1726, 1846, 1872, 1986, 2311, 2366, 2608, 2676, 3098, 3278, 3288, 4434, 5034, 5049, 5085, 5089, 5089, 5097, 5324, 5389, 5565, 5623, 6080, 6380, 6477, 6740, 7192, 7447, 7644, 7837, 7843, 7922, 8738...
/scripts_old/GO_BM.R
no_license
betienne12/SRT
R
false
false
2,407
r
#Vector of failure times data -- SYS1 #x <- c(3, 33, 146, 227, 342, 351, 353, 444, 556, 571, 709, 759, 836, 860, 968, 1056, 1726, 1846, 1872, 1986, 2311, 2366, 2608, 2676, 3098, 3278, 3288, 4434, 5034, 5049, 5085, 5089, 5089, 5097, 5324, 5389, 5565, 5623, 6080, 6380, 6477, 6740, 7192, 7447, 7644, 7837, 7843, 7922, 8738...
#' Evaluate parameter uncertainty #' #' This function searches for acceptable model solutions within the uncertainty #' parameters and long-term storage balances using Latin hypercubes. #' #' The function creates n parameter sets using a Latin hupercube. It runs #' CityWaterBalance with each set, accepting solution...
/R/getSolutions.R
no_license
jhollist/CityWaterBalance
R
false
false
7,828
r
#' Evaluate parameter uncertainty #' #' This function searches for acceptable model solutions within the uncertainty #' parameters and long-term storage balances using Latin hypercubes. #' #' The function creates n parameter sets using a Latin hupercube. It runs #' CityWaterBalance with each set, accepting solution...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lgcpSimSpatioTemporal.R \name{lgcpSim} \alias{lgcpSim} \title{lgcpSim function} \usage{ lgcpSim(owin = NULL, tlim = as.integer(c(0, 10)), spatial.intensity = NULL, temporal.intensity = NULL, cellwidth = 0.05, model.parameters = lgcppars(s...
/man/lgcpSim.Rd
no_license
jmarshallnz/lgcp
R
false
true
5,029
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/lgcpSimSpatioTemporal.R \name{lgcpSim} \alias{lgcpSim} \title{lgcpSim function} \usage{ lgcpSim(owin = NULL, tlim = as.integer(c(0, 10)), spatial.intensity = NULL, temporal.intensity = NULL, cellwidth = 0.05, model.parameters = lgcppars(s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/search_candidates.R \name{search_candidates} \alias{search_candidates} \title{Search Candidate DNB genes} \usage{ search_candidates(dnb, min_size = 2, max_size = Inf, included_genes = NULL, all = F, with_ctrl = T, verbose = T) } \arguments{...
/man/search_candidates.Rd
permissive
gpli/DNB
R
false
true
854
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/search_candidates.R \name{search_candidates} \alias{search_candidates} \title{Search Candidate DNB genes} \usage{ search_candidates(dnb, min_size = 2, max_size = Inf, included_genes = NULL, all = F, with_ctrl = T, verbose = T) } \arguments{...
require e2mmap require irb/slex require rdoc/code_objects #@# require rdoc/markup/simple_markup/preprocess #@since 1.9.1 require rdoc/parser #@else require rdoc/parsers/parserfactory #@end #@since 1.9.3 require rdoc/token_stream #@else require rdoc/tokenstream #@end Ruby 소스코드를 분석하는 서브 라이브러리입니다. 확장자가 .rb, .rbw인 파일을 분석...
/target/rubydoc/refm/api/src/rdoc/parsers/parse_rb.rd
no_license
nacyot/omegat-rurima-ruby
R
false
false
3,762
rd
require e2mmap require irb/slex require rdoc/code_objects #@# require rdoc/markup/simple_markup/preprocess #@since 1.9.1 require rdoc/parser #@else require rdoc/parsers/parserfactory #@end #@since 1.9.3 require rdoc/token_stream #@else require rdoc/tokenstream #@end Ruby 소스코드를 분석하는 서브 라이브러리입니다. 확장자가 .rb, .rbw인 파일을 분석...
\name{iprCalcPurity} \alias{iprCalcPurity} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculate tumor enrichment/purity of sample. } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ iprCalcPurity(x) } %- maybe also 'usage' for other objects docum...
/man/iprCalcPurity.Rd
no_license
GradyLab/InfiniumPurifyr
R
false
false
1,299
rd
\name{iprCalcPurity} \alias{iprCalcPurity} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Calculate tumor enrichment/purity of sample. } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ iprCalcPurity(x) } %- maybe also 'usage' for other objects docum...
#!/share/apps/R-latest/bin/Rscript .libPaths("/data/rszoh/R_LIBS_311") cmdArgs = commandArgs(trailingOnly = TRUE) idf = as.numeric(cmdArgs) set.seed(idf) #% Simulation Code #% For the Group #% ######################################## source("Code_GSA_NPBT.R") ## Proportion of elements of true mean that are zero p0...
/Test_based_on_clustering_Power_analysis.R
no_license
rszoh/GSA_counts
R
false
false
1,691
r
#!/share/apps/R-latest/bin/Rscript .libPaths("/data/rszoh/R_LIBS_311") cmdArgs = commandArgs(trailingOnly = TRUE) idf = as.numeric(cmdArgs) set.seed(idf) #% Simulation Code #% For the Group #% ######################################## source("Code_GSA_NPBT.R") ## Proportion of elements of true mean that are zero p0...
#' Run retrospective analyses #' #' Do retrospective analyses by creating new directories, copying model files, #' and iteratively changing the starter file to set the number of years of data #' to exclude. #' #' #' @param masterdir Directory where everything takes place. #' @param oldsubdir Subdirectory within \cod...
/R/SS_doRetro.R
no_license
thefaylab/r4ss
R
false
false
7,560
r
#' Run retrospective analyses #' #' Do retrospective analyses by creating new directories, copying model files, #' and iteratively changing the starter file to set the number of years of data #' to exclude. #' #' #' @param masterdir Directory where everything takes place. #' @param oldsubdir Subdirectory within \cod...
##' transition matrix prediction to training data train_tm <- label_train for(i in 1:nrow(train_tm)){ print(i/nrow(train_tm)) event.i <- event_train %>% filter(user_id == train_tm$user_id[i]) title.last <- tail(event.i, 1) %>% .$title_id if(title.last %in% row.title){ selected <- event.tpm.m[which(row.tit...
/scripts/make_sub_from_transition_matrix.R
no_license
kstseng/kkbox-data-game-17.06
R
false
false
1,073
r
##' transition matrix prediction to training data train_tm <- label_train for(i in 1:nrow(train_tm)){ print(i/nrow(train_tm)) event.i <- event_train %>% filter(user_id == train_tm$user_id[i]) title.last <- tail(event.i, 1) %>% .$title_id if(title.last %in% row.title){ selected <- event.tpm.m[which(row.tit...