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
\name{imgMarrHildreth} \alias{imgMarrHildreth} \title{Marr-Hildreth Edge Detection Method} \description{ This function does edge detection using the Marr-Hildreth algorithm. } \usage{imgMarrHildreth(imgdata, sigma)} \arguments{ \item{imgdata}{The image} \item{sigma}{The standard deviation of Gaussian for convolution...
/08_grad_project/Deliverables/biOps/man/imgMarrHildreth.Rd
permissive
blairg23/pattern-recognition
R
false
false
504
rd
\name{imgMarrHildreth} \alias{imgMarrHildreth} \title{Marr-Hildreth Edge Detection Method} \description{ This function does edge detection using the Marr-Hildreth algorithm. } \usage{imgMarrHildreth(imgdata, sigma)} \arguments{ \item{imgdata}{The image} \item{sigma}{The standard deviation of Gaussian for convolution...
################################################################################ # R SCRIPT TO PERFORM NMDS (PCA) AND CLUSTERING # # ANALYSIS ON THE OUTPUT OF THE SOLE MODEL # # ---------------------------------------------------------------------------...
/Zdenko/NMDS.R
no_license
sophiedeb/masterone
R
false
false
5,733
r
################################################################################ # R SCRIPT TO PERFORM NMDS (PCA) AND CLUSTERING # # ANALYSIS ON THE OUTPUT OF THE SOLE MODEL # # ---------------------------------------------------------------------------...
library(analyz) ### Name: Analyz.coerceType ### Title: Method Analyz.coerceType ### Aliases: Analyz.coerceType Analyz.coerceType,Analyz,Analyz-method ### Analyz.coerceType,Analyz-method ### ** Examples obj <- new("Analyz") v_numeric <- Analyz.coerceType(obj, '2', 'numeric')
/data/genthat_extracted_code/analyz/examples/Analyz.coerceType-methods.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
284
r
library(analyz) ### Name: Analyz.coerceType ### Title: Method Analyz.coerceType ### Aliases: Analyz.coerceType Analyz.coerceType,Analyz,Analyz-method ### Analyz.coerceType,Analyz-method ### ** Examples obj <- new("Analyz") v_numeric <- Analyz.coerceType(obj, '2', 'numeric')
svc_ms <- 1 # average disk I/O service time, ms util_min <- 0 # range to plot util_max <- 100 ms_min <- 0 ms_max <- 10 # plot mean response time vs utilization (M/D/1) plot(x <- c(util_min:util_max), svc_ms * (2 - x/100) / (2 * (1 - x/100)), type="l", lty=1, lwd=1, xlim=c(util_min, util_...
/md1.r
no_license
vvtam/programR
R
false
false
410
r
svc_ms <- 1 # average disk I/O service time, ms util_min <- 0 # range to plot util_max <- 100 ms_min <- 0 ms_max <- 10 # plot mean response time vs utilization (M/D/1) plot(x <- c(util_min:util_max), svc_ms * (2 - x/100) / (2 * (1 - x/100)), type="l", lty=1, lwd=1, xlim=c(util_min, util_...
## List of linear models according to a grouping factor ## Extract the model formula modelFormula <- function(form) { if (!inherits(form, "formula") || length(form) != 3) stop("formula must be a two-sided formula object") rhs <- form[[3]] if (!inherits(rhs, "call") || rhs[[1]] != as.symbol('|')) ...
/R/lmList.R
no_license
andreasose/lme4
R
false
false
15,204
r
## List of linear models according to a grouping factor ## Extract the model formula modelFormula <- function(form) { if (!inherits(form, "formula") || length(form) != 3) stop("formula must be a two-sided formula object") rhs <- form[[3]] if (!inherits(rhs, "call") || rhs[[1]] != as.symbol('|')) ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/pancreas.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=FALSE) sink('./pancreas_004.txt',append=TRU...
/Model/EN/Correlation/pancreas/pancreas_004.R
no_license
esbgkannan/QSMART
R
false
false
352
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/pancreas.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0,family="gaussian",standardize=FALSE) sink('./pancreas_004.txt',append=TRU...
library(shiny) library(dagitty) # Define UI for application that draws a histogram ui <- fluidPage( # Application title titlePanel("A simple web app using R libraries shiny and dagitty."), # headerPanel("A simple Shiny App using dagitty library"), sidebarLayout( sidebarPanel = ...
/Shiny_dagitty/app_dagitty_sidbarLayout_left.R
no_license
mkim0710/Shiny
R
false
false
4,452
r
library(shiny) library(dagitty) # Define UI for application that draws a histogram ui <- fluidPage( # Application title titlePanel("A simple web app using R libraries shiny and dagitty."), # headerPanel("A simple Shiny App using dagitty library"), sidebarLayout( sidebarPanel = ...
#Download file temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp) data01 <- read.table(unz(temp, "household_power_consumption.txt"), header = T, sep = ";", na.strings = "?") unlink(temp) rm(temp) #Convert data variable into date...
/plot1.R
no_license
edv82/ExData_Plotting1
R
false
false
777
r
#Download file temp <- tempfile() download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", temp) data01 <- read.table(unz(temp, "household_power_consumption.txt"), header = T, sep = ";", na.strings = "?") unlink(temp) rm(temp) #Convert data variable into date...
#' Input layer #' #' Layer to be used as an entry point into a graph. #' #' @param shape Shape, not including the batch size. For instance, #' `shape=c(32)` indicates that the expected input will be batches #' of 32-dimensional vectors. #' @param batch_shape Shape, including the batch size. For instance, #' `s...
/R/layers-core.R
no_license
rdrr1990/keras
R
false
false
16,714
r
#' Input layer #' #' Layer to be used as an entry point into a graph. #' #' @param shape Shape, not including the batch size. For instance, #' `shape=c(32)` indicates that the expected input will be batches #' of 32-dimensional vectors. #' @param batch_shape Shape, including the batch size. For instance, #' `s...
#install and set up necessary packages install.packages("tidyverse") install.packages("janitor") library(tidyverse) library(janitor) #import all data sets for south (yield projections for each climate model) #has to be run manually for each crop/scenario/normal combination (10 total) yr <- c(1970:1999)...
/south_filter.R
no_license
lucaskdo/Thesis
R
false
false
2,626
r
#install and set up necessary packages install.packages("tidyverse") install.packages("janitor") library(tidyverse) library(janitor) #import all data sets for south (yield projections for each climate model) #has to be run manually for each crop/scenario/normal combination (10 total) yr <- c(1970:1999)...
##################################################################### # ~~~~~~~~~~~~~~~~~~ # Tumor subtype and cell type independent DNA methylation alterations # associated with stage progression in invasive breast carcinoma # ~~~~~~~~~~~~~~~~~~ # Way, G., Johnson, K., Christensen, B. 2015 # The script will apply R...
/II.RefFreeEWAS/Scripts/A.doRefFree.R
permissive
Christensen-Lab-Dartmouth/brca_lowstage_DMGRs
R
false
false
4,291
r
##################################################################### # ~~~~~~~~~~~~~~~~~~ # Tumor subtype and cell type independent DNA methylation alterations # associated with stage progression in invasive breast carcinoma # ~~~~~~~~~~~~~~~~~~ # Way, G., Johnson, K., Christensen, B. 2015 # The script will apply R...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main_bin_func.R \name{bin_distribution} \alias{bin_distribution} \title{binomial distribution} \usage{ bin_distribution(trials, prob) } \arguments{ \item{trials}{some integer} \item{prob}{some real number} } \value{ data frame with binomial ...
/binomial/man/bin_distribution.Rd
no_license
stat133-sp19/hw-stat133-jennywu99
R
false
true
481
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/main_bin_func.R \name{bin_distribution} \alias{bin_distribution} \title{binomial distribution} \usage{ bin_distribution(trials, prob) } \arguments{ \item{trials}{some integer} \item{prob}{some real number} } \value{ data frame with binomial ...
# MAKE SURE TO FIX ALL THE COUPON RATES # confusion of monthly v. annual in some places # also check to see if vectorization anywhere is faster than looping # Amortization -------------------------- BalanceLeft <- function(M, c, n, k) { # tells us the value of outstanding mortgage principal on a mortgage M # a...
/Part I/mortgages.R
no_license
rcuevass/financial-engineering
R
false
false
7,584
r
# MAKE SURE TO FIX ALL THE COUPON RATES # confusion of monthly v. annual in some places # also check to see if vectorization anywhere is faster than looping # Amortization -------------------------- BalanceLeft <- function(M, c, n, k) { # tells us the value of outstanding mortgage principal on a mortgage M # a...
NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") baltimore <- subset(NEI, NEI$fips == "24510" & type == "ON-ROAD") la <- subset(NEI, NEI$fips == "06037" & type == "ON-ROAD") btot <- aggregate(baltimore$Emissions, by = list(baltimore$year), sum) latot <- aggregate(la$Emissions, by...
/plot6good.R
no_license
marilunazz/GettingAndCleaningDataW4
R
false
false
763
r
NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") baltimore <- subset(NEI, NEI$fips == "24510" & type == "ON-ROAD") la <- subset(NEI, NEI$fips == "06037" & type == "ON-ROAD") btot <- aggregate(baltimore$Emissions, by = list(baltimore$year), sum) latot <- aggregate(la$Emissions, by...
############################################################################################################################ # A function to calculate variance of LR and Cox # account for delayed treatment, discontinued treatment and non-uniform entry # version 1.0 (07/20/2016) # version 2.0 (08/17/2016) # ...
/R/overallvar.R
no_license
cran/PWEALL
R
false
false
6,759
r
############################################################################################################################ # A function to calculate variance of LR and Cox # account for delayed treatment, discontinued treatment and non-uniform entry # version 1.0 (07/20/2016) # version 2.0 (08/17/2016) # ...
setwd("C:/Work/Research/Laurie/JabbaZ") load("C:/Work/Research/Laurie/JabbaZ/om.75.RData",verbose=T) library(FLCore) library(FLBRP) library(JABBA) plot(om) stk = iter(om,1) plot(stk) stk = window(stk,start=70,end=115) # priors fmsy = an(refpts(eq)["msy","harvest"]) bmsy = an(refpts(eq)["msy","ssb"]) b0 = an(refpts(...
/jabbaz.R
no_license
jabbamodel/JABBA
R
false
false
6,669
r
setwd("C:/Work/Research/Laurie/JabbaZ") load("C:/Work/Research/Laurie/JabbaZ/om.75.RData",verbose=T) library(FLCore) library(FLBRP) library(JABBA) plot(om) stk = iter(om,1) plot(stk) stk = window(stk,start=70,end=115) # priors fmsy = an(refpts(eq)["msy","harvest"]) bmsy = an(refpts(eq)["msy","ssb"]) b0 = an(refpts(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repositories.R \name{update_repository} \alias{update_repository} \title{Update a user or organization repository} \usage{ update_repository( repo, name, description, homepage, private, has_issues, has_projects, has_wiki, de...
/man/update_repository.Rd
permissive
jfontestad/githapi
R
false
true
6,680
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/repositories.R \name{update_repository} \alias{update_repository} \title{Update a user or organization repository} \usage{ update_repository( repo, name, description, homepage, private, has_issues, has_projects, has_wiki, de...
#' Core function of wmy_1e, wmy_3e, & my_2e #' #' @param df data frame containing metric #' @param metric column name from df #' @param grouping time diminesion column name (wk_num_in_yr, mth_num_in_yr, yr_num) #' @param df_rr data frame containing run rate #' @param metric_rr column name from df_rr #' @param df_goal d...
/R/fun.R
no_license
pkopps/biview
R
false
false
31,208
r
#' Core function of wmy_1e, wmy_3e, & my_2e #' #' @param df data frame containing metric #' @param metric column name from df #' @param grouping time diminesion column name (wk_num_in_yr, mth_num_in_yr, yr_num) #' @param df_rr data frame containing run rate #' @param metric_rr column name from df_rr #' @param df_goal d...
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
/meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615843704-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
2,232
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
library(tidyverse) library(tidymodels) library(gganimate) theme_set(theme_minimal(20)) set.seed(1) n <- 300 dados <- tibble( x = runif(n) - 0.5, y = sin(x * pi * 2) + rnorm(n, sd = 0.3) ) gera_gif <- function(trees = 100, min_n = 1, tree_depth = 4, learn_rate = 0.1, sa...
/R/04-xgb-gifs.R
no_license
curso-r/202005-xgboost
R
false
false
2,042
r
library(tidyverse) library(tidymodels) library(gganimate) theme_set(theme_minimal(20)) set.seed(1) n <- 300 dados <- tibble( x = runif(n) - 0.5, y = sin(x * pi * 2) + rnorm(n, sd = 0.3) ) gera_gif <- function(trees = 100, min_n = 1, tree_depth = 4, learn_rate = 0.1, sa...
############################################# ############################################# ### ### ### TEMPLATE FOR SDM WORKFLOW ### ### ### ### This script file is a template for ### ### the species distribution modelling ##...
/scripts/workflows_spartan/Eulamprus_tympanum_workflow_1990.R
no_license
Doi90/bushfireSOS_workflow
R
false
false
10,193
r
############################################# ############################################# ### ### ### TEMPLATE FOR SDM WORKFLOW ### ### ### ### This script file is a template for ### ### the species distribution modelling ##...
\name{plot.evimp} \alias{plot.evimp} \title{Plot an evimp object (created by the evimp function)} \description{ Plot an \code{\link{evimp}} object. } \usage{ \method{plot}{evimp}(x = stop("no 'x' argument"), cex.var = 1, type.nsubsets = "l", col.nsubsets = "black", lty.nsubsets = 1, type.gcv = "l", col....
/man/plot.evimp.Rd
no_license
cran/earth
R
false
false
2,122
rd
\name{plot.evimp} \alias{plot.evimp} \title{Plot an evimp object (created by the evimp function)} \description{ Plot an \code{\link{evimp}} object. } \usage{ \method{plot}{evimp}(x = stop("no 'x' argument"), cex.var = 1, type.nsubsets = "l", col.nsubsets = "black", lty.nsubsets = 1, type.gcv = "l", col....
kl.compreg <- function(y, x, con = TRUE, B = 1, ncores = 1, xnew = NULL, tol = 1e-07, maxiters = 50) { runtime <- proc.time() mod <- try( Compositional::kl.compreg2(y, x, con = con, xnew = xnew, tol = tol, maxiters = maxiters), silent = TRUE ) if ( is.infinite(mod$loglik) | identical( class(mod), "try-erro...
/R/kl.compreg.R
no_license
cran/Compositional
R
false
false
3,927
r
kl.compreg <- function(y, x, con = TRUE, B = 1, ncores = 1, xnew = NULL, tol = 1e-07, maxiters = 50) { runtime <- proc.time() mod <- try( Compositional::kl.compreg2(y, x, con = con, xnew = xnew, tol = tol, maxiters = maxiters), silent = TRUE ) if ( is.infinite(mod$loglik) | identical( class(mod), "try-erro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mgcv-tidiers.R \name{glance.gam} \alias{glance.gam} \title{Glance at a(n) gam object} \usage{ \method{glance}{gam}(x, ...) } \arguments{ \item{x}{A \code{gam} object returned from a call to \code{\link[mgcv:gam]{mgcv::gam()}}.} \item{...}{Ad...
/man/glance.gam.Rd
permissive
tidymodels/broom
R
false
true
2,894
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mgcv-tidiers.R \name{glance.gam} \alias{glance.gam} \title{Glance at a(n) gam object} \usage{ \method{glance}{gam}(x, ...) } \arguments{ \item{x}{A \code{gam} object returned from a call to \code{\link[mgcv:gam]{mgcv::gam()}}.} \item{...}{Ad...
#' Parallel Co-ordinate plots #' #' #' @description This function creates parallel Co-ordinate plots #' @usage ExpParcoord (data,Group=NULL,Stsize=NULL,Nvar=NULL,Cvar=NULL,scale=NULL) ##' @param data Input dataframe or data.table ##' @param Group stratification variables ##' @param Stsize vector of startum sampl...
/R/fn_exp_ParCoordPlot.R
no_license
daya6489/SmartEDA-1
R
false
false
5,244
r
#' Parallel Co-ordinate plots #' #' #' @description This function creates parallel Co-ordinate plots #' @usage ExpParcoord (data,Group=NULL,Stsize=NULL,Nvar=NULL,Cvar=NULL,scale=NULL) ##' @param data Input dataframe or data.table ##' @param Group stratification variables ##' @param Stsize vector of startum sampl...
# Specialization : Data Science # Course : 4 - Exploratory Data Analysis # From April 6 to May 3 # Instructors : Roger D. Peng, PhD, Jeff Leek, PhD, Brian Caffo, PhD # Personal data: # Name : Tabare Perez # Email: tabare.perez@gmail.com # City, Country : Montevideo, Uruguay # # This is the project 01 script plot2.R - ...
/plot2.R
no_license
tabareperez/ExData_Plotting1
R
false
false
2,124
r
# Specialization : Data Science # Course : 4 - Exploratory Data Analysis # From April 6 to May 3 # Instructors : Roger D. Peng, PhD, Jeff Leek, PhD, Brian Caffo, PhD # Personal data: # Name : Tabare Perez # Email: tabare.perez@gmail.com # City, Country : Montevideo, Uruguay # # This is the project 01 script plot2.R - ...
\name{VSGFS} \alias{VSGFS} \title{ VSGFS: an experiment using an optimized orthogonal array in 72 runs } \description{ VSGFS: an experiment using an optimized orthogonal array in 72 runs } \usage{ VSGFS } %- maybe also 'usage' for other objects documented here. \format{ VSGFS is a data frame of clas...
/man/VSGFS.Rd
no_license
cran/DoE.base
R
false
false
5,624
rd
\name{VSGFS} \alias{VSGFS} \title{ VSGFS: an experiment using an optimized orthogonal array in 72 runs } \description{ VSGFS: an experiment using an optimized orthogonal array in 72 runs } \usage{ VSGFS } %- maybe also 'usage' for other objects documented here. \format{ VSGFS is a data frame of clas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/schisto_dynamic_models.R \name{sim_schisto_stoch_mod} \alias{sim_schisto_stoch_mod} \title{Simulate the stochastic version of age-stratified schistosomiasis model} \usage{ sim_schisto_stoch_mod(nstart, transitions = list(c(S = 1), c(S = -1), ...
/man/sim_schisto_stoch_mod.Rd
permissive
cmhoove14/DDNTD
R
false
true
1,184
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/schisto_dynamic_models.R \name{sim_schisto_stoch_mod} \alias{sim_schisto_stoch_mod} \title{Simulate the stochastic version of age-stratified schistosomiasis model} \usage{ sim_schisto_stoch_mod(nstart, transitions = list(c(S = 1), c(S = -1), ...
library(shiny) library(ggplot2) set.seed(4040) variables <- list( normal = rnorm(100, mean = 70, sd = 3), right = rexp(100, rate = 1/70), left = 100 - rexp(100, rate = 1/30) ) ui <- fluidPage( selectInput("dist", "Distribution", choices = names(variables)), verbatimTextOutput("summary"), tableOutput("plot...
/Chapter_02/app_05_exercise_buggy.R
no_license
homerhanumat/mastering-shiny-notes
R
false
false
756
r
library(shiny) library(ggplot2) set.seed(4040) variables <- list( normal = rnorm(100, mean = 70, sd = 3), right = rexp(100, rate = 1/70), left = 100 - rexp(100, rate = 1/30) ) ui <- fluidPage( selectInput("dist", "Distribution", choices = names(variables)), verbatimTextOutput("summary"), tableOutput("plot...
############################################################################### ########### RelPMDCCA ########### ############################################################################### # To raise a matrix x to a given n power "%^%" <- function(x, n){ with(eigen(x), vectors %*% (values^n * t(vectors))) } ...
/Functions/RelPMDCCA.R
no_license
LifangHe/sCCA
R
false
false
14,608
r
############################################################################### ########### RelPMDCCA ########### ############################################################################### # To raise a matrix x to a given n power "%^%" <- function(x, n){ with(eigen(x), vectors %*% (values^n * t(vectors))) } ...
# Fit Bayesian model for probability of a call from raw data using sample of audited data # Load libraries ------------------------------------------------------------- require(gtools) require(lattice) require(coda) require(boot) require(rjags) require(runjags) require(parallel) require(doParallel) require(ggplot2) lib...
/FitAuditProb2.R
no_license
mttinker/AuditMod
R
false
false
6,807
r
# Fit Bayesian model for probability of a call from raw data using sample of audited data # Load libraries ------------------------------------------------------------- require(gtools) require(lattice) require(coda) require(boot) require(rjags) require(runjags) require(parallel) require(doParallel) require(ggplot2) lib...
library(ape) testtree <- read.tree("1104_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="1104_0_unrooted.txt")
/codeml_files/newick_trees_processed/1104_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("1104_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="1104_0_unrooted.txt")
#' Intersect #' #' Determine intersection of elements in vectors in a list #' @param res_obj list of dataframes resulting from stageR #' @param tx bool, if TRUE, intersects transcript ids, else gene ids #' @param gene_col character string of gene id column name #' @param tx_col character string of transcrip id column n...
/DTU/R/simple_intersect.R
no_license
fifdick/DTUinPDbrain
R
false
false
744
r
#' Intersect #' #' Determine intersection of elements in vectors in a list #' @param res_obj list of dataframes resulting from stageR #' @param tx bool, if TRUE, intersects transcript ids, else gene ids #' @param gene_col character string of gene id column name #' @param tx_col character string of transcrip id column n...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cumsum.R \name{sum_g} \alias{sum_g} \title{Compute per-group sums} \usage{ sum_g(col, first_indices, na.rm = FALSE) } \arguments{ \item{col}{vector to sum} \item{first_indices}{numeric index of first index in each group} \item{na.rm}{loci...
/man/sum_g.Rd
no_license
hal2001/FastBaseR
R
false
true
483
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cumsum.R \name{sum_g} \alias{sum_g} \title{Compute per-group sums} \usage{ sum_g(col, first_indices, na.rm = FALSE) } \arguments{ \item{col}{vector to sum} \item{first_indices}{numeric index of first index in each group} \item{na.rm}{loci...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/actino_data.R \docType{data} \name{kombucha.all_ranks} \alias{kombucha.all_ranks} \title{microbiome data available to ub.phyloseq} \format{ An object of class \code{phyloseq} of length 1. } \usage{ data(kombucha.all_ranks) } \description{ Ser...
/man/kombucha.all_ranks.Rd
no_license
richardsprague/actino
R
false
true
402
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/actino_data.R \docType{data} \name{kombucha.all_ranks} \alias{kombucha.all_ranks} \title{microbiome data available to ub.phyloseq} \format{ An object of class \code{phyloseq} of length 1. } \usage{ data(kombucha.all_ranks) } \description{ Ser...
#いつものデータを入れる library(readxl) library(gplots) #いつものデータを入れる data2020<-read_excel("trialdata.xls") #以下の分析では"data2020"でお願いね! attach(data2020) #まずは変数処理をしましょう #教育程度(説明変数側) #欠損値の処理 edu<- q2_2 edu[q2_2== 6] <- NA #単純度数をedu1で格納 edu1 <- table(edu) #パーセントで見てみる(パーセンタイルなので100倍にする) edu_per <- prop.table(edu1)*100 edu_per #支持政党(ア...
/20210601.R
no_license
ikfj/2021kpuqps
R
false
false
4,226
r
#いつものデータを入れる library(readxl) library(gplots) #いつものデータを入れる data2020<-read_excel("trialdata.xls") #以下の分析では"data2020"でお願いね! attach(data2020) #まずは変数処理をしましょう #教育程度(説明変数側) #欠損値の処理 edu<- q2_2 edu[q2_2== 6] <- NA #単純度数をedu1で格納 edu1 <- table(edu) #パーセントで見てみる(パーセンタイルなので100倍にする) edu_per <- prop.table(edu1)*100 edu_per #支持政党(ア...
#' Start a new workflowr project. #' #' \code{wflow_start} creates a minimal workflowr project. The default #' behaviour is to add these files to a new directory, but it is also #' possible to populate an already existing project. By default, it #' also changes the working directory to the workflowr project. #' #' This...
/R/wflow_start.R
permissive
anorris8/workflowr
R
false
false
11,166
r
#' Start a new workflowr project. #' #' \code{wflow_start} creates a minimal workflowr project. The default #' behaviour is to add these files to a new directory, but it is also #' possible to populate an already existing project. By default, it #' also changes the working directory to the workflowr project. #' #' This...
#!/usr/bin/env Rscript print("starting salmon IPM script") this_dir<-getwd() source("./supporting_scripts/param_startup.R") # source("./supporting_scripts/plot_functions.R") #parse user input params stocking_n <- parse.param("stocking_n") stocking_stage <- parse.param("stocking_stage") #directories w/ preceding run ...
/r/salmon_IPM.R
no_license
anarosner/testing
R
false
false
5,525
r
#!/usr/bin/env Rscript print("starting salmon IPM script") this_dir<-getwd() source("./supporting_scripts/param_startup.R") # source("./supporting_scripts/plot_functions.R") #parse user input params stocking_n <- parse.param("stocking_n") stocking_stage <- parse.param("stocking_stage") #directories w/ preceding run ...
context("group_map") test_that("group_map() makes a grouped_df", { res <- group_by(mtcars, cyl) %>% group_map(~ head(.x, 2L)) expect_equal(nrow(res), 6L) expect_equal(group_rows(res), list(1:2, 3:4, 5:6)) res <- iris %>% group_by(Species) %>% filter(Species == "setosa") %>% group_map(~ tally(...
/tests/testthat/test-group_map.R
permissive
dirkschumacher/dplyr
R
false
false
1,384
r
context("group_map") test_that("group_map() makes a grouped_df", { res <- group_by(mtcars, cyl) %>% group_map(~ head(.x, 2L)) expect_equal(nrow(res), 6L) expect_equal(group_rows(res), list(1:2, 3:4, 5:6)) res <- iris %>% group_by(Species) %>% filter(Species == "setosa") %>% group_map(~ tally(...
library(parallel) library(doMC) registerDoMC(8) library(tools) library(data.table) ############################################ ### CREATE AGE + CAUSE SPECIFIC TABLES ### ############################################ computeRR <- function(conc, file){ dfr <- fread(file) risk_name <- gsub("params_", "", basename(fil...
/prep_rr_from_iers_public.R
no_license
ajaypillarisetti/abode
R
false
false
2,751
r
library(parallel) library(doMC) registerDoMC(8) library(tools) library(data.table) ############################################ ### CREATE AGE + CAUSE SPECIFIC TABLES ### ############################################ computeRR <- function(conc, file){ dfr <- fread(file) risk_name <- gsub("params_", "", basename(fil...
#K.Palof # ADF&G 11-15-16 / 10-11-17 / 11-2-18 # Areas: tanner crab assessment of red crab areas : North Juneau and Stephens Passage # done seperately because they need to be divided into these two areas based on the pot locations, # division is done by Kellii Wood - she places SP pots in their correct strata and...
/code/NJ_SP_processing.R
no_license
kjpalof/crab_data_processing
R
false
false
28,444
r
#K.Palof # ADF&G 11-15-16 / 10-11-17 / 11-2-18 # Areas: tanner crab assessment of red crab areas : North Juneau and Stephens Passage # done seperately because they need to be divided into these two areas based on the pot locations, # division is done by Kellii Wood - she places SP pots in their correct strata and...
<?xml version="1.0" encoding="utf-8"?> <serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AzureCloudService2" generation="1" functional="0" release="0" Id="cdb2ecbc-2100-4472-a882-35c96485045d" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/...
/PA#2/AzureCloudService2/AzureCloudService2/csx/Debug/ServiceDefinition.rd
no_license
rtduong/Info344
R
false
false
3,943
rd
<?xml version="1.0" encoding="utf-8"?> <serviceModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AzureCloudService2" generation="1" functional="0" release="0" Id="cdb2ecbc-2100-4472-a882-35c96485045d" dslVersion="1.2.0.0" xmlns="http://schemas.microsoft.com/...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/recipe.R \name{recipe} \alias{recipe} \alias{recipe.default} \alias{recipe.formula} \alias{recipe.data.frame} \alias{recipe.matrix} \title{Create a Recipe for Preprocessing Data} \usage{ recipe(x, ...) \method{recipe}{default}(x, ...) \meth...
/man/recipe.Rd
no_license
jakubkovac/recipes
R
false
true
5,987
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/recipe.R \name{recipe} \alias{recipe} \alias{recipe.default} \alias{recipe.formula} \alias{recipe.data.frame} \alias{recipe.matrix} \title{Create a Recipe for Preprocessing Data} \usage{ recipe(x, ...) \method{recipe}{default}(x, ...) \meth...
myString <- "Hello, World!" print(myString) # to run it from terminal use: $ Rscript file.R
/basics.R
permissive
Bzdeco/ahp-xml-parser
R
false
false
94
r
myString <- "Hello, World!" print(myString) # to run it from terminal use: $ Rscript file.R
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/icpmat.r \name{icpmat} \alias{icpmat} \title{match two landmark configurations using iteratively closest point search} \usage{ icpmat(x, y, iterations, mindist = 1e+15, subsample = NULL, type = c("rigid", "similarity", "affine"), weights = ...
/fuzzedpackages/Morpho/man/icpmat.Rd
no_license
akhikolla/testpackages
R
false
true
2,600
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/icpmat.r \name{icpmat} \alias{icpmat} \title{match two landmark configurations using iteratively closest point search} \usage{ icpmat(x, y, iterations, mindist = 1e+15, subsample = NULL, type = c("rigid", "similarity", "affine"), weights = ...
testlist <- list(genotype = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L...
/detectRUNS/inst/testfiles/genoConvertCpp/libFuzzer_genoConvertCpp/genoConvertCpp_valgrind_files/1609874879-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
411
r
testlist <- list(genotype = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L...
# ui.R header <- dashboardHeader( title = "S&P500 analysis" ) sidebar <- dashboardSidebar( sidebarMenu( menuItem(text = "S&P500 line graph",tabName = "pageOne"), menuItem(text = "Monthly returns",tabName = "pageTwo"), menuItem(text = "Dividends", tabName = "pageThree"), # menuItem(text = "Custom plo...
/ui.R
no_license
reyvb24/R-capstone-project
R
false
false
7,942
r
# ui.R header <- dashboardHeader( title = "S&P500 analysis" ) sidebar <- dashboardSidebar( sidebarMenu( menuItem(text = "S&P500 line graph",tabName = "pageOne"), menuItem(text = "Monthly returns",tabName = "pageTwo"), menuItem(text = "Dividends", tabName = "pageThree"), # menuItem(text = "Custom plo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{dspop} \alias{dspop} \title{Direct Standardization: Population} \format{ A data frame with 1000 rows and 3 variables: \describe{ \item{y}{Response variable} \item{sex}{Sex of individual, coded male (0) and female...
/CVXR/man/dspop.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
719
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{dspop} \alias{dspop} \title{Direct Standardization: Population} \format{ A data frame with 1000 rows and 3 variables: \describe{ \item{y}{Response variable} \item{sex}{Sex of individual, coded male (0) and female...
### Figure 2 ### library(gridExtra) library(cowplot) library(ggplot2) TypeI.plt <- function(plt, main="") { plt + #geom_hline(yintercept = 0.05,alpha=0.3) + #geom_hline(yintercept = 0.01,alpha=0.3) + geom_line(aes(linetype=Alpha, color=Test),size=0.8) + geom_point(aes(shape = Test,color=Test),si...
/Conditional independence testing/make_finalplot.R
no_license
xiangyh/Nonparametric-Graphical-Modeling
R
false
false
10,823
r
### Figure 2 ### library(gridExtra) library(cowplot) library(ggplot2) TypeI.plt <- function(plt, main="") { plt + #geom_hline(yintercept = 0.05,alpha=0.3) + #geom_hline(yintercept = 0.01,alpha=0.3) + geom_line(aes(linetype=Alpha, color=Test),size=0.8) + geom_point(aes(shape = Test,color=Test),si...
#' Add dummy variables for weekdays and day parts #' #' This function adds dummy columns for weekdays (named \code{Sunday}, \code{Monday}, \code{Tuesday}, \code{Wednesday}, \code{Thursday}, \code{Friday} and \code{Saturday}) and day parts (\code{morning}, \code{afternoon}) to the given subset of the specified data set...
/R/set_timestamps.r
no_license
vishalbelsare/autovar
R
false
false
10,332
r
#' Add dummy variables for weekdays and day parts #' #' This function adds dummy columns for weekdays (named \code{Sunday}, \code{Monday}, \code{Tuesday}, \code{Wednesday}, \code{Thursday}, \code{Friday} and \code{Saturday}) and day parts (\code{morning}, \code{afternoon}) to the given subset of the specified data set...
#' @rdname defunct #' @export xhistogram <- function (...) { # x, data=NULL, panel=panel.xhistogram, type='density', # center=NULL, width=NULL, ...) { .Defunct(msg = "xhistogram() is no longer needed; simply use histogram() with the mosaic package attached.") } #' Augmented hi...
/R/xhistogram.R
no_license
ProjectMOSAIC/mosaic
R
false
false
12,475
r
#' @rdname defunct #' @export xhistogram <- function (...) { # x, data=NULL, panel=panel.xhistogram, type='density', # center=NULL, width=NULL, ...) { .Defunct(msg = "xhistogram() is no longer needed; simply use histogram() with the mosaic package attached.") } #' Augmented hi...
#/* #** #* BEGIN_COPYRIGHT #* #* This file is part of SciDB. #* Copyright (C) 2008-2013 SciDB, Inc. #* #* SciDB is free software: you can redistribute it and/or modify #* it under the terms of the AFFERO GNU General Public License as published by #* the Free Software Foundation. #* #* SciDB is distributed "AS-IS" AND W...
/R/pkg.R
no_license
benmarwick/SciDBR
R
false
false
1,558
r
#/* #** #* BEGIN_COPYRIGHT #* #* This file is part of SciDB. #* Copyright (C) 2008-2013 SciDB, Inc. #* #* SciDB is free software: you can redistribute it and/or modify #* it under the terms of the AFFERO GNU General Public License as published by #* the Free Software Foundation. #* #* SciDB is distributed "AS-IS" AND W...
#!/usr/bin/env R # Author: Sean Maden # # Format the long read intron ranges table. # library(data.table) # set run identifiers srrid <- "SRR6026510" run.handle <- "ipsc" #---------- # load data #---------- # get the long read ranges tsv.fname <- "RI_txs_to_read_ids_final.tsv" tsv <- fread(tsv.fname, sep = "\t", h...
/data_preparation/processing/shortread/iPSC/scripts/format_longread.R
permissive
pdxgx/ri-tests
R
false
false
2,870
r
#!/usr/bin/env R # Author: Sean Maden # # Format the long read intron ranges table. # library(data.table) # set run identifiers srrid <- "SRR6026510" run.handle <- "ipsc" #---------- # load data #---------- # get the long read ranges tsv.fname <- "RI_txs_to_read_ids_final.tsv" tsv <- fread(tsv.fname, sep = "\t", h...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) #library(rattle) library(ggfortify) library(caret) library(randomForest) library(e1071) #...
/server.R
no_license
eakalak-suthampan/dev_data_product
R
false
false
7,647
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) #library(rattle) library(ggfortify) library(caret) library(randomForest) library(e1071) #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-.R \name{create_key_pattern_grob} \alias{create_key_pattern_grob} \title{Create the patterned area to be used in the legend key} \usage{ create_key_pattern_grob(data, params, size, aspect_ratio, boundary_df) } \arguments{ \item{data}{A s...
/man/create_key_pattern_grob.Rd
permissive
LuffyLuffy/ggpattern
R
false
true
733
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/geom-.R \name{create_key_pattern_grob} \alias{create_key_pattern_grob} \title{Create the patterned area to be used in the legend key} \usage{ create_key_pattern_grob(data, params, size, aspect_ratio, boundary_df) } \arguments{ \item{data}{A s...
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
/IntervalSurgeon/inst/testfiles/rcpp_depth/AFL_rcpp_depth/rcpp_depth_valgrind_files/1609857137-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
713
r
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
residu = function(xp, data_x, data_y) { dm = ncol(data_x) data_num = nrow(data_x) hn = data_num^(-1/(4 + dm)) tau2 = h = vector(, dm) for(i in 1:dm) { tau2[i] = exp(xp[i]) h[i] = sqrt(tau2[i]) * hn } hprod = prod(h) cont = exp(-0.5 * dm * log(2.0 * pi)) data_e = vector(,data_num) for(i in 1:d...
/bbemkr/R/residu.R
no_license
ingted/R-Examples
R
false
false
551
r
residu = function(xp, data_x, data_y) { dm = ncol(data_x) data_num = nrow(data_x) hn = data_num^(-1/(4 + dm)) tau2 = h = vector(, dm) for(i in 1:dm) { tau2[i] = exp(xp[i]) h[i] = sqrt(tau2[i]) * hn } hprod = prod(h) cont = exp(-0.5 * dm * log(2.0 * pi)) data_e = vector(,data_num) for(i in 1:d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GPCNA.R \name{agregateModulesEnrichment} \alias{agregateModulesEnrichment} \title{Modules enrichment taking into account subsets of markers} \usage{ agregateModulesEnrichment(enrichment.by.module, celltypes, cellsubtypes, significanceThresh...
/man/agregateModulesEnrichment.Rd
no_license
drlaguna/GMSCA
R
false
true
1,647
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GPCNA.R \name{agregateModulesEnrichment} \alias{agregateModulesEnrichment} \title{Modules enrichment taking into account subsets of markers} \usage{ agregateModulesEnrichment(enrichment.by.module, celltypes, cellsubtypes, significanceThresh...
\name{weaveSQL} \alias{weaveSQL} %- Also NEED an '\alias' for EACH other topic documented here. \title{Build a script} \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ weaveSQL(page, var_list, repeat_var_list = NULL) } %- maybe also 'usage' for other objects documented here...
/man/weaveSQL.Rd
no_license
ozbaya/SQLWeaver
R
false
false
3,117
rd
\name{weaveSQL} \alias{weaveSQL} %- Also NEED an '\alias' for EACH other topic documented here. \title{Build a script} \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ weaveSQL(page, var_list, repeat_var_list = NULL) } %- maybe also 'usage' for other objects documented here...
require(dplyr); require(reshape2); require(tidyverse) require(sjPlot) BD_n = readxl::read_excel("AMOSTRA Satisfacao.xlsx") N = readxl::read_excel("N.xlsx") N = melt(N,id.vars = "Ano",value.name = "Nh",variable.name = "Turno") BD_n = BD_n %>% mutate(Satisfeito = if_else(Satisfeito == "S", 1, 0)) BD_2_n = BD_n %>% ...
/estatistica_aplicada_2/Consultoria_4/script.R
no_license
Lyncoln/UFF
R
false
false
2,125
r
require(dplyr); require(reshape2); require(tidyverse) require(sjPlot) BD_n = readxl::read_excel("AMOSTRA Satisfacao.xlsx") N = readxl::read_excel("N.xlsx") N = melt(N,id.vars = "Ano",value.name = "Nh",variable.name = "Turno") BD_n = BD_n %>% mutate(Satisfeito = if_else(Satisfeito == "S", 1, 0)) BD_2_n = BD_n %>% ...
\name{mat.arma} \alias{mat.arma} \title{Forms an arma correlation matrix} \description{Form the correlation \code{\link{matrix}} of order \code{order} whose correlations follow the arma pattern. The resulting \code{\link{matrix}} is banded.} \usage{mat.arma(ARparameter, MAparameter, or...
/man/mat.arma.Rd
no_license
cran/dae
R
false
false
1,854
rd
\name{mat.arma} \alias{mat.arma} \title{Forms an arma correlation matrix} \description{Form the correlation \code{\link{matrix}} of order \code{order} whose correlations follow the arma pattern. The resulting \code{\link{matrix}} is banded.} \usage{mat.arma(ARparameter, MAparameter, or...
#' Overlay a Raster with a Sierpinski Mask #' #' This constructs a "middle-ninths" Sierpinski gasket of depth n, #' starting from a given Raster*. #' #' @param layer A Raster* object. #' @param box The bounding box to Cantor-ize. #' @param n The number of iterations. #' @param random Choose edges randomly or at (1/3,2/...
/R/sierpinski.R
no_license
petrelharp/landsim
R
false
false
1,853
r
#' Overlay a Raster with a Sierpinski Mask #' #' This constructs a "middle-ninths" Sierpinski gasket of depth n, #' starting from a given Raster*. #' #' @param layer A Raster* object. #' @param box The bounding box to Cantor-ize. #' @param n The number of iterations. #' @param random Choose edges randomly or at (1/3,2/...
test_fun_applyVSN09 <- function() { ## Setup data normalData <- replicate(8, rnorm(n=500, mean=11, sd=2.5)) normalData <- 2^normalData applyVSN09(normalData) ## TODO check names of elements before / after } test_fun_applyVSN05 <- function() { ## Setup data normalDa...
/inst/unitTests/test_nrm_variance-stabilizing.R
no_license
rmylonas/Prots4Prots
R
false
false
928
r
test_fun_applyVSN09 <- function() { ## Setup data normalData <- replicate(8, rnorm(n=500, mean=11, sd=2.5)) normalData <- 2^normalData applyVSN09(normalData) ## TODO check names of elements before / after } test_fun_applyVSN05 <- function() { ## Setup data normalDa...
library(shiny) library(datasets) library(ggplot2) library(purrr) # Define server logic required to summarize and view the selected dataset shinyServer(function(input, output) { # By declaring datasetInput as a reactive expression we ensure that: # # 1) It is only called when the inputs it depends on chan...
/server.R
no_license
lpbrochu/simple_shinyapp
R
false
false
1,853
r
library(shiny) library(datasets) library(ggplot2) library(purrr) # Define server logic required to summarize and view the selected dataset shinyServer(function(input, output) { # By declaring datasetInput as a reactive expression we ensure that: # # 1) It is only called when the inputs it depends on chan...
c01fce172c2f3aac3ad01513405d77e5 cf_5_7x9_w_.qdimacs 910763 156566
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/Gent-Rowley/Connect5/cf_5_7x9_w_/cf_5_7x9_w_.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
66
r
c01fce172c2f3aac3ad01513405d77e5 cf_5_7x9_w_.qdimacs 910763 156566
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/central_nervous_system.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.75,family="gaussian",standardize=TRUE) sink('./Model/EN/ReliefF/central_nervous_s...
/Model/EN/ReliefF/central_nervous_system/central_nervous_system_077.R
no_license
leon1003/QSMART
R
false
false
400
r
library(glmnet) mydata = read.table("./TrainingSet/ReliefF/central_nervous_system.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.75,family="gaussian",standardize=TRUE) sink('./Model/EN/ReliefF/central_nervous_s...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/lymphoid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0,family="gaussian",standardize=FALSE) sink('./lymphoid_002.txt',append=TRUE) p...
/Model/EN/ReliefF/lymphoid/lymphoid_002.R
no_license
esbgkannan/QSMART
R
false
false
348
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/lymphoid.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0,family="gaussian",standardize=FALSE) sink('./lymphoid_002.txt',append=TRUE) p...
library(landscapemetrics) ### Name: lsm_l_contig_sd ### Title: CONTIG_SD (landscape level) ### Aliases: lsm_l_contig_sd lsm_l_contig_sd.RasterLayer ### lsm_l_contig_sd.RasterStack lsm_l_contig_sd.RasterBrick ### lsm_l_contig_sd.stars lsm_l_contig_sd.list ### ** Examples lsm_l_contig_sd(landscape)
/data/genthat_extracted_code/landscapemetrics/examples/lsm_l_contig_sd.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
310
r
library(landscapemetrics) ### Name: lsm_l_contig_sd ### Title: CONTIG_SD (landscape level) ### Aliases: lsm_l_contig_sd lsm_l_contig_sd.RasterLayer ### lsm_l_contig_sd.RasterStack lsm_l_contig_sd.RasterBrick ### lsm_l_contig_sd.stars lsm_l_contig_sd.list ### ** Examples lsm_l_contig_sd(landscape)
csmillie@uger-c010.broadinstitute.org.15583:1625338937
/single_cell/.#map_gene.r
no_license
cssmillie/code
R
false
false
54
r
csmillie@uger-c010.broadinstitute.org.15583:1625338937
# load packages library(sf) library(spatialEco) library(raster) library(lubridate) library(dplyr) library(rgdal) library(readr) library(purrr) library(ggplot2) library(boot) library(fitdistrplus) # import data sources cats <- read.csv("data/caterpillars_eastern_na.csv", stringsAsFactors = F) ebutterfly <- read.csv("da...
/scripts/estimate_weib10_8spp.R
no_license
mbelitz/Pollard-Incidental_Comparisons
R
false
false
7,663
r
# load packages library(sf) library(spatialEco) library(raster) library(lubridate) library(dplyr) library(rgdal) library(readr) library(purrr) library(ggplot2) library(boot) library(fitdistrplus) # import data sources cats <- read.csv("data/caterpillars_eastern_na.csv", stringsAsFactors = F) ebutterfly <- read.csv("da...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/col_search.R \name{col_search} \alias{col_search} \title{Search Catalogue of Life for taxonomic IDs} \usage{ col_search(name = NULL, id = NULL, start = NULL, checklist = NULL) } \arguments{ \item{name}{The string to search for. Only e...
/man/col_search.Rd
permissive
MadeleineMcGreer/taxize
R
false
false
1,729
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/col_search.R \name{col_search} \alias{col_search} \title{Search Catalogue of Life for taxonomic IDs} \usage{ col_search(name = NULL, id = NULL, start = NULL, checklist = NULL) } \arguments{ \item{name}{The string to search for. Only e...
################################ ## p-value for nutrition study example 1 - pt(3.01, df = 15.99) ################################ ## Read the two-sample in R xA=c(7.53, 7.48, 8.08, 8.09, 10.15, 8.4, 10.88, 6.13, 7.9) xB=c(9.21, 11.51, 12.79, 11.85, 9.97, 8.79, 9.69, 9.68, 9.19) ## A two sample Welch t-test t.test(xB,...
/snippets/week6.R
no_license
andreasharmuth/statistics
R
false
false
1,692
r
################################ ## p-value for nutrition study example 1 - pt(3.01, df = 15.99) ################################ ## Read the two-sample in R xA=c(7.53, 7.48, 8.08, 8.09, 10.15, 8.4, 10.88, 6.13, 7.9) xB=c(9.21, 11.51, 12.79, 11.85, 9.97, 8.79, 9.69, 9.68, 9.19) ## A two sample Welch t-test t.test(xB,...
mat <- read.csv("samplefile.txt") plot(1:dim(mat)[1], t(mat), type = "b")
/analysis.R
no_license
MatPont/Escape_project
R
false
false
74
r
mat <- read.csv("samplefile.txt") plot(1:dim(mat)[1], t(mat), type = "b")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/template.R \name{navbarBoilerPlate} \alias{navbarBoilerPlate} \title{Top Navbar} \usage{ navbarBoilerPlate() } \description{ Top Navbar }
/man/navbarBoilerPlate.Rd
no_license
abhik1368/gentelellaShiny
R
false
true
217
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/template.R \name{navbarBoilerPlate} \alias{navbarBoilerPlate} \title{Top Navbar} \usage{ navbarBoilerPlate() } \description{ Top Navbar }
# D(group, lv, cd4, d8) report.DeviationFromMean <- function(D, tsvFile, pngFile) { names <- c("lv","cd4","cd8") means <- paste(names,"mean",sep=".") diffs <- paste(names,"diff",sep=".") # # Compute summary statistics # D <- mergeMean(D, D["group"], names) #D <- mergeMedian(D, D["group"], names) D <- merg...
/tools/Rscripts/flow/Reports.R
no_license
scchess/LabKey
R
false
false
1,279
r
# D(group, lv, cd4, d8) report.DeviationFromMean <- function(D, tsvFile, pngFile) { names <- c("lv","cd4","cd8") means <- paste(names,"mean",sep=".") diffs <- paste(names,"diff",sep=".") # # Compute summary statistics # D <- mergeMean(D, D["group"], names) #D <- mergeMedian(D, D["group"], names) D <- merg...
#' @rdname popStructStat #' @export #' statFst <- function(g, strata = NULL, ...) { if(ploidy(g) == 1 | nStrata(g) == 1) { g@sequences <- NULL return(statPhist(g, strata = strata)) } strata <- if(is.null(strata)) { strata(g) } else { rep(strata, length.out = nInd(g)) } if(!is.factor(s...
/strataG/R/statFst.R
no_license
hjanime/strataG
R
false
false
4,916
r
#' @rdname popStructStat #' @export #' statFst <- function(g, strata = NULL, ...) { if(ploidy(g) == 1 | nStrata(g) == 1) { g@sequences <- NULL return(statPhist(g, strata = strata)) } strata <- if(is.null(strata)) { strata(g) } else { rep(strata, length.out = nInd(g)) } if(!is.factor(s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/material.R \name{mtrl_getFpName} \alias{mtrl_getFpName} \title{读取物料的开票名称及开票规格型号} \usage{ mtrl_getFpName( file = "data-raw/2019年新K3开票名称-V3.XLS", sheet = "开票用最新", lang = "cn" ) } \arguments{ \item{file}{文件} \item{sheet}{页签} \item{lang}{...
/man/mtrl_getFpName.Rd
no_license
takewiki/kjrdspkg
R
false
true
507
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/material.R \name{mtrl_getFpName} \alias{mtrl_getFpName} \title{读取物料的开票名称及开票规格型号} \usage{ mtrl_getFpName( file = "data-raw/2019年新K3开票名称-V3.XLS", sheet = "开票用最新", lang = "cn" ) } \arguments{ \item{file}{文件} \item{sheet}{页签} \item{lang}{...
# Figure 18-1 library(car) attach(States) plot(dollars,SATM, pch = 16, col = "maroon") grid(lty = "solid") # Figure 18-2 library(car) attach(States) coplot(SATM ~ dollars | percent, pch = 16, col = "royalblue", bar.bg = c(num = "goldenrod2")) # Figure 18-3 library(car) attach(States) coplot(SATM ~ dollars | perc...
/Chapter 18/Chapter-18.R
no_license
afettouhi/GraphingDatawithR-R40
R
false
false
650
r
# Figure 18-1 library(car) attach(States) plot(dollars,SATM, pch = 16, col = "maroon") grid(lty = "solid") # Figure 18-2 library(car) attach(States) coplot(SATM ~ dollars | percent, pch = 16, col = "royalblue", bar.bg = c(num = "goldenrod2")) # Figure 18-3 library(car) attach(States) coplot(SATM ~ dollars | perc...
context("Test field-related functions") ## ala_fields thischeck=function() { test_that("ala_fields works as expected", { expect_gt(nrow(ala_fields(fields_type="occurrence")),570) expect_lt(nrow(ala_fields(fields_type="occurrence_indexed")),nrow(ala_fields(fields_type="occurrence"))) expect_...
/tests/testthat/test-fields.R
no_license
AugustT/ALA4R
R
false
false
1,431
r
context("Test field-related functions") ## ala_fields thischeck=function() { test_that("ala_fields works as expected", { expect_gt(nrow(ala_fields(fields_type="occurrence")),570) expect_lt(nrow(ala_fields(fields_type="occurrence_indexed")),nrow(ala_fields(fields_type="occurrence"))) expect_...
## check if folder already exist if (! dir.exists("files")) dir.create("files") ## check if file already exist in the directory if (! file.exists("./files/labour_force.csv")){ URL <- "http://data.stats.gov.my/download_bptms.php?cat=1&id=34" download.file(URL,destfile = "./files/labour_force.csv", method = "c") ...
/gettingData2.R
no_license
mani25th/GettingData-2
R
false
false
448
r
## check if folder already exist if (! dir.exists("files")) dir.create("files") ## check if file already exist in the directory if (! file.exists("./files/labour_force.csv")){ URL <- "http://data.stats.gov.my/download_bptms.php?cat=1&id=34" download.file(URL,destfile = "./files/labour_force.csv", method = "c") ...
PREDA_multTestCorrection<-function(pvalues, method) { if (method=="qvalue") { require(qvalue) corrected_pvalues<-(qvalue(pvalues)$qvalues) return(corrected_pvalues) } else if (method=="fdr") { require(multtest) adjusted.pvalues<-mt.rawp2adjp(pvalues, proc=c("BH")) ...
/R/PREDA_multTestCorrection.R
no_license
bernatgel/PREDAsam
R
false
false
727
r
PREDA_multTestCorrection<-function(pvalues, method) { if (method=="qvalue") { require(qvalue) corrected_pvalues<-(qvalue(pvalues)$qvalues) return(corrected_pvalues) } else if (method=="fdr") { require(multtest) adjusted.pvalues<-mt.rawp2adjp(pvalues, proc=c("BH")) ...
## Model fitting to data. require(deSolve) # source("R/loadFunctions.R") # testing model fit with a health center with complete time series weekly data load("data/clean_data/seguenega_hyperendemic_2007_2011.RData") seguenega_hyperendemic_2007_2011$week_num=seq(157,417,1) # Plotting the data to fit. plot(seguen...
/R/2015_scripts/fit_model_A_Optim_LS.R
no_license
PascalCrepey/meningo-modelling
R
false
false
13,833
r
## Model fitting to data. require(deSolve) # source("R/loadFunctions.R") # testing model fit with a health center with complete time series weekly data load("data/clean_data/seguenega_hyperendemic_2007_2011.RData") seguenega_hyperendemic_2007_2011$week_num=seq(157,417,1) # Plotting the data to fit. plot(seguen...
#' read_config parses the CONC.CFG output file #' @author Ben Fasoli #' #' Reads CONC.CFG hymodelc output file into named list #' #' @param file location of CONC.CFG file #' #' @export read_config <- function(file) { n_lines <- count_lines(file) if (n_lines < 2) { warning(paste('read_config(): only 1 line fo...
/r/src/read_config.r
no_license
ddlddl58/stilt
R
false
false
677
r
#' read_config parses the CONC.CFG output file #' @author Ben Fasoli #' #' Reads CONC.CFG hymodelc output file into named list #' #' @param file location of CONC.CFG file #' #' @export read_config <- function(file) { n_lines <- count_lines(file) if (n_lines < 2) { warning(paste('read_config(): only 1 line fo...
# Accomplish the following three goals: # # 1. select() all columns that do NOT contain the word "total", # since if we have the male and female data, we can always # recreate the total count in a separate column, if we want it. # Hint: Use the contains() function, which you'll # find detailed in 'Special functions' se...
/3_Getting_and_Cleaning-Data/swirl/script8.R
no_license
alexballera/datasciencecoursera
R
false
false
787
r
# Accomplish the following three goals: # # 1. select() all columns that do NOT contain the word "total", # since if we have the male and female data, we can always # recreate the total count in a separate column, if we want it. # Hint: Use the contains() function, which you'll # find detailed in 'Special functions' se...
library(MOEADr) ### Name: print.moead ### Title: print.moead ### Aliases: print.moead ### ** Examples problem.1 <- list(name = "example_problem", xmin = rep(-1,30), xmax = rep(1,30), m = 2) out <- moead(preset = preset_moead("original2"), prob...
/data/genthat_extracted_code/MOEADr/examples/print.moead.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
558
r
library(MOEADr) ### Name: print.moead ### Title: print.moead ### Aliases: print.moead ### ** Examples problem.1 <- list(name = "example_problem", xmin = rep(-1,30), xmax = rep(1,30), m = 2) out <- moead(preset = preset_moead("original2"), prob...
#' checks.R #' #' Utility functions to write checks with. #' Check for the presence of an element. Specifically, this function returns #' a SUCCESS status if one or more elements were present and a FAILURE status #' if no elements were present. #' #' Note: Modifies global environment! #' #' @param x (any) Metadata el...
/R/checks.R
no_license
dmullen17/metadig-r
R
false
false
3,657
r
#' checks.R #' #' Utility functions to write checks with. #' Check for the presence of an element. Specifically, this function returns #' a SUCCESS status if one or more elements were present and a FAILURE status #' if no elements were present. #' #' Note: Modifies global environment! #' #' @param x (any) Metadata el...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elbv2_operations.R \name{elbv2_create_target_group} \alias{elbv2_create_target_group} \title{Creates a target group} \usage{ elbv2_create_target_group(Name, Protocol, Port, VpcId, HealthCheckProtocol, HealthCheckPort, HealthCheckEnabled, ...
/paws/man/elbv2_create_target_group.Rd
permissive
ryanb8/paws
R
false
true
6,870
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/elbv2_operations.R \name{elbv2_create_target_group} \alias{elbv2_create_target_group} \title{Creates a target group} \usage{ elbv2_create_target_group(Name, Protocol, Port, VpcId, HealthCheckProtocol, HealthCheckPort, HealthCheckEnabled, ...
source("renv/activate.R") library <- function(...) suppressPackageStartupMessages(suppressMessages(base::library(...)))
/.Rprofile
no_license
rubenarslan/interactions
R
false
false
121
rprofile
source("renv/activate.R") library <- function(...) suppressPackageStartupMessages(suppressMessages(base::library(...)))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preload.r \name{ssh_args} \alias{ssh_args} \title{Constructs a string of arguments for local ssh to forward a port} \usage{ ssh_args(port) } \arguments{ \item{port}{The port for server connection} } \value{ A string. } \description{ Construct...
/man/ssh_args.Rd
permissive
RBigData/launchr
R
false
true
378
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/preload.r \name{ssh_args} \alias{ssh_args} \title{Constructs a string of arguments for local ssh to forward a port} \usage{ ssh_args(port) } \arguments{ \item{port}{The port for server connection} } \value{ A string. } \description{ Construct...
test_that("custom scalar translated correctly", { local_con(simulate_postgres()) expect_equal(translate_sql(bitwXor(x, 128L)), sql("`x` # 128")) expect_equal(translate_sql(log10(x)), sql("LOG(`x`)")) expect_equal(translate_sql(log(x)), sql("LN(`x`)")) expect_equal(translat...
/tests/testthat/test-backend-postgres.R
permissive
rjpat/dbplyr
R
false
false
4,345
r
test_that("custom scalar translated correctly", { local_con(simulate_postgres()) expect_equal(translate_sql(bitwXor(x, 128L)), sql("`x` # 128")) expect_equal(translate_sql(log10(x)), sql("LOG(`x`)")) expect_equal(translate_sql(log(x)), sql("LN(`x`)")) expect_equal(translat...
######################################################################### # Reproducible Research (course project 1) # Loading and preprocessing the data cls = c("integer", "character", "integer") df <- read.csv("activity.csv", head=TRUE, colClasses=cls, na.strings="NA") head(df) df$date <- as.Date(df$date) df_ign <-...
/PA1_template.R
no_license
thenewdeal/RepData_PeerAssignment_1
R
false
false
2,547
r
######################################################################### # Reproducible Research (course project 1) # Loading and preprocessing the data cls = c("integer", "character", "integer") df <- read.csv("activity.csv", head=TRUE, colClasses=cls, na.strings="NA") head(df) df$date <- as.Date(df$date) df_ign <-...
mat_peptide.F <- function(Feat, SQuali, SQualiN){ Item <- c("/allele=", "/citation=", "/db_xref=", "/EC_number=", "/experiment=", "/function=", "/gene=", "/gene_synonym=", "/inference=", "/locus_tag=", "/map=", "/note=", "/old_locus_tag=", "/product=", "/pseudogene=", "/standard_name=") ItemN <- c("allele", "cita...
/R/mat_peptide.F.R
no_license
Largon-Denayah/read.gb-2.0.1
R
false
false
2,127
r
mat_peptide.F <- function(Feat, SQuali, SQualiN){ Item <- c("/allele=", "/citation=", "/db_xref=", "/EC_number=", "/experiment=", "/function=", "/gene=", "/gene_synonym=", "/inference=", "/locus_tag=", "/map=", "/note=", "/old_locus_tag=", "/product=", "/pseudogene=", "/standard_name=") ItemN <- c("allele", "cita...
#' Tong et al. (2012)'s Lindley-type Shrunken Mean Estimator #' #' An implementation of the Lindley-type shrunken mean estimator utilized in #' shrinkage-mean-based diagonal linear discriminant analysis (SmDLDA). #' #' @export #' @importFrom stats var #' @references Tong, T., Chen, L., and Zhao, H. (2012), "Improved Me...
/R/tong-shrinkage.r
no_license
mntabassm/sparsediscrim
R
false
false
2,098
r
#' Tong et al. (2012)'s Lindley-type Shrunken Mean Estimator #' #' An implementation of the Lindley-type shrunken mean estimator utilized in #' shrinkage-mean-based diagonal linear discriminant analysis (SmDLDA). #' #' @export #' @importFrom stats var #' @references Tong, T., Chen, L., and Zhao, H. (2012), "Improved Me...
context("test-order_cells") skip_not_travis <- function () { if (identical(Sys.getenv("TRAVIS"), "true")) { return(invisible(TRUE)) } skip("Not on Travis") } cds <- load_a549() set.seed(100) test_that("order_cells error messages work", { skip_on_travis() expect_error(order_cells(cds), "No dimensionality...
/tests/testthat/test-order_cells.R
permissive
utnesp/monocle3
R
false
false
12,119
r
context("test-order_cells") skip_not_travis <- function () { if (identical(Sys.getenv("TRAVIS"), "true")) { return(invisible(TRUE)) } skip("Not on Travis") } cds <- load_a549() set.seed(100) test_that("order_cells error messages work", { skip_on_travis() expect_error(order_cells(cds), "No dimensionality...
testlist <- list(x = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 8L))) result <- do.call(bravo:::colSumSq_matrix,testlist) str(result)
/bravo/inst/testfiles/colSumSq_matrix/libFuzzer_colSumSq_matrix/colSumSq_matrix_valgrind_files/1609959008-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
311
r
testlist <- list(x = structure(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 8L))) result <- do.call(bravo:::colSumSq_matrix,testlist) str(result)
library(ggplot2) library(scales) library(reshape2) library(shiny) library(grid) library(plyr) library(data.table) require(GGally) # load the dataset as global data loadData <- function() { data(state) # Trandform to data frame df <- data.frame(state.x77, State = state.name, ...
/homework3/Server.R
no_license
dhuo/msan622
R
false
false
7,349
r
library(ggplot2) library(scales) library(reshape2) library(shiny) library(grid) library(plyr) library(data.table) require(GGally) # load the dataset as global data loadData <- function() { data(state) # Trandform to data frame df <- data.frame(state.x77, State = state.name, ...
\name{nim.read} \alias{nim.read} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Function to read a Nimblegen "SEG_MNT.txt" file. } \description{ Function to read a Nimblgen "SEG_MNT.txt" file. } \usage{ nim.read(file, Raw) } %- maybe also 'usage' for other objects documented here. \arguments{ ...
/man/nim.read.Rd
no_license
cran/aCGH.Spline
R
false
false
1,277
rd
\name{nim.read} \alias{nim.read} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Function to read a Nimblegen "SEG_MNT.txt" file. } \description{ Function to read a Nimblgen "SEG_MNT.txt" file. } \usage{ nim.read(file, Raw) } %- maybe also 'usage' for other objects documented here. \arguments{ ...
library("zoo") library("xts") library("timeSeries") library("testthat") context("Checking return formats") test_that("Data is parsed correctly", { daily <- Quandl("TESTS/1") expect_named(daily, c("Date","Open","High" ,"Low" , "Last", "Close", "Total Trade Quantity", "Turnover (Lacs)")) e...
/inst/tests/test-get.r
permissive
parthasen/R-package
R
false
false
3,331
r
library("zoo") library("xts") library("timeSeries") library("testthat") context("Checking return formats") test_that("Data is parsed correctly", { daily <- Quandl("TESTS/1") expect_named(daily, c("Date","Open","High" ,"Low" , "Last", "Close", "Total Trade Quantity", "Turnover (Lacs)")) e...
library(tidyverse) setwd('C:\\Users\\komatsuk\\Dropbox (Smithsonian)\\nutrient network\\NutNet data') #kim's desktop setwd('C:\\Users\\lapie\\Dropbox (Smithsonian)\\nutrient network\\NutNet data') #kim's laptop cover <- read.csv('full-cover-18-October-2021.csv')%>% mutate(keep=ifelse(site_code %in% c('shps.us', 'ya...
/DatasetCleaningCode/NutNet.R
no_license
klapierre/CoRRE
R
false
false
1,866
r
library(tidyverse) setwd('C:\\Users\\komatsuk\\Dropbox (Smithsonian)\\nutrient network\\NutNet data') #kim's desktop setwd('C:\\Users\\lapie\\Dropbox (Smithsonian)\\nutrient network\\NutNet data') #kim's laptop cover <- read.csv('full-cover-18-October-2021.csv')%>% mutate(keep=ifelse(site_code %in% c('shps.us', 'ya...
library(tidyverse) BOM_data <- read_csv('data/BOM_data.csv') BOM_stations <- read_csv('data/BOM_stations.csv') #Q1 For each station, how many days have a minimum temperature, a maximum temperature and a rainfall measurement recorded? Q1 <- BOM_data %>% select(c('Station_number', 'Temp_min_max', 'Rainfall')) %>% ...
/PracWk2.R
no_license
EPLeyne/20200317_wk2prac
R
false
false
2,248
r
library(tidyverse) BOM_data <- read_csv('data/BOM_data.csv') BOM_stations <- read_csv('data/BOM_stations.csv') #Q1 For each station, how many days have a minimum temperature, a maximum temperature and a rainfall measurement recorded? Q1 <- BOM_data %>% select(c('Station_number', 'Temp_min_max', 'Rainfall')) %>% ...