content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/imagen.R \name{deriveImgnADRS} \alias{deriveImgnADRS} \title{Generate summary for ADRS questionnaire} \usage{ deriveImgnADRS(df) } \arguments{ \item{df}{data frame containing long form ADRS data} } \value{ wide form of ADRS data with summary ...
/man/deriveImgnADRS.Rd
no_license
Kiran8050/psytools
R
false
true
437
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/imagen.R \name{deriveImgnADRS} \alias{deriveImgnADRS} \title{Generate summary for ADRS questionnaire} \usage{ deriveImgnADRS(df) } \arguments{ \item{df}{data frame containing long form ADRS data} } \value{ wide form of ADRS data with summary ...
library(data.table) library(stringr) recursive_mean <- function(lastmean, k, x){ return(((k-1)*lastmean+x)/k) } cmd_args <- commandArgs() CURRENTDIR <- dirname(regmatches(cmd_args, regexpr("(?<=^--file=).+", cmd_args, perl=TRUE))) ROOTDIR <- dirname(CURRENTDIR) OUTDIR <- file.path(ROOTDIR, "output") # OUTDIR <- "....
/examples/t_distribution/src/meanplot.r
permissive
ericagol/GAMCSampler.jl
R
false
false
1,891
r
library(data.table) library(stringr) recursive_mean <- function(lastmean, k, x){ return(((k-1)*lastmean+x)/k) } cmd_args <- commandArgs() CURRENTDIR <- dirname(regmatches(cmd_args, regexpr("(?<=^--file=).+", cmd_args, perl=TRUE))) ROOTDIR <- dirname(CURRENTDIR) OUTDIR <- file.path(ROOTDIR, "output") # OUTDIR <- "....
# This script allow you to quick clean your R session # update documentation and NAMESPACE, localy install the package # and run the example used to show how mod_csv_fileInput work .rs.api.documentSaveAll() # close and save all open file suppressWarnings(lapply(paste('package:',names(sessionInfo()$otherPkgs),sep=""),de...
/CryptoShiny/inst/dev/run_dev_mod_csv_fileInput.R
permissive
souhailelaissaoui/Crypto-Trading-Tools
R
false
false
878
r
# This script allow you to quick clean your R session # update documentation and NAMESPACE, localy install the package # and run the example used to show how mod_csv_fileInput work .rs.api.documentSaveAll() # close and save all open file suppressWarnings(lapply(paste('package:',names(sessionInfo()$otherPkgs),sep=""),de...
\name{df4counts} \alias{df4counts} \title{Generates a Data Frame from a repeatedTrain Object After Time Binning} \description{ Generates a \code{\link{data.frame}} object out of a \code{repeatedTrain} object after time binning in order to study trials stationarity with a \code{\link{glm}} fit. } \usage{ df4counts...
/man/df4counts.Rd
no_license
cran/STAR
R
false
false
2,943
rd
\name{df4counts} \alias{df4counts} \title{Generates a Data Frame from a repeatedTrain Object After Time Binning} \description{ Generates a \code{\link{data.frame}} object out of a \code{repeatedTrain} object after time binning in order to study trials stationarity with a \code{\link{glm}} fit. } \usage{ df4counts...
#' Print results of cv_auc #' @export #' @param x An object of class "cvauc" #' @param ci_level Level of confidence interval to print. Defaults to 0.95. #' @param ... Other options (not currently used) print.cvauc <- function(x, ci_level = 0.95, ...){ cvtmle_ci <- if(x$se_cvtmle_type == "std"){ c(x$est_cvtmle - abs...
/R/utils.R
permissive
benkeser/predtmle
R
false
false
4,319
r
#' Print results of cv_auc #' @export #' @param x An object of class "cvauc" #' @param ci_level Level of confidence interval to print. Defaults to 0.95. #' @param ... Other options (not currently used) print.cvauc <- function(x, ci_level = 0.95, ...){ cvtmle_ci <- if(x$se_cvtmle_type == "std"){ c(x$est_cvtmle - abs...
library(ape) testtree <- read.tree("10128_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10128_1_unrooted.txt")
/codeml_files/newick_trees_processed_and_cleaned/10128_1/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("10128_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10128_1_unrooted.txt")
# packages we will require devtools::use_package("dplyr") devtools::use_package("boot") devtools::use_package("purrr") devtools::use_package("cem") devtools::use_package("parallel") devtools::use_package("stringr") # devtools::use_readme_md() # devtools::document() # imports #' @importFrom parallel detectCores #' @imp...
/R/bootr.r
no_license
jacobaro/bootr
R
false
false
9,502
r
# packages we will require devtools::use_package("dplyr") devtools::use_package("boot") devtools::use_package("purrr") devtools::use_package("cem") devtools::use_package("parallel") devtools::use_package("stringr") # devtools::use_readme_md() # devtools::document() # imports #' @importFrom parallel detectCores #' @imp...
al1<-get_map(location = c(lon = c(40,60), lat = c(-89,-120),zoom = 2, maptype = 'roadmap')) al1MAP<-ggmap(al1)+geom_point(data=data, aes(x=lon, y=lat), colour=data$m_delay)+ xlab("Longitude")+ylab("Latitude")+ggtitle("The mean delay of flights for different airports")+ scale_color_gradient(low="blue", high="red") ...
/triedmap.R
no_license
ClaraSchartner/lab7
R
false
false
361
r
al1<-get_map(location = c(lon = c(40,60), lat = c(-89,-120),zoom = 2, maptype = 'roadmap')) al1MAP<-ggmap(al1)+geom_point(data=data, aes(x=lon, y=lat), colour=data$m_delay)+ xlab("Longitude")+ylab("Latitude")+ggtitle("The mean delay of flights for different airports")+ scale_color_gradient(low="blue", high="red") ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/breast.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.15,family="gaussian",standardize=TRUE) sink('./breast_029.txt',append=TRUE) pri...
/Model/EN/ReliefF/breast/breast_029.R
no_license
esbgkannan/QSMART
R
false
false
346
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/breast.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.15,family="gaussian",standardize=TRUE) sink('./breast_029.txt',append=TRUE) pri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.r \docType{data} \name{Query} \alias{Query} \title{Query Class} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ Query } \description{ Query Class } \section{Fields}{ \describe{ \item{\code{id}}{} \item{\code{...
/man/Query.Rd
permissive
tynesjo/lookr
R
false
true
1,017
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Query.r \docType{data} \name{Query} \alias{Query} \title{Query Class} \format{An object of class \code{R6ClassGenerator} of length 24.} \usage{ Query } \description{ Query Class } \section{Fields}{ \describe{ \item{\code{id}}{} \item{\code{...
fit.sim2 <- function(sim.specs, jags.controls = c(3, 1000, 500, 1, 5)){ library("tibble") source("functions/scm_fun_fit.mod.R") model.fit.m <- fit.mod(sim.data = sim.specs$sim.data[[1]], model.file = sim.specs$model.file.m, jags.contro...
/functions/scm_fun_fit.sim2.R
no_license
geryan/simultaneous_count_models
R
false
false
870
r
fit.sim2 <- function(sim.specs, jags.controls = c(3, 1000, 500, 1, 5)){ library("tibble") source("functions/scm_fun_fit.mod.R") model.fit.m <- fit.mod(sim.data = sim.specs$sim.data[[1]], model.file = sim.specs$model.file.m, jags.contro...
CoDaDendrogram2 = function(comp, V, equal.height=FALSE, range=c(-4,4), show.range=TRUE, n_digits=1, group=NULL, type="none", conf.level=0.95, conf.method="t", leaf_las = 2, pch.col = TRUE, ...) ###### # A fork of the CoDaDendrogram function in the compositions R package (v...
/lib/codadend2.R
permissive
rgoals/2019_Site-specific-potato-npk-model
R
false
false
11,181
r
CoDaDendrogram2 = function(comp, V, equal.height=FALSE, range=c(-4,4), show.range=TRUE, n_digits=1, group=NULL, type="none", conf.level=0.95, conf.method="t", leaf_las = 2, pch.col = TRUE, ...) ###### # A fork of the CoDaDendrogram function in the compositions R package (v...
testlist <- list(Rs = numeric(0), atmp = 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), relh = -1.72131968218888e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.32584952472158e-113, 6.62400885653369e-313, -6.80033518...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615848863-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
736
r
testlist <- list(Rs = numeric(0), atmp = 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), relh = -1.72131968218888e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.32584952472158e-113, 6.62400885653369e-313, -6.80033518...
####### Find UTRs based on depth of coverage of 3' RNA-seq reads ##### Input file is output of samtools depth command using bed file of reference seqences with known coding domains removed ### Output is a bed file of locations of UTRs ## BWW # 4/24/20 library(plyr) library(tidyverse) library(magrittr) depthDat <- r...
/findUT.R
no_license
Cpetak/EG_final_project
R
false
false
2,305
r
####### Find UTRs based on depth of coverage of 3' RNA-seq reads ##### Input file is output of samtools depth command using bed file of reference seqences with known coding domains removed ### Output is a bed file of locations of UTRs ## BWW # 4/24/20 library(plyr) library(tidyverse) library(magrittr) depthDat <- r...
#' Drop unused levels from factors #' #' @name droplevels #' @exportMethod droplevels #' @importFrom S4Vectors droplevels #' @inherit base::droplevels description #' @note Updated 2019-08-19. #' #' @inheritParams acidroxygen::params #' #' @return Modified object. #' #' @examples #' data(RangedSummarizedExperiment, pack...
/R/droplevels-methods.R
permissive
csu-xiao-an/transformer
R
false
false
1,654
r
#' Drop unused levels from factors #' #' @name droplevels #' @exportMethod droplevels #' @importFrom S4Vectors droplevels #' @inherit base::droplevels description #' @note Updated 2019-08-19. #' #' @inheritParams acidroxygen::params #' #' @return Modified object. #' #' @examples #' data(RangedSummarizedExperiment, pack...
# This is a simplification of clangHandler which uses pointers # as the parameter types, not CXCursor struct objects. # This simplifies how the functions are called from the clang code and # removes how we get the structs by value. library(RLLVMCompile) h = function(cur, parent, data) { kind = cur$xdata # kind ...
/explorations/clangPtrHandler2.R
no_license
duncantl/RLLVMCompile
R
false
false
1,815
r
# This is a simplification of clangHandler which uses pointers # as the parameter types, not CXCursor struct objects. # This simplifies how the functions are called from the clang code and # removes how we get the structs by value. library(RLLVMCompile) h = function(cur, parent, data) { kind = cur$xdata # kind ...
sio2_site <- combined_data %>% select(sample_date, si_o2, sample_id) %>% mutate(sample_date = year(sample_date)) %>% mutate(sample_date = as.Date(ISOdate(sample_date, 1, 1))) %>% group_by(sample_date, sample_id) %>% summarize(si_o2 = mean(si_o2, na.rm = TRUE)) hurricane <- as.Date("1989-09-15") ggplot(si...
/R/sio2_plot.R
no_license
petermenzies/topatopa
R
false
false
581
r
sio2_site <- combined_data %>% select(sample_date, si_o2, sample_id) %>% mutate(sample_date = year(sample_date)) %>% mutate(sample_date = as.Date(ISOdate(sample_date, 1, 1))) %>% group_by(sample_date, sample_id) %>% summarize(si_o2 = mean(si_o2, na.rm = TRUE)) hurricane <- as.Date("1989-09-15") ggplot(si...
#Import the neccessary libraries that I will need library(dplyr) library(tidyverse) library(ggplot2) #Import the 3 cleaned datasets from Python PlayListCleaned <- read.csv("/Users/drewbrinda/Desktop/Practicum I/PlayListCleaned.csv") PlayerTrackCleaned <- read.csv("/Users/drewbrinda/Desktop/Practicum I/PlayTrackCleaned...
/EDA and Modeling.R
no_license
dbrinda2/Data-Science-Practicum-I-Regis
R
false
false
4,982
r
#Import the neccessary libraries that I will need library(dplyr) library(tidyverse) library(ggplot2) #Import the 3 cleaned datasets from Python PlayListCleaned <- read.csv("/Users/drewbrinda/Desktop/Practicum I/PlayListCleaned.csv") PlayerTrackCleaned <- read.csv("/Users/drewbrinda/Desktop/Practicum I/PlayTrackCleaned...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genotypeQC.R \name{plotPCA4plink} \alias{plotPCA4plink} \title{Population outlier detection} \usage{ plotPCA4plink(gcta, inputPrefix, nThread = 20, outputPC4subjFile, outputPCplotFile) } \arguments{ \item{gcta}{an executable program in eith...
/man/plotPCA4plink.Rd
no_license
ruixiangliu/Gimpute
R
false
true
1,922
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genotypeQC.R \name{plotPCA4plink} \alias{plotPCA4plink} \title{Population outlier detection} \usage{ plotPCA4plink(gcta, inputPrefix, nThread = 20, outputPC4subjFile, outputPCplotFile) } \arguments{ \item{gcta}{an executable program in eith...
EastWestAirlines<-read_excel(file.choose()) View(EastWestAirlines) norm_airliness<-scale(EastWestAirlines[,-1]) View(norm_airliness) #hclust distance<-dist(norm_airliness,method = "euclidean") hclust_airlines<-hclust(distance,method = "single") hclust_airlines1<-hclust(distance,method = "complete") plot(hclus...
/CLTR_kmeans_airlines.R
no_license
kurla-sreevalli/DS_Rcode
R
false
false
860
r
EastWestAirlines<-read_excel(file.choose()) View(EastWestAirlines) norm_airliness<-scale(EastWestAirlines[,-1]) View(norm_airliness) #hclust distance<-dist(norm_airliness,method = "euclidean") hclust_airlines<-hclust(distance,method = "single") hclust_airlines1<-hclust(distance,method = "complete") plot(hclus...
#' grangesVenn #' #' Creates a table of overlapping \code{GRanges} from a \code{GRangesList}, vennCounts and optionally plots the first (up to) five #' #' @param x \code{GRangesList} of interest #' @param plot Whether to plot after calculating the intersections #' @param basepair Whether to calculate the intersections ...
/R/grangesVenn.R
no_license
timpeters82/aaRon
R
false
false
2,411
r
#' grangesVenn #' #' Creates a table of overlapping \code{GRanges} from a \code{GRangesList}, vennCounts and optionally plots the first (up to) five #' #' @param x \code{GRangesList} of interest #' @param plot Whether to plot after calculating the intersections #' @param basepair Whether to calculate the intersections ...
# Final Exam - PREDICTING BANK TELEMARKETING SUCCESS rm(list = ls()) # Problem 1 - Loading the Data bank <- read.csv("bank.csv") str(bank) mean(bank$age) # Problem 2 - Call Durations by Job # Build a boxplot that shows the call duration distributions over different jobs. Which three jobs have the longest average c...
/Final Exam/Final exam - Predicting Bank Telemarketing.R
no_license
pipegalera/R-Course-MITx-The-Analytics-Edge
R
false
false
2,304
r
# Final Exam - PREDICTING BANK TELEMARKETING SUCCESS rm(list = ls()) # Problem 1 - Loading the Data bank <- read.csv("bank.csv") str(bank) mean(bank$age) # Problem 2 - Call Durations by Job # Build a boxplot that shows the call duration distributions over different jobs. Which three jobs have the longest average c...
#setwd("/R codes model/Model 3/1.0") #source('steady.state.R') ## solution B=Ax library('limSolve') dproteins<-read.csv("derivation data 16 time course.smooth.csv",row.names=1) proteins<-read.csv("noise data 1%.csv", row.names=1) receptors<-proteins[proteins[,"time"]==0,"receptors"] dreceptors<-0 R_...
/2020REU_final_files/Subteam1-MCMC&PSO/MCMC_algorithms/mcmc_techniques_odes/RCode/Model 3/1.0/steady.state.R
permissive
depillis/T1DREU2020
R
false
false
2,390
r
#setwd("/R codes model/Model 3/1.0") #source('steady.state.R') ## solution B=Ax library('limSolve') dproteins<-read.csv("derivation data 16 time course.smooth.csv",row.names=1) proteins<-read.csv("noise data 1%.csv", row.names=1) receptors<-proteins[proteins[,"time"]==0,"receptors"] dreceptors<-0 R_...
rm(list=ls()) library(tidyr) library(plyr) library(dplyr) library(ggplot2) library(ggpubr) library(stats) library(tibble) library(reshape) library("viridis") library(forcats) library(DescTools) load("/Users/ChatNoir/Projects/Squam/scripts_ch1/Graphing/DataFiles/Calcs_countLoci_2021.RData") # set up to load both data...
/Graphs/Graph_countLoci_allPPT_2021.R
permissive
LizEve/SquamateLikelihoodRatios
R
false
false
14,282
r
rm(list=ls()) library(tidyr) library(plyr) library(dplyr) library(ggplot2) library(ggpubr) library(stats) library(tibble) library(reshape) library("viridis") library(forcats) library(DescTools) load("/Users/ChatNoir/Projects/Squam/scripts_ch1/Graphing/DataFiles/Calcs_countLoci_2021.RData") # set up to load both data...
############################################################################### #Pie Chart #Simple Pie Charts slices <- c(10, 12,4, 16, 8) lbls <- c("US", "UK", "Australia", "Germany", "France") pie(slices, labels = lbls, main="Pie Chart of Countries") #Pie Chart with Annotated Percentages pct <- round(slices/su...
/R Data Visualization/R_data_visualization_Pie_chart.R
no_license
akaidkhan/Data_Science_with_R
R
false
false
818
r
############################################################################### #Pie Chart #Simple Pie Charts slices <- c(10, 12,4, 16, 8) lbls <- c("US", "UK", "Australia", "Germany", "France") pie(slices, labels = lbls, main="Pie Chart of Countries") #Pie Chart with Annotated Percentages pct <- round(slices/su...
\name{wrap_rmd} \alias{wrap_rmd} \title{Wrap long lines in Rmd files} \usage{ wrap_rmd(file, width = 80, text = NULL, backup) } \arguments{ \item{file}{the input Rmd file} \item{width}{the expected line width} \item{text}{an alternative to \code{file} to input the text lines} \item{backup}{the path to back...
/man/wrap_rmd.Rd
no_license
sietse/knitr
R
false
false
1,216
rd
\name{wrap_rmd} \alias{wrap_rmd} \title{Wrap long lines in Rmd files} \usage{ wrap_rmd(file, width = 80, text = NULL, backup) } \arguments{ \item{file}{the input Rmd file} \item{width}{the expected line width} \item{text}{an alternative to \code{file} to input the text lines} \item{backup}{the path to back...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_associations.R \name{get_associations} \alias{get_associations} \title{Get GWAS Catalog associations} \usage{ get_associations( study_id = NULL, association_id = NULL, variant_id = NULL, efo_id = NULL, pubmed_id = NULL, efo_tr...
/man/get_associations.Rd
permissive
fmadani/gwasrapidd
R
false
true
2,865
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_associations.R \name{get_associations} \alias{get_associations} \title{Get GWAS Catalog associations} \usage{ get_associations( study_id = NULL, association_id = NULL, variant_id = NULL, efo_id = NULL, pubmed_id = NULL, efo_tr...
require(spatialEco) require(sp) require(usedist) require(rgeos) require(raster) require(spatstat) require(igraph) require(sf) require(rgdal) require(gdistance) require(otuSummary) require(gdata) require(maptools) require(tidyverse) require(reshape2) require(data.table) #setwd("E:/LCP sensitivity test/HPC_all_inputs") ...
/Code/HPC_5000econspsyr50Rep4.R
no_license
ZacharyRobbins/TransferHPC
R
false
false
14,796
r
require(spatialEco) require(sp) require(usedist) require(rgeos) require(raster) require(spatstat) require(igraph) require(sf) require(rgdal) require(gdistance) require(otuSummary) require(gdata) require(maptools) require(tidyverse) require(reshape2) require(data.table) #setwd("E:/LCP sensitivity test/HPC_all_inputs") ...
bic.de.to.rnk <- function(dat, statCol, file = NULL){ idCol <- ifelse("GeneSymbol" %in% names(dat), "GeneSymbol", "ID") rnk <- dat %>% select_at(c(idCol, statCol)) %>% filter(complete.cases(.)) %>% group_by_at(idCol) %>% summarize(stat = mean(!!as.name(sta...
/bicrnaseqR/bic_gsea.R
no_license
soccin/BIC-RNAseq
R
false
false
7,073
r
bic.de.to.rnk <- function(dat, statCol, file = NULL){ idCol <- ifelse("GeneSymbol" %in% names(dat), "GeneSymbol", "ID") rnk <- dat %>% select_at(c(idCol, statCol)) %>% filter(complete.cases(.)) %>% group_by_at(idCol) %>% summarize(stat = mean(!!as.name(sta...
#' @title prior.meta #' @param prior.type prior type, default is "custom" #' @return #' @export #' prior.meta <- function(prior.type="custom"){ string2 <- " delta.n[i] ~ dnorm(0, tau.n) delta.u[i] ~ dnorm(0, tau.u) delta.s[i] ~ dnorm(0, tau.s) } # priors alpha.n ~ dnorm(0, 0.16) alpha.a ~ dnorm(0, 0.16...
/R/prior.meta.c.R
no_license
JinchengZ/BayesCACE
R
false
false
802
r
#' @title prior.meta #' @param prior.type prior type, default is "custom" #' @return #' @export #' prior.meta <- function(prior.type="custom"){ string2 <- " delta.n[i] ~ dnorm(0, tau.n) delta.u[i] ~ dnorm(0, tau.u) delta.s[i] ~ dnorm(0, tau.s) } # priors alpha.n ~ dnorm(0, 0.16) alpha.a ~ dnorm(0, 0.16...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modifyProps.r \name{combine.and.reorder} \alias{combine.and.reorder} \title{Combines and reorders (so correct original order) after modifyProps has been called on a logiset. Called in adjust.proportions().} \usage{ combine.and.reorder...
/man/combine.and.reorder.Rd
no_license
kcha193/simarioV2
R
false
true
1,034
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modifyProps.r \name{combine.and.reorder} \alias{combine.and.reorder} \title{Combines and reorders (so correct original order) after modifyProps has been called on a logiset. Called in adjust.proportions().} \usage{ combine.and.reorder...
context("Test output of CPOP model") data(cpop_data_binary, package = 'CPOP') x1 = cpop_data_binary$x1 x2 = cpop_data_binary$x2 set.seed(3) y1 = rexp(nrow(x1), 1) y2 = rexp(nrow(x2), 1) expect_warning({ cpop_model_result = cpop_model(x1 = x1, x2 = x2, y1 = y1, y2 = y2, alpha = 1, s =...
/tests/testthat/test-null-selection.R
no_license
kevinwang09/CPOP
R
false
false
422
r
context("Test output of CPOP model") data(cpop_data_binary, package = 'CPOP') x1 = cpop_data_binary$x1 x2 = cpop_data_binary$x2 set.seed(3) y1 = rexp(nrow(x1), 1) y2 = rexp(nrow(x2), 1) expect_warning({ cpop_model_result = cpop_model(x1 = x1, x2 = x2, y1 = y1, y2 = y2, alpha = 1, s =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rtimes-package.R \docType{package} \name{rtimes-package} \alias{rtimes} \alias{rtimes-package} \title{New York Times APIs client} \description{ Interface to Congress, Campaign Finance, Article Search, and Geographic 'APIs' from the New York T...
/man/rtimes-package.Rd
permissive
tbrambor/rtimes
R
false
true
2,116
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rtimes-package.R \docType{package} \name{rtimes-package} \alias{rtimes} \alias{rtimes-package} \title{New York Times APIs client} \description{ Interface to Congress, Campaign Finance, Article Search, and Geographic 'APIs' from the New York T...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.24869472560528e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 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(5L, 7L))) result <- do.call(CNull:::communities_individual_...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615776715-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
362
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.24869472560528e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 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(5L, 7L))) result <- do.call(CNull:::communities_individual_...
testlist <- list(doy = -Inf, latitude = c(-1.28159577326572e-227, 7.27044868124648e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831645-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
787
r
testlist <- list(doy = -Inf, latitude = c(-1.28159577326572e-227, 7.27044868124648e-308, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-...
library(readr) library(dplyr) system("ln -rs ../Carlin/data/010_raw/* ./data/000_raw/") sra <- read_csv("./data/000_SRA/SraRunTable.txt") exp_table <- read_tsv("./data/000_SRA/Exp_table.txt") sra <- select(sra,Run,Cell_type,Sample=`Sample Name`,LibrarySource,TREATMENT) %>% left_join(exp_table) prefix <- "/home/hum...
/scCarlin/010_run_cellranger.R
no_license
LiuzLab/TraceQC-manuscript
R
false
false
1,382
r
library(readr) library(dplyr) system("ln -rs ../Carlin/data/010_raw/* ./data/000_raw/") sra <- read_csv("./data/000_SRA/SraRunTable.txt") exp_table <- read_tsv("./data/000_SRA/Exp_table.txt") sra <- select(sra,Run,Cell_type,Sample=`Sample Name`,LibrarySource,TREATMENT) %>% left_join(exp_table) prefix <- "/home/hum...
## Cache the Inverse of an invertible Matrix in order to avoid repeated ## computation using a pair of functions ## As a precondition, the matrix should be invertible, else an error is raised ## ## Usage example with an invertible matrix: ## mm = matrix(c(4,3,3,2),2) # create matrix ## mcm <- makeCacheMatrix(mm) # con...
/cachematrix.R
no_license
dendro/ProgrammingAssignment2
R
false
false
1,926
r
## Cache the Inverse of an invertible Matrix in order to avoid repeated ## computation using a pair of functions ## As a precondition, the matrix should be invertible, else an error is raised ## ## Usage example with an invertible matrix: ## mm = matrix(c(4,3,3,2),2) # create matrix ## mcm <- makeCacheMatrix(mm) # con...
GetMissingMeshSize <- function(data=tacsat,latitude.name="SI_LATI") { #Mesh fudge function #Zeros #If a beamer is fishing south of 55 and mesh size is 0 then it gets to be 80mm (sole) data$MESHSIZE[data$MESHSIZE==0 & data$GPY_CODE == "TBB" & data[,latitude.name] <= 55] <-80 # #If a beamer is fishing nort...
/R/GetMissingMeshSize.r
no_license
nielshintzen/visstat-extraction
R
false
false
3,472
r
GetMissingMeshSize <- function(data=tacsat,latitude.name="SI_LATI") { #Mesh fudge function #Zeros #If a beamer is fishing south of 55 and mesh size is 0 then it gets to be 80mm (sole) data$MESHSIZE[data$MESHSIZE==0 & data$GPY_CODE == "TBB" & data[,latitude.name] <= 55] <-80 # #If a beamer is fishing nort...
milton <- function(){ milton_url <- "http://www.restauraciamilton.sk/" download.file(milton_url, destfile = "scrapedpage.html", quiet=TRUE) raw <- read_html("scrapedpage.html") day_diff <- as.numeric(ymd(Sys.Date()) - ymd("2020-02-03")) #thursday # daily_menu_number <- 7848 + day_diff - day_diff %/% 7 # dai...
/Restaurants/milton.R
no_license
dgabris/McNue
R
false
false
982
r
milton <- function(){ milton_url <- "http://www.restauraciamilton.sk/" download.file(milton_url, destfile = "scrapedpage.html", quiet=TRUE) raw <- read_html("scrapedpage.html") day_diff <- as.numeric(ymd(Sys.Date()) - ymd("2020-02-03")) #thursday # daily_menu_number <- 7848 + day_diff - day_diff %/% 7 # dai...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{model_trend_ex} \alias{model_trend_ex} \title{Model output tibble from the \code{\link{model_trend}} function} \format{ A data frame with 12 rows and 9 variables: \describe{ \item{\code{ind_id}}{Indicator IDs.} ...
/man/model_trend_ex.Rd
no_license
saskiaotto/INDperform
R
false
true
1,266
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{model_trend_ex} \alias{model_trend_ex} \title{Model output tibble from the \code{\link{model_trend}} function} \format{ A data frame with 12 rows and 9 variables: \describe{ \item{\code{ind_id}}{Indicator IDs.} ...
context("CFB Game Team Stats") x <- cfb_game_team_stats(year = 2018, week = 9, team = 'Notre Dame') y <- cfb_game_team_stats(2013, week = 1, team = "Florida State") z <- cfb_game_team_stats(2013, week = 3, team = "Florida State", rows_per_team = 2) cols1 <- c("game_id", "school", "conference", "home_away", ...
/tests/testthat/test-cfb_game_team_stats.R
permissive
saiemgilani/cfbscrapR
R
false
false
3,436
r
context("CFB Game Team Stats") x <- cfb_game_team_stats(year = 2018, week = 9, team = 'Notre Dame') y <- cfb_game_team_stats(2013, week = 1, team = "Florida State") z <- cfb_game_team_stats(2013, week = 3, team = "Florida State", rows_per_team = 2) cols1 <- c("game_id", "school", "conference", "home_away", ...
#Clickthru REcodes rm(list=ls()) setwd("/Users/ben/Statistics/CTP II/data/1 original") library(data.table) library(dplyr) train<-fread("train" #,nrows=50 ,header=T , sep="," ,colClasses="character") head(train) i<-runif(nrow(train),1,40) #give myself three 1-mi...
/1 Sample Full Data.R
no_license
biduffey/clickthru
R
false
false
762
r
#Clickthru REcodes rm(list=ls()) setwd("/Users/ben/Statistics/CTP II/data/1 original") library(data.table) library(dplyr) train<-fread("train" #,nrows=50 ,header=T , sep="," ,colClasses="character") head(train) i<-runif(nrow(train),1,40) #give myself three 1-mi...
Rd2Dash = function(rddir, # Path of the folder with .Rd files docSetdir, # Path of the output .docset file DocName = "CustomizeDoc", # Name of the documentation CFBundleName = "CustomizeDoc", # Name of the...
/Rd2Dash.R
no_license
youngtf/Rd2DashDocset
R
false
false
3,797
r
Rd2Dash = function(rddir, # Path of the folder with .Rd files docSetdir, # Path of the output .docset file DocName = "CustomizeDoc", # Name of the documentation CFBundleName = "CustomizeDoc", # Name of the...
#' Top F&O gainers and losers #' #' Top futures and options gainers and losers for the last trading session. #' #' @param clean_names Logical; if \code{TRUE}, makes the column names #' descriptive and uses snake_case. #' #' @examples #' \dontrun{ #' # top gainers #' nse_fo_top_gainers() #' #' # retain original column n...
/R/nse-fo.R
permissive
rsquaredacademy/nse2r
R
false
false
1,595
r
#' Top F&O gainers and losers #' #' Top futures and options gainers and losers for the last trading session. #' #' @param clean_names Logical; if \code{TRUE}, makes the column names #' descriptive and uses snake_case. #' #' @examples #' \dontrun{ #' # top gainers #' nse_fo_top_gainers() #' #' # retain original column n...
## handle arguments args <- commandArgs(trailingOnly=TRUE) if(length(args)!=4){ stop("Please provide 4 arguments: <variants file> <output file prefix> <cohort size> <Poisson expectation cutoff>") } fname <- toString(args[1]) outprefix <- toString(args[2]) cohortsize <- as.numeric(args[3]) case_cutoff <- as.numeric(ar...
/filter_outlier.R
no_license
alexanderhsieh/apply_filters
R
false
false
1,967
r
## handle arguments args <- commandArgs(trailingOnly=TRUE) if(length(args)!=4){ stop("Please provide 4 arguments: <variants file> <output file prefix> <cohort size> <Poisson expectation cutoff>") } fname <- toString(args[1]) outprefix <- toString(args[2]) cohortsize <- as.numeric(args[3]) case_cutoff <- as.numeric(ar...
#' List valid cities #' #' @description Fetch list of cities. #' #' @param state.code Code of country as returned by \code{\link{dictState}}, #' see examples. #' #' @examples #' \dontrun{ #' # authenticate #' orionOAuth(client.id = 0000, #' client.secret = "0x00000000x00x0x000xxx0000x0xx0") #' #' # dic...
/R/dict_city.R
no_license
JohnCoene/oRion
R
false
false
1,229
r
#' List valid cities #' #' @description Fetch list of cities. #' #' @param state.code Code of country as returned by \code{\link{dictState}}, #' see examples. #' #' @examples #' \dontrun{ #' # authenticate #' orionOAuth(client.id = 0000, #' client.secret = "0x00000000x00x0x000xxx0000x0xx0") #' #' # dic...
# Loading Data and applying model data(mtcars) mtcars$am <- factor(mtcars$am) modelFit <- lm(mpg ~ am+cyl+hp+wt, mtcars) test <- mtcars[1,c(2,4,6,9)] # Prediction Function MPGPrediction <- function(id1, id2, id3, id4) { test$am <- id1 test$cyl <- as.numeric(id2) test$hp <- as.numeric(id3) ...
/server.R
no_license
ASK-DataScience/Developing-Data-Products---Course-Project
R
false
false
1,021
r
# Loading Data and applying model data(mtcars) mtcars$am <- factor(mtcars$am) modelFit <- lm(mpg ~ am+cyl+hp+wt, mtcars) test <- mtcars[1,c(2,4,6,9)] # Prediction Function MPGPrediction <- function(id1, id2, id3, id4) { test$am <- id1 test$cyl <- as.numeric(id2) test$hp <- as.numeric(id3) ...
#Resample function to be applied to an input raster object by a factor using a bilinear derivative. #Code Owner: Tim Loftus #Install required libraries for the process: #Begin Modular Resample Function*************************************************************************** #Inpter,uts Would be Input Raster;...
/Resample_Function.R
no_license
Tim-Loftus/UFDB
R
false
false
1,595
r
#Resample function to be applied to an input raster object by a factor using a bilinear derivative. #Code Owner: Tim Loftus #Install required libraries for the process: #Begin Modular Resample Function*************************************************************************** #Inpter,uts Would be Input Raster;...
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
/analysis/test/unknowns_test.R
permissive
ddcv/rappor
R
false
false
4,756
r
# Copyright 2014 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
# server.R install.packages('shiny') library(shiny) # Define server logic required for a plot # Normal Distribution # A Vertical Line # To Report a p-value shinyServer( function(input,output){ output$distPlot <- renderPlot({ # generate rnorm distribution and plot it x <- seq(-10,10,by = 0.01) ...
/server.R
no_license
AizazS/Data_Products
R
false
false
735
r
# server.R install.packages('shiny') library(shiny) # Define server logic required for a plot # Normal Distribution # A Vertical Line # To Report a p-value shinyServer( function(input,output){ output$distPlot <- renderPlot({ # generate rnorm distribution and plot it x <- seq(-10,10,by = 0.01) ...
library(testthat) library(ramlegacy) test_check("ramlegacy", filter = "read|Read")
/tests/testthat-read.R
permissive
kshtzgupta1/ramlegacy
R
false
false
85
r
library(testthat) library(ramlegacy) test_check("ramlegacy", filter = "read|Read")
library(PLMIX) ### Name: d_nascar ### Title: NASCAR Data (partial orderings) ### Aliases: d_nascar ### Keywords: datasets ### ** Examples data(d_nascar) head(d_nascar) # Compute the number of races for each of the 87 drivers table(c(d_nascar[,1:43])) # Identify drivers arrived last (43th position) in all the rac...
/data/genthat_extracted_code/PLMIX/examples/d_nascar.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
637
r
library(PLMIX) ### Name: d_nascar ### Title: NASCAR Data (partial orderings) ### Aliases: d_nascar ### Keywords: datasets ### ** Examples data(d_nascar) head(d_nascar) # Compute the number of races for each of the 87 drivers table(c(d_nascar[,1:43])) # Identify drivers arrived last (43th position) in all the rac...
library(seewave) ### Name: orni ### Title: Song of the cicada Cicada orni ### Aliases: orni ### Keywords: datasets ### ** Examples data(orni) oscillo(orni,f=22050)
/data/genthat_extracted_code/seewave/examples/orni.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
171
r
library(seewave) ### Name: orni ### Title: Song of the cicada Cicada orni ### Aliases: orni ### Keywords: datasets ### ** Examples data(orni) oscillo(orni,f=22050)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/all-generics-CloudProvider.R, % R/method-default.R \name{dockerClusterExists} \alias{dockerClusterExists} \alias{dockerClusterExists,ANY-method} \title{Whether the cluster is running on the cloud?} \usage{ dockerClusterExists(provider, clus...
/man/dockerClusterExists.Rd
no_license
cran/DockerParallel
R
false
true
983
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/all-generics-CloudProvider.R, % R/method-default.R \name{dockerClusterExists} \alias{dockerClusterExists} \alias{dockerClusterExists,ANY-method} \title{Whether the cluster is running on the cloud?} \usage{ dockerClusterExists(provider, clus...
#' Read price, market cap or volume from list of currency data #' #' To get the price, market cap or volume für one specific crypto- #' curreny is easy, however, applying this selection to a list of #' xts-triples is more demanding. #' #' @param data a list of cryptocurrencies #' @param sel data selection. 1 for price,...
/R/get_sel_data_list.R
no_license
philgee1981/btcecho
R
false
false
1,220
r
#' Read price, market cap or volume from list of currency data #' #' To get the price, market cap or volume für one specific crypto- #' curreny is easy, however, applying this selection to a list of #' xts-triples is more demanding. #' #' @param data a list of cryptocurrencies #' @param sel data selection. 1 for price,...
ssq1 = 2.07^2 ssq2 = 2.25^2 n1 = 10 n2 = 6 sampling_distr_var = ssq1 / n1 + ssq2 / n2 sampling_distr_se = sqrt(sampling_distr_var) sampling_distr_se df_satt_numer = sampling_distr_var^2 df_satt_denom = ssq1^2 / (10^2 * 9) + ssq2^2 / (6^2 * 5) df_satt = df_satt_numer / df_satt_denom df_satt qt(.025, df_satt) #critica...
/demos/satterthwaite.R
permissive
kapelner/QC_Math_369_Fall_2020
R
false
false
530
r
ssq1 = 2.07^2 ssq2 = 2.25^2 n1 = 10 n2 = 6 sampling_distr_var = ssq1 / n1 + ssq2 / n2 sampling_distr_se = sqrt(sampling_distr_var) sampling_distr_se df_satt_numer = sampling_distr_var^2 df_satt_denom = ssq1^2 / (10^2 * 9) + ssq2^2 / (6^2 * 5) df_satt = df_satt_numer / df_satt_denom df_satt qt(.025, df_satt) #critica...
#!/hpf/tools/centos6/R/3.1.0/bin/Rscript # Script to evaluate the how each imputation method affects the # performance of the clustering methods on the original data argv <- as.numeric(commandArgs(T)) ###################################################################### # Load libraries library(SNFtool) library(iCl...
/Pipeline_Scripts/06_SVA/evaluate_original_imputation/job.R
no_license
benmbrew/missing_data
R
false
false
11,581
r
#!/hpf/tools/centos6/R/3.1.0/bin/Rscript # Script to evaluate the how each imputation method affects the # performance of the clustering methods on the original data argv <- as.numeric(commandArgs(T)) ###################################################################### # Load libraries library(SNFtool) library(iCl...
#' MultiBUGS output reader #' #' Reads simulations from \pkg{MultiBUGS} into , formats them, monitors #' convergence, performs convergence checks, and computes medians and quantiles #' - intended for internal use. #' #' @param parameters.to.save parameters that should be monitored #' @param n.chains number of Ma...
/R/bugs.sims.R
no_license
MultiBUGS/R2MultiBUGS
R
false
false
7,503
r
#' MultiBUGS output reader #' #' Reads simulations from \pkg{MultiBUGS} into , formats them, monitors #' convergence, performs convergence checks, and computes medians and quantiles #' - intended for internal use. #' #' @param parameters.to.save parameters that should be monitored #' @param n.chains number of Ma...
library(tidyverse) # this includes dplyr for data wranling, ggplot2 for plotting, and tidyr for reshaping data library(shiny) library(plotrix) # for standard error function #library(DT) df<-NA aa<-FALSE current <<-0 #shiny if (interactive()) { ui <- fluidPage(titlePanel("Ben Lab"), sidebarLayout(...
/part1/app.R
no_license
stephlabou/CrokerLabSummer2019
R
false
false
7,340
r
library(tidyverse) # this includes dplyr for data wranling, ggplot2 for plotting, and tidyr for reshaping data library(shiny) library(plotrix) # for standard error function #library(DT) df<-NA aa<-FALSE current <<-0 #shiny if (interactive()) { ui <- fluidPage(titlePanel("Ben Lab"), sidebarLayout(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/winopen.R \name{winopen} \alias{winopen} \title{Function to open a file or directory} \usage{ winopen(x) } \arguments{ \item{x}{A folder or file to be opened.} } \value{ This function is primarily called for the side effect of opening a file ...
/man/winopen.Rd
no_license
ethanplunkett/slasher
R
false
true
921
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/winopen.R \name{winopen} \alias{winopen} \title{Function to open a file or directory} \usage{ winopen(x) } \arguments{ \item{x}{A folder or file to be opened.} } \value{ This function is primarily called for the side effect of opening a file ...
library(data.table) library(utils) # download the file from the World Bank website (zipped) download.file("http://api.worldbank.org/v2/en/indicator/si.pov.dday?downloadformat=csv", "./si.pov.dday.csv.zip") # unzip only the file containing the actual survey data... unzip("./si.pov.dday.csv.zip", c("si.pov.dday_Indica...
/projects/xmas13/xmas13.R
no_license
giacecco/the-gift-of-data
R
false
false
1,568
r
library(data.table) library(utils) # download the file from the World Bank website (zipped) download.file("http://api.worldbank.org/v2/en/indicator/si.pov.dday?downloadformat=csv", "./si.pov.dday.csv.zip") # unzip only the file containing the actual survey data... unzip("./si.pov.dday.csv.zip", c("si.pov.dday_Indica...
library(permutations) library(rgl) # 各多面体の各面の置換 # エッジIDの値を1:78にするためにlapply(...,"+",...)を使っている # 加える値は、p2,p3,,,に対して、s2,s3,... s2 <- 12 s3 <- 12 + 18 s4 <- 12 + 2 * 18 s5 <- 12 + 3 * 18 s6 <- 2 * 12 + 3 * 18 p1.face <- cycle(list(list(c(1,2,3),c(4,5,6),c(7,8,9),c(10,11,12)))) p5.face <- cycle(list(lapply(l...
/R/FivePolyhedra.R
no_license
ryamada22/atom
R
false
false
6,658
r
library(permutations) library(rgl) # 各多面体の各面の置換 # エッジIDの値を1:78にするためにlapply(...,"+",...)を使っている # 加える値は、p2,p3,,,に対して、s2,s3,... s2 <- 12 s3 <- 12 + 18 s4 <- 12 + 2 * 18 s5 <- 12 + 3 * 18 s6 <- 2 * 12 + 3 * 18 p1.face <- cycle(list(list(c(1,2,3),c(4,5,6),c(7,8,9),c(10,11,12)))) p5.face <- cycle(list(lapply(l...
#Plot sine Model #Load Data args<-commandArgs(TRUE) dataset <- read.csv(args[1]) filename = gsub(".csv", "", args[1]) xmean <- rowMeans(cbind(dataset$LAT0,dataset$LAT1 ,dataset$LAT2 ,dataset$LAT3 ,dataset$LAT4,dataset$LAT5,dataset$LAT6,dataset$LAT7,dataset$LAT8,dataset$LAT9)) reportName <- paste(filename,"_better_lat_...
/analysis/report/ExecutionLatencyDataBetter.R
permissive
streamreasoning/heaven
R
false
false
1,725
r
#Plot sine Model #Load Data args<-commandArgs(TRUE) dataset <- read.csv(args[1]) filename = gsub(".csv", "", args[1]) xmean <- rowMeans(cbind(dataset$LAT0,dataset$LAT1 ,dataset$LAT2 ,dataset$LAT3 ,dataset$LAT4,dataset$LAT5,dataset$LAT6,dataset$LAT7,dataset$LAT8,dataset$LAT9)) reportName <- paste(filename,"_better_lat_...
library(lubridate) library(dplyr) dvec <- c(paste0("03-", sprintf("%02i", 1:31), "-2020"), paste0("04-", sprintf("%02i", 1:10), "-2020")) daily_reports <- lapply(dvec, function(x) { covid19clark::get_jhu_daily(download_date = x, write = FALSE) }) daily_reports_all <- do.call(rbind, daily_reports) %>% arra...
/data-raw/jhu_corona_virus_daily_initial.R
no_license
agroimpacts/covid19clark
R
false
false
2,354
r
library(lubridate) library(dplyr) dvec <- c(paste0("03-", sprintf("%02i", 1:31), "-2020"), paste0("04-", sprintf("%02i", 1:10), "-2020")) daily_reports <- lapply(dvec, function(x) { covid19clark::get_jhu_daily(download_date = x, write = FALSE) }) daily_reports_all <- do.call(rbind, daily_reports) %>% arra...
R2predi <- function(mod){ a <- anova(mod) ssq <- a$`Sum Sq` sst <- sum(ssq) hii <- lm.influence(mod)$hat ei <- residuals(mod) PRESS <- sum((ei/(1-hii))^2) predi <- 1-(PRESS/sst) return(predi) }
/Regresi-n/Funcion R2predi.R
no_license
rgarciarui/Regresi-n
R
false
false
220
r
R2predi <- function(mod){ a <- anova(mod) ssq <- a$`Sum Sq` sst <- sum(ssq) hii <- lm.influence(mod)$hat ei <- residuals(mod) PRESS <- sum((ei/(1-hii))^2) predi <- 1-(PRESS/sst) return(predi) }
library(testthat) library(flipStandardCharts) test_check("flipStandardCharts")
/tests/testthat.R
no_license
Displayr/flipStandardCharts
R
false
false
80
r
library(testthat) library(flipStandardCharts) test_check("flipStandardCharts")
run_analysis <- function(){ #import all tables x_test<-read.table("./UCI HAR Dataset/test/X_test.txt") x_train<-read.table("./UCI HAR Dataset/train/x_train.txt") y_test<-read.table("./UCI HAR Dataset/test/y_test.txt") y_train<-read.table("./UCI HAR Dataset/train/y_train.txt") subject_...
/run_analysis.R
no_license
jstrauss88/GettingAndCleaningData_Project
R
false
false
2,049
r
run_analysis <- function(){ #import all tables x_test<-read.table("./UCI HAR Dataset/test/X_test.txt") x_train<-read.table("./UCI HAR Dataset/train/x_train.txt") y_test<-read.table("./UCI HAR Dataset/test/y_test.txt") y_train<-read.table("./UCI HAR Dataset/train/y_train.txt") subject_...
\name{tp} \alias{tp} \title{Two-Part Generalized Linear Models} \description{ Produces a two-part model (sometimes refered to as a "Hurdle Model"). The function is built just like regular \code{glm()} but needs additional specification of what link function to use for the binary part and the family and link to use for ...
/man/tp.Rd
no_license
TysonStanley/AMEs
R
false
false
2,610
rd
\name{tp} \alias{tp} \title{Two-Part Generalized Linear Models} \description{ Produces a two-part model (sometimes refered to as a "Hurdle Model"). The function is built just like regular \code{glm()} but needs additional specification of what link function to use for the binary part and the family and link to use for ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/individual.R \name{write_individual} \alias{write_individual} \title{Save individual response data} \usage{ write_individual(data_full_w, params) } \arguments{ \item{data_full_w}{data frame of response values} \item{params}{a named list cont...
/surveys/delphiSurveys/man/write_individual.Rd
no_license
vidyakalai/delphi-covidcast-hackathon-2020
R
false
true
590
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/individual.R \name{write_individual} \alias{write_individual} \title{Save individual response data} \usage{ write_individual(data_full_w, params) } \arguments{ \item{data_full_w}{data frame of response values} \item{params}{a named list cont...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kuenm_projchanges.R \name{kuenm_projchanges} \alias{kuenm_projchanges} \title{Detection of changes in models projected in time} \usage{ kuenm_projchanges(occ, fmod.stats, threshold = 5, current, time.periods, emi.scenarios, clim.models, ext...
/man/kuenm_projchanges.Rd
no_license
helixcn/kuenm
R
false
true
3,948
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kuenm_projchanges.R \name{kuenm_projchanges} \alias{kuenm_projchanges} \title{Detection of changes in models projected in time} \usage{ kuenm_projchanges(occ, fmod.stats, threshold = 5, current, time.periods, emi.scenarios, clim.models, ext...
#!/bin/R args = commandArgs(trailingOnly = T) if(length(args)!=3){ stop('Not enough args supplied: tissue, sex, nCores') } TISSUE = gsub('_',' ',args[1]) # e.g. 'gastrocnemius', 'white adipose' SEX = args[2] # one of {'male', 'female', 'all'} numCores = as.numeric(args[3]) library(data.table) library(edgeR) l...
/scripts/20200723_impluse_NicoleGay.R
no_license
steepale/20200309_rna-seq_steep
R
false
false
2,533
r
#!/bin/R args = commandArgs(trailingOnly = T) if(length(args)!=3){ stop('Not enough args supplied: tissue, sex, nCores') } TISSUE = gsub('_',' ',args[1]) # e.g. 'gastrocnemius', 'white adipose' SEX = args[2] # one of {'male', 'female', 'all'} numCores = as.numeric(args[3]) library(data.table) library(edgeR) l...
############################################################################### # # This script takes and transforms the data # provided at https://data.world/makeovermonday/2019w28 # to make a plot that shows the number of applications # of assylum in Spain and acceptance/denegation # from 2009 to 2018. # Contains da...
/R/2019_W28.R
no_license
pabrodez/MakeoverMonday
R
false
false
5,242
r
############################################################################### # # This script takes and transforms the data # provided at https://data.world/makeovermonday/2019w28 # to make a plot that shows the number of applications # of assylum in Spain and acceptance/denegation # from 2009 to 2018. # Contains da...
.checkGzip <- function(path, gzipped){ if (gzipped == "auto") { ext <- tools::file_ext(path) if (ext == "gz") { path <- gzfile(path) } } else if (isTRUE(gzipped)) { path <- gzfile(path) } return(path) } #' Create a SingleCellExperiment object from files #' #' @d...
/R/importFromFiles.R
permissive
compbiomed/singleCellTK
R
false
false
6,468
r
.checkGzip <- function(path, gzipped){ if (gzipped == "auto") { ext <- tools::file_ext(path) if (ext == "gz") { path <- gzfile(path) } } else if (isTRUE(gzipped)) { path <- gzfile(path) } return(path) } #' Create a SingleCellExperiment object from files #' #' @d...
# Logistic growth model function LogisticGrowth <- function(r, K, g, init){ n <- rep(NA, g) # pre allocated vector for abundance of pop n[1] = init # abundance of population at time 1 K <- 10000 # carrying cap r <- 0.8 # growth rate time <- 1:g #relevant time frame for (i in 2:g){ n[i] <- n[i-1] + (...
/Labs/Lab8/McSpadden_Lab8.R
no_license
chmc3850/CompBioLabsAndHomework
R
false
false
896
r
# Logistic growth model function LogisticGrowth <- function(r, K, g, init){ n <- rep(NA, g) # pre allocated vector for abundance of pop n[1] = init # abundance of population at time 1 K <- 10000 # carrying cap r <- 0.8 # growth rate time <- 1:g #relevant time frame for (i in 2:g){ n[i] <- n[i-1] + (...
#' Plot importance measures #' #' This functions plots selected measures of importance for variables and interactions. #' It is possible to visualise importance table in two ways: radar plot with six measures #' and scatter plot with two choosen measures. #' #' Available measures: #'\itemize{ #'\item "sumGain" ...
/R/plot_importance.R
no_license
cran/EIX
R
false
false
6,174
r
#' Plot importance measures #' #' This functions plots selected measures of importance for variables and interactions. #' It is possible to visualise importance table in two ways: radar plot with six measures #' and scatter plot with two choosen measures. #' #' Available measures: #'\itemize{ #'\item "sumGain" ...
library(ggtern) ### Name: breaks_tern ### Title: Generate Axis Breaks ### Aliases: breaks_tern getBreaks ### ** Examples breaks_tern() breaks_tern(limits = c(0,.5),FALSE,10)
/data/genthat_extracted_code/ggtern/examples/breaks_tern.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
183
r
library(ggtern) ### Name: breaks_tern ### Title: Generate Axis Breaks ### Aliases: breaks_tern getBreaks ### ** Examples breaks_tern() breaks_tern(limits = c(0,.5),FALSE,10)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.iotanalytics_operations.R \name{list_datastores} \alias{list_datastores} \title{Retrieves a list of data stores} \usage{ list_datastores(nextToken = NULL, maxResults = NULL) } \arguments{ \item{nextToken}{The token for the next set of re...
/service/paws.iotanalytics/man/list_datastores.Rd
permissive
CR-Mercado/paws
R
false
true
595
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.iotanalytics_operations.R \name{list_datastores} \alias{list_datastores} \title{Retrieves a list of data stores} \usage{ list_datastores(nextToken = NULL, maxResults = NULL) } \arguments{ \item{nextToken}{The token for the next set of re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cn_assess.R \name{cn_classAssess} \alias{cn_classAssess} \title{Assess classifiers based on validation data} \usage{ cn_classAssess(ct_scores, stVal, classLevels = "description2", dLevelSID = "sample_id", resolution = 0.005) } \arguments{ \...
/man/cn_classAssess.Rd
permissive
edroaldo/CellNet
R
false
true
783
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cn_assess.R \name{cn_classAssess} \alias{cn_classAssess} \title{Assess classifiers based on validation data} \usage{ cn_classAssess(ct_scores, stVal, classLevels = "description2", dLevelSID = "sample_id", resolution = 0.005) } \arguments{ \...
######################################################################################################### # Name : ROC Curve Analysis ggplot # Date : 09-12-2015 # Author : Christopher M # Dept : BEI # Purpose : For Fun # Called by : Not in production #######...
/R/6_Modeling/Model_Evaluation/Classification/ROC_ggplot.r
no_license
moone009/AnalyticsProcess
R
false
false
3,583
r
######################################################################################################### # Name : ROC Curve Analysis ggplot # Date : 09-12-2015 # Author : Christopher M # Dept : BEI # Purpose : For Fun # Called by : Not in production #######...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fabregCI.R \name{umauregCI} \alias{umauregCI} \title{UMAU regression coefficient intervals} \usage{ umauregCI(y, X, alpha = 0.05) } \arguments{ \item{y}{a numeric vector of data} \item{X}{a design matrix} \item{alpha}{the type I error rate,...
/man/umauregCI.Rd
no_license
pdhoff/fabCI
R
false
true
720
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fabregCI.R \name{umauregCI} \alias{umauregCI} \title{UMAU regression coefficient intervals} \usage{ umauregCI(y, X, alpha = 0.05) } \arguments{ \item{y}{a numeric vector of data} \item{X}{a design matrix} \item{alpha}{the type I error rate,...
#-----------------------------------------------------------------------------# # # # Interlaboratory Study Program ILS IN R # # ...
/R/lab.qcs.R
no_license
cran/ILS
R
false
false
23,359
r
#-----------------------------------------------------------------------------# # # # Interlaboratory Study Program ILS IN R # # ...
testlist <- list(A = structure(c(1.01542590382108e-315, 3.79243099143341e+146, 7.94398982089754e-316, 2.67106091528682e-41, 1.63766713338342e+213, 1.47784524510741e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613104115-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
489
r
testlist <- list(A = structure(c(1.01542590382108e-315, 3.79243099143341e+146, 7.94398982089754e-316, 2.67106091528682e-41, 1.63766713338342e+213, 1.47784524510741e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crm2vgm.R \name{crm2vgm} \alias{crm2vgm} \title{Converting a spatial correlogram model to a variogram model} \usage{ crm2vgm(crm, ...) } \arguments{ \item{crm}{Spatial correlogram model, output of makecrm(). Hellow} \item{...}{Parameters tha...
/man/crm2vgm.Rd
no_license
fisw10/spup
R
false
true
697
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/crm2vgm.R \name{crm2vgm} \alias{crm2vgm} \title{Converting a spatial correlogram model to a variogram model} \usage{ crm2vgm(crm, ...) } \arguments{ \item{crm}{Spatial correlogram model, output of makecrm(). Hellow} \item{...}{Parameters tha...
## Caching the Inverse of a Matrix ## Matrix inversion is usually a costly computation and there may be some ## benefit to caching the inverse of a matrix rather than compute it repeatedly ## The function makeCacheMatrix creates a special "matrix" object which can return its inverse. makeCacheMatrix <- function(x = m...
/cachematrix.R
no_license
josowl/ProgrammingAssignment2
R
false
false
1,116
r
## Caching the Inverse of a Matrix ## Matrix inversion is usually a costly computation and there may be some ## benefit to caching the inverse of a matrix rather than compute it repeatedly ## The function makeCacheMatrix creates a special "matrix" object which can return its inverse. makeCacheMatrix <- function(x = m...
\name{hvRcheck} \alias{hvRCheck} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Ensures that the installed version of the hvR package is recent enough } \description{ Checks whether the installed version of the hvR package is either equal to or more recent than the version number provided. If no...
/man/hvRcheck.Rd
no_license
hedderik/hvR
R
false
false
1,109
rd
\name{hvRcheck} \alias{hvRCheck} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Ensures that the installed version of the hvR package is recent enough } \description{ Checks whether the installed version of the hvR package is either equal to or more recent than the version number provided. If no...
library(XML) library(RCurl) library(httr) #library(R.utils) setwd("/Users/gsg/R Projects/domeny") f = "domeny.csv" #link do pliku ver <- "2.2" allLinks <- "" links2match <- c(".pl",".eu",".net",".biz",".com") parsePhoneFraza <- function(text){ fraza <- "" if(length(grep(pa...
/domeny_dane_kontaktowe_2.2.R
no_license
gsg80/domeny
R
false
false
29,651
r
library(XML) library(RCurl) library(httr) #library(R.utils) setwd("/Users/gsg/R Projects/domeny") f = "domeny.csv" #link do pliku ver <- "2.2" allLinks <- "" links2match <- c(".pl",".eu",".net",".biz",".com") parsePhoneFraza <- function(text){ fraza <- "" if(length(grep(pa...
#' Gapminder Data #' #' The famous \code{\link[gapminder]{gapminder}} dataset taken from the #' \code{gapminder} to perform tutorials of the package. #' #' @format a data frame with 1704 rows and 6 variables. #' \describe{ #' \item{country}{factor with 142 levels} #' \item{continent}{factor with 5 levels} #' \item{year...
/R/my_gapminder.R
no_license
yinuotxie/package302
R
false
false
665
r
#' Gapminder Data #' #' The famous \code{\link[gapminder]{gapminder}} dataset taken from the #' \code{gapminder} to perform tutorials of the package. #' #' @format a data frame with 1704 rows and 6 variables. #' \describe{ #' \item{country}{factor with 142 levels} #' \item{continent}{factor with 5 levels} #' \item{year...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_map_state} \alias{fars_map_state} \title{Plot state accidents} \usage{ fars_map_state(state.num, year) } \arguments{ \item{state.num}{A vector indicating the number of the states to plot.} \item{year}{A vector ind...
/man/fars_map_state.Rd
no_license
marioles/courserafars
R
false
true
740
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fars_functions.R \name{fars_map_state} \alias{fars_map_state} \title{Plot state accidents} \usage{ fars_map_state(state.num, year) } \arguments{ \item{state.num}{A vector indicating the number of the states to plot.} \item{year}{A vector ind...
localization <- function(chr,gstart,gend,png) { #This function creates an image with the localization of the retrotransposon in the chromosome were it's located. library(crop) #The crop library allows to crop the final image. library(karyoploteR) #Karyoploter generates the localization plot. chrs <- to...
/cariofunctions.R
no_license
eagomezc/Farfalloni
R
false
false
2,041
r
localization <- function(chr,gstart,gend,png) { #This function creates an image with the localization of the retrotransposon in the chromosome were it's located. library(crop) #The crop library allows to crop the final image. library(karyoploteR) #Karyoploter generates the localization plot. chrs <- to...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-org.R \name{sf_convert_lead} \alias{sf_convert_lead} \title{Convert Leads} \usage{ sf_convert_lead( input_data, api_type = c("SOAP"), control = list(...), ..., verbose = FALSE ) } \arguments{ \item{input_data}{\code{named vect...
/man/sf_convert_lead.Rd
permissive
mjvtnm/salesforcer
R
false
true
5,226
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils-org.R \name{sf_convert_lead} \alias{sf_convert_lead} \title{Convert Leads} \usage{ sf_convert_lead( input_data, api_type = c("SOAP"), control = list(...), ..., verbose = FALSE ) } \arguments{ \item{input_data}{\code{named vect...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uniqueFilter.R \name{uniqueFilter} \alias{uniqueFilter} \title{Filter out group checklists.} \usage{ uniqueFilter(dat, group.id, sub.id) } \arguments{ \item{dat}{The original eBird data.frame to filter.} \item{group.id}{The name of the group...
/man/uniqueFilter.Rd
no_license
eliotmiller/ebirdr
R
false
true
1,200
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uniqueFilter.R \name{uniqueFilter} \alias{uniqueFilter} \title{Filter out group checklists.} \usage{ uniqueFilter(dat, group.id, sub.id) } \arguments{ \item{dat}{The original eBird data.frame to filter.} \item{group.id}{The name of the group...
#' Filter gbFeatures from a FeatureTable #' #' @param x A gbFeatureTable #' @param ... key=value pairs interpreted as filters #' @param .cols gbFeature annotations returned as a data.frame #' @rdname dot-filter #' @keywords internal .filter <- function(x, ..., .cols = NULL) { keys <- parse_keys(...) if (is.null(key...
/R/filter.R
no_license
kablag/biofiles
R
false
false
3,483
r
#' Filter gbFeatures from a FeatureTable #' #' @param x A gbFeatureTable #' @param ... key=value pairs interpreted as filters #' @param .cols gbFeature annotations returned as a data.frame #' @rdname dot-filter #' @keywords internal .filter <- function(x, ..., .cols = NULL) { keys <- parse_keys(...) if (is.null(key...
#' Optimizer: Common Subexpression Elimination. #' #' Performs one common subexpression elimination pass. #' Carefully examine the results after running this function! #' #' @param texts A list of character vectors with the code to optimize. #' @param n_values A numeric indicating the minimum number of values to consid...
/R/opt-common-subexpr.R
no_license
Azamlynny/rco
R
false
false
16,613
r
#' Optimizer: Common Subexpression Elimination. #' #' Performs one common subexpression elimination pass. #' Carefully examine the results after running this function! #' #' @param texts A list of character vectors with the code to optimize. #' @param n_values A numeric indicating the minimum number of values to consid...
#' \code{market.basket.analysis} package #' #' Google spreadsheets R API #' #' #' @docType package #' @name market.basket.analysis #' @import knitr NULL ## quiets concerns of R CMD check re: the .'s that appear in pipelines if (getRversion() >= "2.15.1") utils::globalVariables(c("."))
/R/mba.R
no_license
nguyenngocbinh/MBA
R
false
false
287
r
#' \code{market.basket.analysis} package #' #' Google spreadsheets R API #' #' #' @docType package #' @name market.basket.analysis #' @import knitr NULL ## quiets concerns of R CMD check re: the .'s that appear in pipelines if (getRversion() >= "2.15.1") utils::globalVariables(c("."))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions_tracks.R \name{track_rna} \alias{track_rna} \title{track_rna} \usage{ track_rna( bams, qgr, fetch_fun = ssvRecipes::myFetchStrandedBam, flip_x = FALSE, flip_strand = FALSE, max_dupes = Inf, win_size = 100, strand_ups...
/man/track_rna.Rd
no_license
jrboyd/ssvRecipes
R
false
true
424
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions_tracks.R \name{track_rna} \alias{track_rna} \title{track_rna} \usage{ track_rna( bams, qgr, fetch_fun = ssvRecipes::myFetchStrandedBam, flip_x = FALSE, flip_strand = FALSE, max_dupes = Inf, win_size = 100, strand_ups...
\name{BY} \alias{BY} \title{Analysis BY variable} \description{ GLM, REG, aov1 etc. functions can be run by levels of a variable. } \usage{ BY(FUN, Formula, Data, By, ...) } \arguments{ \item{FUN}{Function name to be called such as GLM, REG} \item{Formula}{a conventional formula for a linear model.} ...
/man/BY.Rd
no_license
asancpt/sasLM
R
false
false
775
rd
\name{BY} \alias{BY} \title{Analysis BY variable} \description{ GLM, REG, aov1 etc. functions can be run by levels of a variable. } \usage{ BY(FUN, Formula, Data, By, ...) } \arguments{ \item{FUN}{Function name to be called such as GLM, REG} \item{Formula}{a conventional formula for a linear model.} ...
################################################################################################ # Prepared for the textbook: # Data Analysis for Business, Economics, and Policy # by Gabor BEKES and Gabor KEZDI # Cambridge University Press 2021 # # License: Free to share, modify and use for educational purposes. Not...
/ch03-football-home-advantage/ch03-football-home-advantage-describe.R
no_license
AbdulrasheedIsah/da_case_studies
R
false
false
3,643
r
################################################################################################ # Prepared for the textbook: # Data Analysis for Business, Economics, and Policy # by Gabor BEKES and Gabor KEZDI # Cambridge University Press 2021 # # License: Free to share, modify and use for educational purposes. Not...
#!/usr/bin/env Rscript library(ggplot2) library(reshape2) args = commandArgs(trailingOnly=TRUE) nrsets = as.numeric(args[1]) has_fractions = args[2] == TRUE oldmzmlfn = args[3] oldmzmldef = ifelse(oldmzmlfn == 'nofile', FALSE, TRUE) plateids = args[4:length(args)] # Fraction needs to be a factor and not numeric, since...
/bin/qc_psms.R
permissive
lehtiolab/ddamsproteomics
R
false
false
7,041
r
#!/usr/bin/env Rscript library(ggplot2) library(reshape2) args = commandArgs(trailingOnly=TRUE) nrsets = as.numeric(args[1]) has_fractions = args[2] == TRUE oldmzmlfn = args[3] oldmzmldef = ifelse(oldmzmlfn == 'nofile', FALSE, TRUE) plateids = args[4:length(args)] # Fraction needs to be a factor and not numeric, since...
################################################## # # Plotting Probability Distributions and # Calculating Probabilities # # Student name(s): # ################################################## # # Directions: (1) read through and run the code to # understand what it does. # (2) Do the exercises, copying code and c...
/ISLR Chapter 01/ISLR Chapter 1 ProbabilityDistributionLab.R
no_license
murphywaggoner/Math-308-Adv-Data-Modeling
R
false
false
6,449
r
################################################## # # Plotting Probability Distributions and # Calculating Probabilities # # Student name(s): # ################################################## # # Directions: (1) read through and run the code to # understand what it does. # (2) Do the exercises, copying code and c...
# Coursera Exploratory Data Analysis # Course Project 1 - Plot 2 # Uwe Kristmann # 10.05.2014 Sys.setlocale(category="LC_TIME",locale="C") household_power_consumption <- read.table("./household_power_consumption.txt", sep=";", quote="\"") twodays<-household_power_consumption[household_power_consumption$V1=="1/2/2007" ...
/plot2.R
no_license
uwebrasil/ExData_Plotting1
R
false
false
660
r
# Coursera Exploratory Data Analysis # Course Project 1 - Plot 2 # Uwe Kristmann # 10.05.2014 Sys.setlocale(category="LC_TIME",locale="C") household_power_consumption <- read.table("./household_power_consumption.txt", sep=";", quote="\"") twodays<-household_power_consumption[household_power_consumption$V1=="1/2/2007" ...