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
#exit immediately if today´s data has already been scraped if (!file.exists(paste0("data/data_timeseries_", Sys.Date(), ".RData"))) { packages_needed <- c("rvest", "dplyr", "tidyr", "htmltab") for (i in packages_needed) { # require returns TRUE invisibly if it was able to load pa...
/scrape_data_batch.R
no_license
RomanBi/Comunio_stats
R
false
false
2,265
r
#exit immediately if today´s data has already been scraped if (!file.exists(paste0("data/data_timeseries_", Sys.Date(), ".RData"))) { packages_needed <- c("rvest", "dplyr", "tidyr", "htmltab") for (i in packages_needed) { # require returns TRUE invisibly if it was able to load pa...
install.packages("twitteR") ??twitteR library(twitteR) setup_twitter_oauth('3OFet2Lrb7SM3P5xRIS4mYcYT', 'lUY751Alq4eneCod71LwCG3L4PT4L20PMET8sGqKgovrZOfbdg', access_token='981969608277135360-7w95AsxJKN6gbCBogRcLiawZ2znXoIs', access_secret='JEmeS2Gs2TavP5DEwwJgJWGH0ryzjHZBpGqpZG6jk9ZIK') updateStatus('Hey @reinhurdler...
/other/tweeting.R
no_license
ajreinhard/SWAER
R
false
false
415
r
install.packages("twitteR") ??twitteR library(twitteR) setup_twitter_oauth('3OFet2Lrb7SM3P5xRIS4mYcYT', 'lUY751Alq4eneCod71LwCG3L4PT4L20PMET8sGqKgovrZOfbdg', access_token='981969608277135360-7w95AsxJKN6gbCBogRcLiawZ2znXoIs', access_secret='JEmeS2Gs2TavP5DEwwJgJWGH0ryzjHZBpGqpZG6jk9ZIK') updateStatus('Hey @reinhurdler...
library(shiny) library(shinydashboard) library(wordcloud) library(RColorBrewer) library(tidyverse) library(DT) # ----- ZONA GENERAL ----- # ----- Archivos de la Zona General ---- # Abrir el csv desde Files y dar a save with encoding -> UTF-8 para que los acentos no produzcan caracteres extraños. l...
/ShinyGutenberg/GutenbergAppDefinitiva.R
no_license
Angnar1997/ShinyPath
R
false
false
33,869
r
library(shiny) library(shinydashboard) library(wordcloud) library(RColorBrewer) library(tidyverse) library(DT) # ----- ZONA GENERAL ----- # ----- Archivos de la Zona General ---- # Abrir el csv desde Files y dar a save with encoding -> UTF-8 para que los acentos no produzcan caracteres extraños. l...
/MLib/addOns/MM_StartUp.r
no_license
markusMiksa/ETFportfolio
R
false
false
1,850
r
library(shiny) require("googleVis") ####use sql here to import the date. DF <- read.csv("tweetscores.csv", colClasses = "character") DF<-DF[DF$X!="",] DF$date<-as.Date(DF$date, "%m/%d/%Y %H:%M") DF$count<-as.double(DF$count) DF$scores<-as.double(DF$scores) DF$sd<-as.double(DF$sd) dates<-unique(as.character(DF$date)) u...
/MoodMap/app.R
no_license
ehullander/TwitterMoodMap
R
false
false
2,954
r
library(shiny) require("googleVis") ####use sql here to import the date. DF <- read.csv("tweetscores.csv", colClasses = "character") DF<-DF[DF$X!="",] DF$date<-as.Date(DF$date, "%m/%d/%Y %H:%M") DF$count<-as.double(DF$count) DF$scores<-as.double(DF$scores) DF$sd<-as.double(DF$sd) dates<-unique(as.character(DF$date)) u...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615834423-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,046
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
# co-relation 분석을 위함 ezLev=function(x,new_order){ for(i in rev(new_order)){ x=relevel(x,ref=i) } return(x) } ggcorplot = function(data,var_text_size,cor_text_limits,smooth_method='lm'){ # normalize data for(i in 1:length(data)){ data[,i]=(data[,i]-mean(data[,i]))/sd(data[,i]) } # obtain new data...
/rstat/global.R
no_license
starwinds/rscript
R
false
false
3,869
r
# co-relation 분석을 위함 ezLev=function(x,new_order){ for(i in rev(new_order)){ x=relevel(x,ref=i) } return(x) } ggcorplot = function(data,var_text_size,cor_text_limits,smooth_method='lm'){ # normalize data for(i in 1:length(data)){ data[,i]=(data[,i]-mean(data[,i]))/sd(data[,i]) } # obtain new data...
# PCA in FactoMineR and factorextra # November 27 2018 # JSC library(FactoMineR) library(factoextra) # PCA #summarizes infor in multivaraite data sets in PCs # rank PCs in order of variance they explain # reduces dimensionality of data sets, loses least amount of info possible # PCA data("iris") head(iris) iris2 <-...
/multi_variant_data.R
no_license
jscole12/Bio381
R
false
false
1,575
r
# PCA in FactoMineR and factorextra # November 27 2018 # JSC library(FactoMineR) library(factoextra) # PCA #summarizes infor in multivaraite data sets in PCs # rank PCs in order of variance they explain # reduces dimensionality of data sets, loses least amount of info possible # PCA data("iris") head(iris) iris2 <-...
library(landscapemetrics) ### Name: lsm_l_ent ### Title: ENT (landscape level) ### Aliases: lsm_l_ent lsm_l_ent.RasterLayer lsm_l_ent.RasterStack ### lsm_l_ent.RasterBrick lsm_l_ent.stars lsm_l_ent.list ### ** Examples lsm_l_ent(landscape)
/data/genthat_extracted_code/landscapemetrics/examples/lsm_l_ent.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
250
r
library(landscapemetrics) ### Name: lsm_l_ent ### Title: ENT (landscape level) ### Aliases: lsm_l_ent lsm_l_ent.RasterLayer lsm_l_ent.RasterStack ### lsm_l_ent.RasterBrick lsm_l_ent.stars lsm_l_ent.list ### ** Examples lsm_l_ent(landscape)
make_call <- function(...) { as.call(list(...)) } vlapply <- function(X, FUN, ..., FUN.VALUE = logical(1)) { vapply(X, FUN, ..., FUN.VALUE = FUN.VALUE) } names2 <- function(x) { nms <- names(x) if (is.null(nms)) { rep("", length(x)) } else { nms[is.na(nms)] <- "" nms } } #' Shim for tools::ma...
/R/utils.R
no_license
cran/withr
R
false
false
1,675
r
make_call <- function(...) { as.call(list(...)) } vlapply <- function(X, FUN, ..., FUN.VALUE = logical(1)) { vapply(X, FUN, ..., FUN.VALUE = FUN.VALUE) } names2 <- function(x) { nms <- names(x) if (is.null(nms)) { rep("", length(x)) } else { nms[is.na(nms)] <- "" nms } } #' Shim for tools::ma...
# Thompson Sampling # Importing the dataset dataset = read.csv('Ads_CTR_Optimisation.csv') # Implementing Thompson Sampling N = 10000 d = 10 ads_selected = integer(0) numbers_of_rewards_1 = integer(d) numbers_of_rewards_0 = integer(d) total_reward = 0 for (n in 1:N){ max_random = 0 ad = 0 for (...
/thompson_sampling.R
no_license
duytantran/ads-ctr-optimisation
R
false
false
1,051
r
# Thompson Sampling # Importing the dataset dataset = read.csv('Ads_CTR_Optimisation.csv') # Implementing Thompson Sampling N = 10000 d = 10 ads_selected = integer(0) numbers_of_rewards_1 = integer(d) numbers_of_rewards_0 = integer(d) total_reward = 0 for (n in 1:N){ max_random = 0 ad = 0 for (...
rankhospital <- function(state, outcome, num = "best") { ## Read outcome data setting "Not Available" to NA data <- read.csv("outcome-of-care-measures.csv" , na.strings="Not Available" , stringsAsFactors=FALSE ) ##Assign new co...
/rankhospital.R
no_license
JMNetherland/ProgrammingAssignment3
R
false
false
2,043
r
rankhospital <- function(state, outcome, num = "best") { ## Read outcome data setting "Not Available" to NA data <- read.csv("outcome-of-care-measures.csv" , na.strings="Not Available" , stringsAsFactors=FALSE ) ##Assign new co...
library(capitalR) ### Name: fv ### Title: Future Value ### Aliases: fv ### ** Examples fv(5000, 0.08/12, 5*12)
/data/genthat_extracted_code/capitalR/examples/fv.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
118
r
library(capitalR) ### Name: fv ### Title: Future Value ### Aliases: fv ### ** Examples fv(5000, 0.08/12, 5*12)
library(RCurl) library(biomaRt) getArgs <- function() { myargs.list <- strsplit(grep("=",gsub("--","",commandArgs()),value=TRUE),"=") myargs <- lapply(myargs.list,function(x) x[2] ) names(myargs) <- lapply(myargs.list,function(x) x[1]) return (myargs) } ##iFolder <- "/SAN/biomed/biomed14/vyp-scratch/Zanda_Uve...
/pathwayGO_pipeline.R
no_license
pontikos/RNASeq_pipeline
R
false
false
6,936
r
library(RCurl) library(biomaRt) getArgs <- function() { myargs.list <- strsplit(grep("=",gsub("--","",commandArgs()),value=TRUE),"=") myargs <- lapply(myargs.list,function(x) x[2] ) names(myargs) <- lapply(myargs.list,function(x) x[1]) return (myargs) } ##iFolder <- "/SAN/biomed/biomed14/vyp-scratch/Zanda_Uve...
library(PerformanceAnalytics) ### Name: CalmarRatio ### Title: calculate a Calmar or Sterling reward/risk ratio Calmar and ### Sterling Ratios are yet another method of creating a risk-adjusted ### measure for ranking investments similar to the 'SharpeRatio'. ### Aliases: CalmarRatio SterlingRatio SterlingRatio ...
/data/genthat_extracted_code/PerformanceAnalytics/examples/CalmarRatio.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
512
r
library(PerformanceAnalytics) ### Name: CalmarRatio ### Title: calculate a Calmar or Sterling reward/risk ratio Calmar and ### Sterling Ratios are yet another method of creating a risk-adjusted ### measure for ranking investments similar to the 'SharpeRatio'. ### Aliases: CalmarRatio SterlingRatio SterlingRatio ...
# remotes::install_github("jhelvy/xaringanBuilder") library(purrr) # dir("slides", pattern = "00.*html$") %>% # setdiff(c("01-R-Fundamentals.html", "04-rmd-intro.html")) %>% dir("slides", pattern = "0[7].*html$") %>% # Render html files from .Rmd # walk(~ paste0("slides/", xfun::sans_ext(.x), ".rmd"), "xa...
/slides/convert-html-to-pdf.R
no_license
Sidra12/datascir21
R
false
false
849
r
# remotes::install_github("jhelvy/xaringanBuilder") library(purrr) # dir("slides", pattern = "00.*html$") %>% # setdiff(c("01-R-Fundamentals.html", "04-rmd-intro.html")) %>% dir("slides", pattern = "0[7].*html$") %>% # Render html files from .Rmd # walk(~ paste0("slides/", xfun::sans_ext(.x), ".rmd"), "xa...
## The methods in this script are meant to: ## Create the inverse of a matrix and cache it into a special matrix object: makeCacheMatrix ## Caculate or cache the inverse of the matrix ## ## Example of use would be: ## y<-makeCacheMatrix(x) ## xInv<-cacheSolve(y) ## ## Restriction: ## the argument of the function must ...
/cachematrix.R
no_license
StefanTroost/ProgrammingAssignment2
R
false
false
1,344
r
## The methods in this script are meant to: ## Create the inverse of a matrix and cache it into a special matrix object: makeCacheMatrix ## Caculate or cache the inverse of the matrix ## ## Example of use would be: ## y<-makeCacheMatrix(x) ## xInv<-cacheSolve(y) ## ## Restriction: ## the argument of the function must ...
#' @title Signature Version 2 #' @description Generates AWS Signature Version 2 #' @param datetime A character string containing a date in the form of \dQuote{YYYY-MM-DDTH:M:S}. If missing, it is generated automatically using \code{\link[base]{Sys.time}}. #' @param verb A character string specify an HTTP verb/method (e...
/R/v2.R
no_license
shapenaji/aws.signature
R
false
false
5,269
r
#' @title Signature Version 2 #' @description Generates AWS Signature Version 2 #' @param datetime A character string containing a date in the form of \dQuote{YYYY-MM-DDTH:M:S}. If missing, it is generated automatically using \code{\link[base]{Sys.time}}. #' @param verb A character string specify an HTTP verb/method (e...
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/1609857187-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...
##-----------------------------Hierarchical Clustering-------------------------- ## cluster is closer then other part set.seed(1234) par(mar = c(0, 0, 0, 0)) x <- rnorm(12, mean = rep(1:3, each = 4), sd = 0.2) y <- rnorm(12, mean = rep(c(1, 2, 1), each = 4), sd = 0.2) plot(x, y, col = "blue", pch = 19, cex = 2) text(x...
/04-ExploratoryDataAnalysis/hierarchical_clustering.R
no_license
MoonJeounghoon/Data-Science-Specialization
R
false
false
983
r
##-----------------------------Hierarchical Clustering-------------------------- ## cluster is closer then other part set.seed(1234) par(mar = c(0, 0, 0, 0)) x <- rnorm(12, mean = rep(1:3, each = 4), sd = 0.2) y <- rnorm(12, mean = rep(c(1, 2, 1), each = 4), sd = 0.2) plot(x, y, col = "blue", pch = 19, cex = 2) text(x...
## sample from GEM process rGEM <- function(k = 500, alpha = 0.5, plot = FALSE) { n <- k-1 beta_raw <- rbeta(n, 1, alpha) beta_prod <- beta_raw[-1] * cumprod(1 - beta_raw)[-n] beta_out <- c(beta_raw[1], beta_prod) beta_out <- c(beta_out, 1-sum(beta_out)) ...
/jere/func/util/distribution/rGEM.R
no_license
willtownes/mit6882
R
false
false
464
r
## sample from GEM process rGEM <- function(k = 500, alpha = 0.5, plot = FALSE) { n <- k-1 beta_raw <- rbeta(n, 1, alpha) beta_prod <- beta_raw[-1] * cumprod(1 - beta_raw)[-n] beta_out <- c(beta_raw[1], beta_prod) beta_out <- c(beta_out, 1-sum(beta_out)) ...
#' \itemize{\item <%=depth2.name%> depth of the haul}
/man-roxygen/depth2.R
no_license
rBatt/trawlData
R
false
false
54
r
#' \itemize{\item <%=depth2.name%> depth of the haul}
library(pedometrics) ### Name: adjR2 ### Title: Adjusted coefficient of determination ### Aliases: adjR2 ### Keywords: misc ### ** Examples adjR2(r2 = 0.95, n = 100, p = 80)
/data/genthat_extracted_code/pedometrics/examples/adjR2.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
181
r
library(pedometrics) ### Name: adjR2 ### Title: Adjusted coefficient of determination ### Aliases: adjR2 ### Keywords: misc ### ** Examples adjR2(r2 = 0.95, n = 100, p = 80)
#' Attach locus coordinates to edges #' #' Add x and y corrdinates to each locus of each edge in an edge-wise #' dataset. #' #' @param data A locus-wise data frame. It needs at least a column "locus", and columns named after arguments `x` and `y`. #' @param edges An edge-wise data frame, with at least a column "from"an...
/egssimtools/R/give_edges_coordinates.R
no_license
rscherrer/ExplicitGenomeSpeciation
R
false
false
831
r
#' Attach locus coordinates to edges #' #' Add x and y corrdinates to each locus of each edge in an edge-wise #' dataset. #' #' @param data A locus-wise data frame. It needs at least a column "locus", and columns named after arguments `x` and `y`. #' @param edges An edge-wise data frame, with at least a column "from"an...
corr <- function(directory, threshold = 0, x = "sulfate", y = "nitrate") { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variabl...
/Assignment-1/corr.R
permissive
italou/r-programming-2014
R
false
false
1,223
r
corr <- function(directory, threshold = 0, x = "sulfate", y = "nitrate") { ## 'directory' is a character vector of length 1 indicating ## the location of the CSV files ## 'threshold' is a numeric vector of length 1 indicating the ## number of completely observed observations (on all ## variabl...
## functions to compute the inverse of matrix and return it from cache ##---------MAKE-CACHE-MATRIX--------#### ## this function returns a list of functions to set and get the values of matrix and its Inverse ## function set -> if input of makecahematrix is changed it assigns new value to the old variable which th...
/cachematrix.R
no_license
Gauravvyas14/ProgrammingAssignment2
R
false
false
2,696
r
## functions to compute the inverse of matrix and return it from cache ##---------MAKE-CACHE-MATRIX--------#### ## this function returns a list of functions to set and get the values of matrix and its Inverse ## function set -> if input of makecahematrix is changed it assigns new value to the old variable which th...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/autonomic_ganglia.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.4,family="gaussian",standardize=TRUE) sink('./autonomic_ganglia_...
/Model/EN/Correlation/autonomic_ganglia/autonomic_ganglia_049.R
no_license
esbgkannan/QSMART
R
false
false
371
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/autonomic_ganglia.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.4,family="gaussian",standardize=TRUE) sink('./autonomic_ganglia_...
# 6.2절 exam: mpg 데이터를 이용해 분석 문제를 해결해 보세요. library(dplyr) library(ggplot2) mpg <- as.data.frame(ggplot2::mpg) #• Q1. 자동차 배기량에 따라 고속도로 연비가 다른지 알아보려고 합니다. # displ(배기량)이 4 이하인 자동차와 5 이상인 자동차 중 # 어떤 자동차의 hwy(고속도로 연비)가 평균적으로 더 높은지 알아보세요. dim(mpg) mpg$cdispl <- ifelse(mpg$displ <= 4, "low", ifelse(mp...
/R/Doit_R-master/Script/chap6.exam.R
no_license
dico1631/TIL
R
false
false
9,127
r
# 6.2절 exam: mpg 데이터를 이용해 분석 문제를 해결해 보세요. library(dplyr) library(ggplot2) mpg <- as.data.frame(ggplot2::mpg) #• Q1. 자동차 배기량에 따라 고속도로 연비가 다른지 알아보려고 합니다. # displ(배기량)이 4 이하인 자동차와 5 이상인 자동차 중 # 어떤 자동차의 hwy(고속도로 연비)가 평균적으로 더 높은지 알아보세요. dim(mpg) mpg$cdispl <- ifelse(mpg$displ <= 4, "low", ifelse(mp...
testlist <- list(data = structure(c(3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88), .Dim = c(1L, 7L)), q = 3.64469672236317e+88) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
/biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610554616-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
312
r
testlist <- list(data = structure(c(3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88, 3.64469672236317e+88), .Dim = c(1L, 7L)), q = 3.64469672236317e+88) result <- do.call(biwavelet:::rcpp_row_quantile,testlist) str(result)
\name{viscosity} \alias{viscosity} \docType{data} \title{ Viscosity of resin over time} \description{ In an experimental setting the viscosity of resin was measured over time to asses the curing process depending on 5 binary factors (low-high). } \usage{data("viscosity")} \format{ A data list with 64 observatio...
/man/viscosity.Rd
no_license
cran/FDboost
R
false
false
2,390
rd
\name{viscosity} \alias{viscosity} \docType{data} \title{ Viscosity of resin over time} \description{ In an experimental setting the viscosity of resin was measured over time to asses the curing process depending on 5 binary factors (low-high). } \usage{data("viscosity")} \format{ A data list with 64 observatio...
#' Runs a comparison of any two years in the record. #' #' \code{runPairs} provides comparisons of results, in terms of #' flow-normalized concentration and flow-normalized flux for any pair #' of years in the water quality record. Comparison could involve the #' use of the "wall" and/or use of "generalized flow n...
/R/runPairs.R
permissive
ldecicco-USGS/EGRET
R
false
false
26,619
r
#' Runs a comparison of any two years in the record. #' #' \code{runPairs} provides comparisons of results, in terms of #' flow-normalized concentration and flow-normalized flux for any pair #' of years in the water quality record. Comparison could involve the #' use of the "wall" and/or use of "generalized flow n...
###################################### # Code for PLSC 503 Day Four # (Spring 2020) # # File created 2/5/2019 # # File last modified 1/22/2020 ###################################### # setwd() first: # # setwd("~/PLSC 503/Notes") # or whatever... library(RCurl) options(scipen = 6) # bias against scientific notation op...
/Code/PLSC503-2020-DayFour.R
no_license
karthy257/PLSC503-2020-git
R
false
false
5,703
r
###################################### # Code for PLSC 503 Day Four # (Spring 2020) # # File created 2/5/2019 # # File last modified 1/22/2020 ###################################### # setwd() first: # # setwd("~/PLSC 503/Notes") # or whatever... library(RCurl) options(scipen = 6) # bias against scientific notation op...
#' Extract soil data from gssurgo #' #' @param outdir Output directory for writing down the netcdf file #' @param lat Latitude #' @param lon Longitude #' @param size Ensemble size #' @param radius radius in meters is used to take soil type samples around the site #' @param depths Standard set of soil depths in m to c...
/modules/data.land/R/extract_soil_nc.R
permissive
ashiklom/pecan
R
false
false
15,411
r
#' Extract soil data from gssurgo #' #' @param outdir Output directory for writing down the netcdf file #' @param lat Latitude #' @param lon Longitude #' @param size Ensemble size #' @param radius radius in meters is used to take soil type samples around the site #' @param depths Standard set of soil depths in m to c...
#' An S3 class representing metadata about a package. #' #' @param name character. The name of the package. It #' must be installed in the user's currently active #' library. #' @param check_installed logical. Check whether the #' package is installed or not, by default \code{TRUE}. #' @return An S3 \code{package...
/R/package.R
no_license
robertzk/module
R
false
false
557
r
#' An S3 class representing metadata about a package. #' #' @param name character. The name of the package. It #' must be installed in the user's currently active #' library. #' @param check_installed logical. Check whether the #' package is installed or not, by default \code{TRUE}. #' @return An S3 \code{package...
# Packages in R ---------------------------------------------------------------- # Install the package named "dplyr" install.packages("dplyr") # Install the packages named "haven" and "readr" install.packages(c("haven", "readr")) # Loading packages library(dplyr) library(haven) library(readr) # Package management wit...
/section/Section01/section01.R
no_license
anayahall/are212
R
false
false
5,278
r
# Packages in R ---------------------------------------------------------------- # Install the package named "dplyr" install.packages("dplyr") # Install the packages named "haven" and "readr" install.packages(c("haven", "readr")) # Loading packages library(dplyr) library(haven) library(readr) # Package management wit...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circular.plot.r \name{circ.chromo.plot} \alias{circ.chromo.plot} \title{Circos plot combining segmentation and SV calls} \usage{ circ.chromo.plot( chromo.regs.obj, sample.id, genome.v = "hg19", lrr.pct = 0.2, lrr.max = 4, chrlist ...
/man/circ.chromo.plot.Rd
no_license
gonzolgarcia/svpluscnv
R
false
true
1,441
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circular.plot.r \name{circ.chromo.plot} \alias{circ.chromo.plot} \title{Circos plot combining segmentation and SV calls} \usage{ circ.chromo.plot( chromo.regs.obj, sample.id, genome.v = "hg19", lrr.pct = 0.2, lrr.max = 4, chrlist ...
<<<<<<< HEAD library(tidyverse) library(lubridate) # reading in files cases = read.csv(".\\intermediate_data\\jhu_cases_01.26.2021.csv", check.names = FALSE) deaths = read.csv(".\\intermediate_data\\jhu_deaths_01.26.2021.csv", check.names = FALSE) population = read.csv(".\\intermediate_data\\world_bank_population....
/First case.R
no_license
kathrynline/data_557
R
false
false
9,090
r
<<<<<<< HEAD library(tidyverse) library(lubridate) # reading in files cases = read.csv(".\\intermediate_data\\jhu_cases_01.26.2021.csv", check.names = FALSE) deaths = read.csv(".\\intermediate_data\\jhu_deaths_01.26.2021.csv", check.names = FALSE) population = read.csv(".\\intermediate_data\\world_bank_population....
# Generating train and test set library("caret") data("heights") y <- heights$height set.seed(2) test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE) train_set <- heights %>% slice(-test_index) test_set <- heights %>% slice(test_index) # Estimating averages and standard deviations params <- train_set...
/section 4/naive bayes.R
no_license
p-fannon/edx-machine-learning
R
false
false
680
r
# Generating train and test set library("caret") data("heights") y <- heights$height set.seed(2) test_index <- createDataPartition(y, times = 1, p = 0.5, list = FALSE) train_set <- heights %>% slice(-test_index) test_set <- heights %>% slice(test_index) # Estimating averages and standard deviations params <- train_set...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vis.R \name{vis} \alias{vis} \title{Model stability and variable inclusion plots} \usage{ vis( mf, nvmax, B = 100, lambda.max, nbest = "all", use.glmulti = FALSE, cores, force.in = NULL, screen = FALSE, redundant = TRUE, ...
/man/vis.Rd
no_license
garthtarr/mplot
R
false
true
2,976
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vis.R \name{vis} \alias{vis} \title{Model stability and variable inclusion plots} \usage{ vis( mf, nvmax, B = 100, lambda.max, nbest = "all", use.glmulti = FALSE, cores, force.in = NULL, screen = FALSE, redundant = TRUE, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findPackageEnv.R \name{findPackageEnv} \alias{findPackageEnv} \title{fun_name} \usage{ findPackageEnv(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona }
/man/findPackageEnv.Rd
no_license
granatb/RapeR
R
false
true
271
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findPackageEnv.R \name{findPackageEnv} \alias{findPackageEnv} \title{fun_name} \usage{ findPackageEnv(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_lcm.R \name{fit_lcm} \alias{fit_lcm} \title{Fit data to latent cause model} \usage{ fit_lcm(data, model, opts, parameter_range, estimation_method) } \arguments{ \item{data}{long format data containing the following variables (Order and na...
/man/fit_lcm.Rd
permissive
ykunisato/lcmr
R
false
true
2,738
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fit_lcm.R \name{fit_lcm} \alias{fit_lcm} \title{Fit data to latent cause model} \usage{ fit_lcm(data, model, opts, parameter_range, estimation_method) } \arguments{ \item{data}{long format data containing the following variables (Order and na...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oncoprint.R \name{oncoprint} \alias{oncoprint} \title{function to create an oncoprint plot} \usage{ oncoprint(A, keys = list(somatic = "MUT", germline = "GERMLINE", amp = "AMP", del = "HOMDEL", upreg = "UP", downreg = "DOWN", splicing = "SP...
/man/oncoprint.Rd
permissive
qindan2008/find.me
R
false
true
643
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/oncoprint.R \name{oncoprint} \alias{oncoprint} \title{function to create an oncoprint plot} \usage{ oncoprint(A, keys = list(somatic = "MUT", germline = "GERMLINE", amp = "AMP", del = "HOMDEL", upreg = "UP", downreg = "DOWN", splicing = "SP...
#' Print Typical Regression Fit Plots #' #' @description #' Plots QQ plot of residuals, histogram of residuals, #' residuals vs predicted values, and studentized #' residuals vs predicted values. Depends on tidyverse #' and gridExtra packages being loaded. #' #' @param data The true values corresponding to the input....
/analysis/helper/visual.R
permissive
RobinsonCW/RegressionHousingPrices
R
false
false
2,037
r
#' Print Typical Regression Fit Plots #' #' @description #' Plots QQ plot of residuals, histogram of residuals, #' residuals vs predicted values, and studentized #' residuals vs predicted values. Depends on tidyverse #' and gridExtra packages being loaded. #' #' @param data The true values corresponding to the input....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/system_check.R \name{system_check} \alias{system_check} \title{Checks which required and optional packages are available} \usage{ system_check() } \value{ System information and required functionalities for the QC algorithm are checked and re...
/man/system_check.Rd
no_license
cran/GWASinspector
R
false
true
612
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/system_check.R \name{system_check} \alias{system_check} \title{Checks which required and optional packages are available} \usage{ system_check() } \value{ System information and required functionalities for the QC algorithm are checked and re...
WEBSITE_URL <- "https://genius.com/" PORT <- 4445L
/R/constants.R
permissive
metalyrics/rgenius
R
false
false
51
r
WEBSITE_URL <- "https://genius.com/" PORT <- 4445L
rm(list=ls(all = TRUE)) gc(reset=TRUE) library("GenomicRanges") library("Biostrings") library("rtracklayer") library(BSgenome.Drerio.UCSC.danRer7) danRer7 <- BSgenome.Drerio.UCSC.danRer7 randACTG <- function(width) { ins <- sample(c("A","C","T","G"), width, replace = TRUE) paste0(ins, collapse = "") } deleteNuc...
/analysis/hdr/simulate_mutations.R
no_license
HealthVivo/amplican_manuscript
R
false
false
8,577
r
rm(list=ls(all = TRUE)) gc(reset=TRUE) library("GenomicRanges") library("Biostrings") library("rtracklayer") library(BSgenome.Drerio.UCSC.danRer7) danRer7 <- BSgenome.Drerio.UCSC.danRer7 randACTG <- function(width) { ins <- sample(c("A","C","T","G"), width, replace = TRUE) paste0(ins, collapse = "") } deleteNuc...
library(shiny) library("shinythemes") # Define UI for miles per gallon application ### STUDENTS shinyUI( fillPage( theme=shinytheme("lumen"), title="Tag Analisys", plotOutput("plot", height = "75%", ho...
/shiny_students/ui.R
no_license
GiveMeMoreData/Stack_analysis
R
false
false
1,450
r
library(shiny) library("shinythemes") # Define UI for miles per gallon application ### STUDENTS shinyUI( fillPage( theme=shinytheme("lumen"), title="Tag Analisys", plotOutput("plot", height = "75%", ho...
library(XLConnect) library(tidyverse) library(data.table) library(rpivotTable) library(lubridate) library(readxl) # replace file name with name of appropriate source file # df <- readWorksheetFromFile("results-GAData.xlsx", sheet = 1) df <- read_excel("results-GAData.xlsx") df_bigquery <- as_tibble(df) df_bigquery1 ...
/GA_bigquery.R
no_license
santiagovama/R
R
false
false
901
r
library(XLConnect) library(tidyverse) library(data.table) library(rpivotTable) library(lubridate) library(readxl) # replace file name with name of appropriate source file # df <- readWorksheetFromFile("results-GAData.xlsx", sheet = 1) df <- read_excel("results-GAData.xlsx") df_bigquery <- as_tibble(df) df_bigquery1 ...
sms_raw<-read.csv("data/sms_spam_ansi.txt",stringsAsFactors = FALSE) str(sms_raw) sms_raw$type<-factor(sms_raw$type) str(sms_raw) table(sms_raw$type) ############### 우도표 # tm패키지 → 코퍼스(corpus) 구축 # corpus? 특정 도메인에서 통용되는 단어 집합 # ex) 법령코퍼스 # install.packages('tm') # 텍스트 마이닝 툴 library(tm) stopwords('en') # 불용어어 removeW...
/DeepLearning_class/20.10.14(R, Corpus)/20.10.14.R
no_license
WonwooJo/TIL
R
false
false
5,878
r
sms_raw<-read.csv("data/sms_spam_ansi.txt",stringsAsFactors = FALSE) str(sms_raw) sms_raw$type<-factor(sms_raw$type) str(sms_raw) table(sms_raw$type) ############### 우도표 # tm패키지 → 코퍼스(corpus) 구축 # corpus? 특정 도메인에서 통용되는 단어 집합 # ex) 법령코퍼스 # install.packages('tm') # 텍스트 마이닝 툴 library(tm) stopwords('en') # 불용어어 removeW...
### Read partial .txt file into R. The file includes data from the dates 2007-02-01 and 2007-02-02. data <- "household_power_consumption.txt" fi <- file(data) ### Create a file connection. library(sqldf) ### Load sqldf package. mydata <- sqldf("select * from fi where Date = '1/2/2007' or Date ='2/2/2007'", file.fo...
/plot2.R
no_license
youyouworld010/ExData_Plotting1
R
false
false
1,150
r
### Read partial .txt file into R. The file includes data from the dates 2007-02-01 and 2007-02-02. data <- "household_power_consumption.txt" fi <- file(data) ### Create a file connection. library(sqldf) ### Load sqldf package. mydata <- sqldf("select * from fi where Date = '1/2/2007' or Date ='2/2/2007'", file.fo...
install.packages("devtools") library(devtools) devtools::install_github("nstrayer/datadrivencv") library(datadrivencv) datadrivencv::use_datadriven_cv( full_name = "劉厚伯", data_location = "https://docs.google.com/spreadsheets/d/1JwXZgr2Q5vaAitcSln8iE85U6vHtvV-p1Hluoibx62Y/edit?usp=sharing", pdf_location = "...
/CV.R
no_license
gtgrthrst/gtgrthrst.github.io
R
false
false
449
r
install.packages("devtools") library(devtools) devtools::install_github("nstrayer/datadrivencv") library(datadrivencv) datadrivencv::use_datadriven_cv( full_name = "劉厚伯", data_location = "https://docs.google.com/spreadsheets/d/1JwXZgr2Q5vaAitcSln8iE85U6vHtvV-p1Hluoibx62Y/edit?usp=sharing", pdf_location = "...
library(shiny) options(shiny.trace = FALSE) ui <- fluidPage( titlePanel("select arrhythmic flies"), fluidRow( column(width = 8, class = "well", column(width = 4, selectInput("genotype", label = "choose genotype", choices = c(unique(metadata[, genoty...
/inst/shinyautoPlottR/app.R
no_license
jaspwn/circatools
R
false
false
3,321
r
library(shiny) options(shiny.trace = FALSE) ui <- fluidPage( titlePanel("select arrhythmic flies"), fluidRow( column(width = 8, class = "well", column(width = 4, selectInput("genotype", label = "choose genotype", choices = c(unique(metadata[, genoty...
#' Count particles in zip codes #' #' \code{plot_hyspdisp} takes as input particle-zip code links plots on a map. #' #' @param hyspdisp_out data table of Zip codes and particle numbers: #' \enumerate{ #' \item ZIP (zip code numbers) #' \item N (number of particles) #' } #' @param zc zip code shapefile location #' ...
/R/plot_hyspdisp.R
no_license
lhenneman/hyspdisp
R
false
false
3,299
r
#' Count particles in zip codes #' #' \code{plot_hyspdisp} takes as input particle-zip code links plots on a map. #' #' @param hyspdisp_out data table of Zip codes and particle numbers: #' \enumerate{ #' \item ZIP (zip code numbers) #' \item N (number of particles) #' } #' @param zc zip code shapefile location #' ...
library(phonTools) ### Name: p73 ### Title: Pols et al. (1973) Dutch Vowel Data ### Aliases: p73 ### ** Examples data(p73) vowelplot (p73$f1, p73$f2, p73$vowel, logaxes = 'xy', ellipses = TRUE, xsampa = TRUE)
/data/genthat_extracted_code/phonTools/examples/p73.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
217
r
library(phonTools) ### Name: p73 ### Title: Pols et al. (1973) Dutch Vowel Data ### Aliases: p73 ### ** Examples data(p73) vowelplot (p73$f1, p73$f2, p73$vowel, logaxes = 'xy', ellipses = TRUE, xsampa = TRUE)
### Lasso regression model for the sberbank housing kaggle competition ### Read in proper data set, read in specific columns to draw from data set, ### slice data frame by those columns, scale data, do cross-validation, retrieve model, ### predict pricing data library(caret) library(glmnet) # Handle date columns, c...
/Project3-MachineLearning/aull_dobbins_ganemccalla_schott/schott/models/elasticnet/lasso.R
no_license
xiyuansun/bootcamp009_project
R
false
false
5,283
r
### Lasso regression model for the sberbank housing kaggle competition ### Read in proper data set, read in specific columns to draw from data set, ### slice data frame by those columns, scale data, do cross-validation, retrieve model, ### predict pricing data library(caret) library(glmnet) # Handle date columns, c...
#' Transforms a frequency interaction sociomatrix (valued data) into a dichotomized 1/0 matrix #' #' @param m A matrix with individuals ordered identically in rows and columns. #' @param type Determines the type of dichotomized matrix to be returned. #' \strong{\code{type}="wl"} is the default which returns a win-loss...
/check.R
no_license
zihenghuang/compete
R
false
false
19,101
r
#' Transforms a frequency interaction sociomatrix (valued data) into a dichotomized 1/0 matrix #' #' @param m A matrix with individuals ordered identically in rows and columns. #' @param type Determines the type of dichotomized matrix to be returned. #' \strong{\code{type}="wl"} is the default which returns a win-loss...
5126e4f31c06325e2c48b3564a75eaec arbiter-05-comp-error01-qbf-hardness-depth-13.qdimacs 1701 5590
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Miller-Scholl-Becker/QBF-Hardness/arbiter-05-comp-error01-qbf-hardness-depth-13/arbiter-05-comp-error01-qbf-hardness-depth-13.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
96
r
5126e4f31c06325e2c48b3564a75eaec arbiter-05-comp-error01-qbf-hardness-depth-13.qdimacs 1701 5590
library(data.table) library(Rcmdr) library(GOplot) gse54129_ranked_genes <- read.csv("~/Documents/GitHub/cxxc5_rotation_project/Screen/gse54129_ranked_genes.txt", sep="") gse54129_degs <- subset(gse54129_ranked_genes, subset=adj.P.Val < 0.05 & + abs(logFC) > 1.0) g...
/Screen/Screening.R
no_license
ryan96db/cxxc5_rotation_project
R
false
false
3,569
r
library(data.table) library(Rcmdr) library(GOplot) gse54129_ranked_genes <- read.csv("~/Documents/GitHub/cxxc5_rotation_project/Screen/gse54129_ranked_genes.txt", sep="") gse54129_degs <- subset(gse54129_ranked_genes, subset=adj.P.Val < 0.05 & + abs(logFC) > 1.0) g...
library(drake) library(dplyr) library(ggplot2) library(randomcoloR) # Functies read_raw_parking_data <- function(file){ readRDS(file) } clean_parking_data <- function(data){ arrange(data, updated) %>% filter(!label %in% c("P+R","P4") ) %>% mutate(label = as.factor(label), updated = as.POSIXct...
/drake/drake_example.R
no_license
RemkoDuursma/cjibexample
R
false
false
1,043
r
library(drake) library(dplyr) library(ggplot2) library(randomcoloR) # Functies read_raw_parking_data <- function(file){ readRDS(file) } clean_parking_data <- function(data){ arrange(data, updated) %>% filter(!label %in% c("P+R","P4") ) %>% mutate(label = as.factor(label), updated = as.POSIXct...
library(httr) library(rvest) library(car) library(stringr) library(readr) library(magrittr) library(dplyr) gen_otp_url = 'http://marketdata.krx.co.kr/contents/COM/GenerateOTP.jspx' gen_otp_data = list( name = 'fileDown', filetype = 'csv', url = 'MKD/03/0303/03030103/mkd03030103', tp_cd = ...
/5_1_2 개별종목 지표 크롤링.r
no_license
lemoncake1123/Crawling-stock-data
R
false
false
829
r
library(httr) library(rvest) library(car) library(stringr) library(readr) library(magrittr) library(dplyr) gen_otp_url = 'http://marketdata.krx.co.kr/contents/COM/GenerateOTP.jspx' gen_otp_data = list( name = 'fileDown', filetype = 'csv', url = 'MKD/03/0303/03030103/mkd03030103', tp_cd = ...
#!/share/apps/R-3.2.2_gcc/bin/Rscript #library(chron) library(data.table) library(ggplot2) #data_dir = getwd() data_dir = "/data/hydro/users/giridhar/giridhar/codmoth_pop/" version = 'rcp45' compute_cumdd <- function(input_dir = data_dir, file_name="combined_CMPOP_", version) # #saveRDS(data, "cumdd_data.rds") #file...
/codling_moth/code/for_investigation/cumdd_.R
permissive
HNoorazar/Ag
R
false
false
7,694
r
#!/share/apps/R-3.2.2_gcc/bin/Rscript #library(chron) library(data.table) library(ggplot2) #data_dir = getwd() data_dir = "/data/hydro/users/giridhar/giridhar/codmoth_pop/" version = 'rcp45' compute_cumdd <- function(input_dir = data_dir, file_name="combined_CMPOP_", version) # #saveRDS(data, "cumdd_data.rds") #file...
#' Search valid GNIS_NAME. #' #' @param pattern A character string containing a regular expression (or character string for fixed = TRUE) to be matched. #' @param layer A valid layer from fwa_lookup_layer. #' @param ignore_case A flag of whether to ignore case when matching regular expression. #' @param ... Arguments p...
/R/search.R
permissive
poissonconsulting/fwabc
R
false
false
1,308
r
#' Search valid GNIS_NAME. #' #' @param pattern A character string containing a regular expression (or character string for fixed = TRUE) to be matched. #' @param layer A valid layer from fwa_lookup_layer. #' @param ignore_case A flag of whether to ignore case when matching regular expression. #' @param ... Arguments p...
library(dplyr) ################################################################################# TRAIN DATA trainSubjects <- read.table("subject_train.txt") head(trainSubjects) trainSubjects <- rename(trainSubjects, subjectId = V1) head(trainSubjects) ##################################################...
/run_analysis.R
no_license
Andauquer/datascience-specialization-c3
R
false
false
8,959
r
library(dplyr) ################################################################################# TRAIN DATA trainSubjects <- read.table("subject_train.txt") head(trainSubjects) trainSubjects <- rename(trainSubjects, subjectId = V1) head(trainSubjects) ##################################################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shiny.R \name{r2deck-shiny} \alias{r2deck-shiny} \alias{r2deck_output} \alias{render_r2deck} \title{Shiny bindings} \usage{ r2deck_output(output_id, width = "100\%", height = "400px") render_r2deck(expr, env = parent.frame(), quoted = FALSE)...
/man/r2deck-shiny.Rd
permissive
crazycapivara/r2deck
R
false
true
847
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shiny.R \name{r2deck-shiny} \alias{r2deck-shiny} \alias{r2deck_output} \alias{render_r2deck} \title{Shiny bindings} \usage{ r2deck_output(output_id, width = "100\%", height = "400px") render_r2deck(expr, env = parent.frame(), quoted = FALSE)...
#!/usr/bin/env Rscript library(ggplot2) library(RSvgDevice) source("scripts/theme_custom.R") alpha = c(0.7, 0.8, 1.2) catalog_size = c(10000) for (a in alpha) { for (k in catalog_size) { fn <- paste("data/r0.5-K", k, "-C10-s100-a", a, "-d100000/1/popularity-c1", sep="") temp_dfm <- read.table(fn...
/simulations/scripts/plot-hitrate10.R
no_license
Renato2012/mapme-tnsm17
R
false
false
998
r
#!/usr/bin/env Rscript library(ggplot2) library(RSvgDevice) source("scripts/theme_custom.R") alpha = c(0.7, 0.8, 1.2) catalog_size = c(10000) for (a in alpha) { for (k in catalog_size) { fn <- paste("data/r0.5-K", k, "-C10-s100-a", a, "-d100000/1/popularity-c1", sep="") temp_dfm <- read.table(fn...
surveys<-read.csv("data/portal_data_joined.csv") install.packages("tidyverse") library(tidyverse) select(surveys, plot_id,species_id,weight) ##select rows filter(surveys,year==1995) #PIPES!!! ## This is a pipe %>% survey_sml<-surveys %>% filter(year==1995) %>% select(year,plot_id,species_id,weight) surveys %...
/2017-18-08_script2.R
no_license
ktalit/datacarpentry-tutorial1
R
false
false
1,866
r
surveys<-read.csv("data/portal_data_joined.csv") install.packages("tidyverse") library(tidyverse) select(surveys, plot_id,species_id,weight) ##select rows filter(surveys,year==1995) #PIPES!!! ## This is a pipe %>% survey_sml<-surveys %>% filter(year==1995) %>% select(year,plot_id,species_id,weight) surveys %...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Phyloinfer.R \name{updateFmat_Markov_FREE} \alias{updateFmat_Markov_FREE} \title{HMC for times} \usage{ updateFmat_Markov_FREE( currentval, F_list, probs_list, const = 1, nsites = nsites, oldsuff, n ) } \arguments{ \item{F_list}...
/man/updateFmat_Markov_FREE.Rd
no_license
JuliaPalacios/phylodyn
R
false
true
654
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Phyloinfer.R \name{updateFmat_Markov_FREE} \alias{updateFmat_Markov_FREE} \title{HMC for times} \usage{ updateFmat_Markov_FREE( currentval, F_list, probs_list, const = 1, nsites = nsites, oldsuff, n ) } \arguments{ \item{F_list}...
a<- 3+5 b <- 6*3 a*b
/test001.R
no_license
SalvatorePirri/Salvo_repository
R
false
false
25
r
a<- 3+5 b <- 6*3 a*b
#' @title Import coverage data from .bam file #' #' @description Uses RSamtools to import coverage data from .bam file and #' format it appropriately for plotting with gmoviz. #' #' @param bam_file Location of the bam file from which to read coverage data. #' @param regions_of_interest either a \linkS4class{GRanges} of...
/R/gmoviz.R
no_license
malhamdoosh/gmoviz
R
false
false
113,888
r
#' @title Import coverage data from .bam file #' #' @description Uses RSamtools to import coverage data from .bam file and #' format it appropriately for plotting with gmoviz. #' #' @param bam_file Location of the bam file from which to read coverage data. #' @param regions_of_interest either a \linkS4class{GRanges} of...
library(segmented) ### Name: down ### Title: Down syndrome in babies ### Aliases: down ### Keywords: datasets ### ** Examples data(down)
/data/genthat_extracted_code/segmented/examples/down.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
148
r
library(segmented) ### Name: down ### Title: Down syndrome in babies ### Aliases: down ### Keywords: datasets ### ** Examples data(down)
library(funcy) ### Name: label2lowerk ### Title: Relabeling of clusters. ### Aliases: label2lowerk ### Keywords: relabel ### ** Examples ##Generating cluster labels for 4 clusters cl <- rep(sample(2:10, 4), sample(3:5,4, replace=TRUE)) cl ##Labels them to 1:4 label2lowerk(cl)
/data/genthat_extracted_code/funcy/examples/label2lowerk.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
285
r
library(funcy) ### Name: label2lowerk ### Title: Relabeling of clusters. ### Aliases: label2lowerk ### Keywords: relabel ### ** Examples ##Generating cluster labels for 4 clusters cl <- rep(sample(2:10, 4), sample(3:5,4, replace=TRUE)) cl ##Labels them to 1:4 label2lowerk(cl)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assembly.R \name{get_assembly_stats} \alias{get_assembly_stats} \title{get_assembly_stats} \usage{ get_assembly_stats(sample_id, plasmids = FALSE) } \arguments{ \item{sample_id}{An integer sample ID, or vector of sample IDs} \item{plasmids}{...
/staphopia/man/get_assembly_stats.Rd
no_license
staphopia/staphopia-r
R
false
true
596
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assembly.R \name{get_assembly_stats} \alias{get_assembly_stats} \title{get_assembly_stats} \usage{ get_assembly_stats(sample_id, plasmids = FALSE) } \arguments{ \item{sample_id}{An integer sample ID, or vector of sample IDs} \item{plasmids}{...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{melt_} \alias{melt_} \alias{melt_.data.frame} \alias{melt_.matrix} \title{Make a 'Wide' data set 'Long'} \usage{ melt_(data, ...) \method{melt_}{data.frame}(data, id.vars, measure.vars, variable.name = "variable", ..., value.name = "value") \method{melt_}{m...
/man/melt_.Rd
no_license
dpastoor/Kmisc
R
false
false
1,509
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{melt_} \alias{melt_} \alias{melt_.data.frame} \alias{melt_.matrix} \title{Make a 'Wide' data set 'Long'} \usage{ melt_(data, ...) \method{melt_}{data.frame}(data, id.vars, measure.vars, variable.name = "variable", ..., value.name = "value") \method{melt_}{m...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_flagcols.R \name{flagcols} \alias{flagcols} \title{QC Flag a Column} \usage{ flagcols(d, cols, LOD) } \arguments{ \item{d}{dataframe containing data to be flagged} \item{cols}{integer giving column number providing location of data to b...
/man/flagcols.Rd
no_license
willdrysdale/wsdmiscr
R
false
true
520
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/func_flagcols.R \name{flagcols} \alias{flagcols} \title{QC Flag a Column} \usage{ flagcols(d, cols, LOD) } \arguments{ \item{d}{dataframe containing data to be flagged} \item{cols}{integer giving column number providing location of data to b...
#' @title Check if genes are valid bnumbers #' @name is_valid_bnumber #' #' @param bnum_list A character vector #' @return A logical vector #' #' @export #' #' @examples is_valid_bnumber <- function(bnum_list) { master_gene_table <- read_master_gene_file() bnum_list %in% get_all_genes() } #' @title Check if genes a...
/R/test_gene.R
no_license
PGC-CCG/EcoliGenes
R
false
false
1,678
r
#' @title Check if genes are valid bnumbers #' @name is_valid_bnumber #' #' @param bnum_list A character vector #' @return A logical vector #' #' @export #' #' @examples is_valid_bnumber <- function(bnum_list) { master_gene_table <- read_master_gene_file() bnum_list %in% get_all_genes() } #' @title Check if genes a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fluorita.R \docType{data} \name{fluorita} \alias{fluorita} \title{Datos del coste de fabricacion de cemento} \format{Lista con los siguientes campos: \itemize{ \item fluo: contenido en fluorita (0\%, 1\%, 2\%, 3\%, 4\%) \item mez: tipo de mez...
/man/fluorita.Rd
no_license
javiercara/DisRegETSII
R
false
true
688
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fluorita.R \docType{data} \name{fluorita} \alias{fluorita} \title{Datos del coste de fabricacion de cemento} \format{Lista con los siguientes campos: \itemize{ \item fluo: contenido en fluorita (0\%, 1\%, 2\%, 3\%, 4\%) \item mez: tipo de mez...
testlist <- list(b = c(8.29983364436331e+180, 5.43230918186762e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )) result <- do.call(metacoder:::centroid,testlist) str(result)
/metacoder/inst/testfiles/centroid/AFL_centroid/centroid_valgrind_files/1615768300-test.R
permissive
akhikolla/updatedatatype-list3
R
false
false
265
r
testlist <- list(b = c(8.29983364436331e+180, 5.43230918186762e-312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )) result <- do.call(metacoder:::centroid,testlist) str(result)
# Subject summaries library('openair') library('ggplot2') # ECan # download.file(url = "http://data.ecan.govt.nz/data/29/Air/Air%20quality%20data%20for%20a%20monitored%20site%20(Hourly)/CSV?SiteId=5&StartDate=01%2F08%2F2015&EndDate=30%2F09%2F2015",destfile = "ecan_data.csv",method = "curl") # system("sed -i 's/a.m./AM...
/subject_14.R
permissive
guolivar/cona
R
false
false
8,307
r
# Subject summaries library('openair') library('ggplot2') # ECan # download.file(url = "http://data.ecan.govt.nz/data/29/Air/Air%20quality%20data%20for%20a%20monitored%20site%20(Hourly)/CSV?SiteId=5&StartDate=01%2F08%2F2015&EndDate=30%2F09%2F2015",destfile = "ecan_data.csv",method = "curl") # system("sed -i 's/a.m./AM...
#16: #1: faces<-function(xy=rbind(1:3,5:3,3:5,5:7),which.row,fill=FALSE,nrow,ncol, scale=TRUE,byrow=FALSE,main,labels){ #21: spline<-function(a,y,m=200,plot=FALSE){ n<-length(a) h<-diff(a) dy<-diff(y) sigma<-dy/h lambda<-h[-1]/(hh<-h[-1]+h[-length(h)]) mu<-1-lambda d<-6*diff(sigma)/h...
/R/faces.R
no_license
glsnow/TeachingDemos
R
false
false
5,624
r
#16: #1: faces<-function(xy=rbind(1:3,5:3,3:5,5:7),which.row,fill=FALSE,nrow,ncol, scale=TRUE,byrow=FALSE,main,labels){ #21: spline<-function(a,y,m=200,plot=FALSE){ n<-length(a) h<-diff(a) dy<-diff(y) sigma<-dy/h lambda<-h[-1]/(hh<-h[-1]+h[-length(h)]) mu<-1-lambda d<-6*diff(sigma)/h...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uikit-page.R \name{ukPage} \alias{ukPage} \title{Create a shinyuikit page} \usage{ ukPage(..., title = NULL) } \arguments{ \item{...}{The UI elements to place in the page} \item{title}{character. The title of the page} } \description{ Build ...
/man/ukPage.Rd
permissive
dickoa/shinyuikit
R
false
true
486
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/uikit-page.R \name{ukPage} \alias{ukPage} \title{Create a shinyuikit page} \usage{ ukPage(..., title = NULL) } \arguments{ \item{...}{The UI elements to place in the page} \item{title}{character. The title of the page} } \description{ Build ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bed_generator.R \name{bed_generator} \alias{bed_generator} \title{Generate BED file for WGS dataset.} \usage{ bed_generator(chr = numeric(), hg = numeric(), start = NULL, end = NULL, by = 1000) } \arguments{ \item{chr}{Specify the...
/man/bed_generator.Rd
no_license
huangziyan11111/iCNV
R
false
true
925
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bed_generator.R \name{bed_generator} \alias{bed_generator} \title{Generate BED file for WGS dataset.} \usage{ bed_generator(chr = numeric(), hg = numeric(), start = NULL, end = NULL, by = 1000) } \arguments{ \item{chr}{Specify the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TrenaGene.R \docType{methods} \name{getEncodeDHS,TrenaGene-method} \alias{getEncodeDHS,TrenaGene-method} \alias{getEncodeDHS} \title{Get all the dnase hypersensitivity regions in the expansive region covered by the enhancer} \usage{ \S4method...
/man/getEncodeDHS.Rd
permissive
PriceLab/trenaGene
R
false
true
515
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TrenaGene.R \docType{methods} \name{getEncodeDHS,TrenaGene-method} \alias{getEncodeDHS,TrenaGene-method} \alias{getEncodeDHS} \title{Get all the dnase hypersensitivity regions in the expansive region covered by the enhancer} \usage{ \S4method...
### .onLoad <- function(libname, pkgname) { .Call2("init_DNAlkups", DNA_STRING_CODEC@enc_lkup, DNA_STRING_CODEC@dec_lkup, PACKAGE=pkgname) .Call2("init_RNAlkups", RNA_STRING_CODEC@enc_lkup, RNA_STRING_CODEC@dec_lkup, PACKAGE=pkgname) } .onUnload <- function(libpath) { ...
/R/zzz.R
no_license
nw328/Biostrings
R
false
false
370
r
### .onLoad <- function(libname, pkgname) { .Call2("init_DNAlkups", DNA_STRING_CODEC@enc_lkup, DNA_STRING_CODEC@dec_lkup, PACKAGE=pkgname) .Call2("init_RNAlkups", RNA_STRING_CODEC@enc_lkup, RNA_STRING_CODEC@dec_lkup, PACKAGE=pkgname) } .onUnload <- function(libpath) { ...
library(ggplot2) library(gcookbook) View(tophitters2001) tophit <- tophitters2001[1:25,] ggplot(tophit, aes(x = avg, y = name)) + geom_point() tophit[,c("name", "lg", "avg")] View(tophit) ggplot(tophit, aes(x=avg, y=reorder(name, avg))) + geom_point(size=3) + # Use a larger dot theme_bw() + them...
/geompoint.R
no_license
Geoff89/R_codes
R
false
false
5,328
r
library(ggplot2) library(gcookbook) View(tophitters2001) tophit <- tophitters2001[1:25,] ggplot(tophit, aes(x = avg, y = name)) + geom_point() tophit[,c("name", "lg", "avg")] View(tophit) ggplot(tophit, aes(x=avg, y=reorder(name, avg))) + geom_point(size=3) + # Use a larger dot theme_bw() + them...
create.pin.file <- function(filename,pinlist) { # This function is used to create a .pin file to be used in the CAAL # .pin file includes the initial values of all the estimated parameters # .pin file need to be created before doing any estimation # created by Yi Xu (NOAA-Southwest Fisheries Science Cente...
/create.pin.file.R
no_license
steve-teo/fish-growth-caal
R
false
false
1,362
r
create.pin.file <- function(filename,pinlist) { # This function is used to create a .pin file to be used in the CAAL # .pin file includes the initial values of all the estimated parameters # .pin file need to be created before doing any estimation # created by Yi Xu (NOAA-Southwest Fisheries Science Cente...
npm_stats<-function(name,range1='2015-01-01',range2='2017-06-03',type="month"){ url<-paste0('https://api.npmjs.org/downloads/range/',range1,':',range2,'/',name) temp<-fromJSON(url) temp<-data.table(temp$downloads) temp[,week:=paste0(year(day),"-W",sprintf('%02d',week(day)))] temp[,month:=paste0(year(day...
/npm_stats.R
no_license
mziembinski/JavaScript-Ecosystem
R
false
false
800
r
npm_stats<-function(name,range1='2015-01-01',range2='2017-06-03',type="month"){ url<-paste0('https://api.npmjs.org/downloads/range/',range1,':',range2,'/',name) temp<-fromJSON(url) temp<-data.table(temp$downloads) temp[,week:=paste0(year(day),"-W",sprintf('%02d',week(day)))] temp[,month:=paste0(year(day...
library(forecast) #library(fpp) library(quantmod) #Quantitative Financial Modelling library(xts) library(TTR) #Technical Trading Rules pkg library(tseries) ## 1. ZTE ####################### Getting Data ################################### getSymbols("ZTCOY",from="2013-01-01", to="2018-02-28") class(ZTCOY) str(ZTCOY) h...
/FTS_ZTCOY.R
no_license
KellenChoi/ChineseADR_TimeSeries
R
false
false
16,454
r
library(forecast) #library(fpp) library(quantmod) #Quantitative Financial Modelling library(xts) library(TTR) #Technical Trading Rules pkg library(tseries) ## 1. ZTE ####################### Getting Data ################################### getSymbols("ZTCOY",from="2013-01-01", to="2018-02-28") class(ZTCOY) str(ZTCOY) h...
library(plyr) library(dplyr) ## It is not necessary to initialize directory, since the data file should be copied to the working directory ## Note that the "test" and "train" files must be located in the corresponding subdirectories ## reading description files activities <- read.csv("activity_labels.txt",header=FALS...
/run_analysis.R
no_license
annibalvasconcellos/tidy_data
R
false
false
2,733
r
library(plyr) library(dplyr) ## It is not necessary to initialize directory, since the data file should be copied to the working directory ## Note that the "test" and "train" files must be located in the corresponding subdirectories ## reading description files activities <- read.csv("activity_labels.txt",header=FALS...
library(tsintermittent) ### Name: ts.data1 ### Title: Example intermittent demand series - 'ts.data1' ### Aliases: ts.data1 ### Keywords: datasets ### ** Examples plot(ts.data1)
/data/genthat_extracted_code/tsintermittent/examples/ts.data1.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
185
r
library(tsintermittent) ### Name: ts.data1 ### Title: Example intermittent demand series - 'ts.data1' ### Aliases: ts.data1 ### Keywords: datasets ### ** Examples plot(ts.data1)
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 7.97127979208307e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615782901-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 7.97127979208307e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
#' #' @name intersection #' @title intersection #' @description Computes an Intersection #' #' @param features1 a first sp object #' @param features2 a second sp object #' @param gmlIdAttributeName specific to GML, names of the ID attributes for each #' features, by default c("gml_id", "gml_id") #' @param are...
/R/Intersection.R
no_license
openfigis/RFigisGeo
R
false
false
7,857
r
#' #' @name intersection #' @title intersection #' @description Computes an Intersection #' #' @param features1 a first sp object #' @param features2 a second sp object #' @param gmlIdAttributeName specific to GML, names of the ID attributes for each #' features, by default c("gml_id", "gml_id") #' @param are...
# plot phenotype distributions # This script generates joint histogram-density plots for the phenotypes # ============================================================================== # environment variables # ============================================================================== suppressMessages(libr...
/src/02_pheno_distribution/plot_histograms_phenotypes_CLEAN.R
permissive
asthmacollaboratory/sage-lungfunction
R
false
false
7,725
r
# plot phenotype distributions # This script generates joint histogram-density plots for the phenotypes # ============================================================================== # environment variables # ============================================================================== suppressMessages(libr...
library(PandemicLP) library(dplyr) library(ggplot2) require(metR) require(scales) Sys.setlocale("LC_TIME", "C") # datas em ingl?s #gr = (sqrt(5)+1)/2 height = 32;width = 38 muFun = function(t,a,b,c,f=1) exp(log(f)+log(a)+log(c)-(c*t)-(f+1)*log( b+exp(-c*t) ) ) #### Figure 6.1 #### SAf_6.1 = load_covid("South Africa",...
/Part2/Chapter6/figures_session_5_1.R
no_license
CovidLP/Book
R
false
false
3,475
r
library(PandemicLP) library(dplyr) library(ggplot2) require(metR) require(scales) Sys.setlocale("LC_TIME", "C") # datas em ingl?s #gr = (sqrt(5)+1)/2 height = 32;width = 38 muFun = function(t,a,b,c,f=1) exp(log(f)+log(a)+log(c)-(c*t)-(f+1)*log( b+exp(-c*t) ) ) #### Figure 6.1 #### SAf_6.1 = load_covid("South Africa",...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/contextmenu.R \name{contextmenu} \alias{contextmenu} \title{Contextmenu} \usage{ contextmenu(x, y, ...) } \arguments{ \item{x, y}{\code{\link[base:integer]{Integer}}. Contextmenus upper left corner is displayed at (\code{x} px, \code{y} px).}...
/man/contextmenu.Rd
no_license
DavidBarke/shinyExplorer
R
false
true
728
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/contextmenu.R \name{contextmenu} \alias{contextmenu} \title{Contextmenu} \usage{ contextmenu(x, y, ...) } \arguments{ \item{x, y}{\code{\link[base:integer]{Integer}}. Contextmenus upper left corner is displayed at (\code{x} px, \code{y} px).}...
library(rgl) # Get file myData <- read.csv("C:/Users/reei/Documents/CAS_BigData/tag6/bierkunden.csv") str(myData) summary(myData) # Clean data, reduce to numeric values used for cluster analysis dat <- myData dat$plz <- dat$kanton <- dat$gender <- dat$id <- dat$education <- dat$craftbeer <- NULL head(dat) # how many ...
/tag6/t6_cluster_analysis.R
no_license
reto-e/cas_big_data
R
false
false
1,621
r
library(rgl) # Get file myData <- read.csv("C:/Users/reei/Documents/CAS_BigData/tag6/bierkunden.csv") str(myData) summary(myData) # Clean data, reduce to numeric values used for cluster analysis dat <- myData dat$plz <- dat$kanton <- dat$gender <- dat$id <- dat$education <- dat$craftbeer <- NULL head(dat) # how many ...
#' @title pre-processing data #' #' @description This function creates the train and test sets to then make the model predictions and determines the value to be predicted #' #' @param data dataframe #' #' @return #' #' @import caret #' @import logging #' #' preProcesar <- function (datos){ library(caret) l...
/PredictNumber/R/pre_procesamiento.R
no_license
alfonsogarcia-git/Project_R
R
false
false
1,189
r
#' @title pre-processing data #' #' @description This function creates the train and test sets to then make the model predictions and determines the value to be predicted #' #' @param data dataframe #' #' @return #' #' @import caret #' @import logging #' #' preProcesar <- function (datos){ library(caret) l...
## Put comments here that give an overall description of what your ## functions do ## Set the value of the matrix, Get the value of the matrix, ## Set the value of the inverse matrix, Get the value of the inverse matrix makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { ...
/cachematrix.R
no_license
Yeowboon95/ProgrammingAssignment2
R
false
false
1,232
r
## Put comments here that give an overall description of what your ## functions do ## Set the value of the matrix, Get the value of the matrix, ## Set the value of the inverse matrix, Get the value of the inverse matrix makeCacheMatrix <- function(x = matrix()) { i <- NULL set <- function(y) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isPackageLoaded.R \name{isPackageLoaded} \alias{isPackageLoaded} \title{psSubpathway internal functions} \usage{ SubSEA DCSA } \description{ Determine if the package is loaded, if no package is loaded. } \details{ isPackageLoad...
/man/isPackageLoaded.Rd
no_license
cran/psSubpathway
R
false
true
380
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isPackageLoaded.R \name{isPackageLoaded} \alias{isPackageLoaded} \title{psSubpathway internal functions} \usage{ SubSEA DCSA } \description{ Determine if the package is loaded, if no package is loaded. } \details{ isPackageLoad...
# Create separate scripts for each method and for each sim_index to be run in batch. Submitted to slurm by 'runSimAnalyses_runScripts_slurm.R' # sourced by 'submitJobs_slurm.R', which calls these functions to create the R script files which will be submitted # into slurm as batch jobs createScripts_FSC=function(sigma_...
/Simulations/runSimAnalyses_createScripts.R
no_license
DavidKLim/FSCseqPaper
R
false
false
8,731
r
# Create separate scripts for each method and for each sim_index to be run in batch. Submitted to slurm by 'runSimAnalyses_runScripts_slurm.R' # sourced by 'submitJobs_slurm.R', which calls these functions to create the R script files which will be submitted # into slurm as batch jobs createScripts_FSC=function(sigma_...
## USES: Analysis #' A ReportClass is an class containing ggplot2 objects created based on an AnalysisClass object. #' #' @slot barplot #' @slot heatmap #' @slot multidimensionalscaling #' @slot variableclusters #' @slot outliers #' @slot varimp #' @slot lofsum #' @export setClass("ReportClass", rep...
/preproviz/R/05ReportingClass.R
no_license
ingted/R-Examples
R
false
false
8,344
r
## USES: Analysis #' A ReportClass is an class containing ggplot2 objects created based on an AnalysisClass object. #' #' @slot barplot #' @slot heatmap #' @slot multidimensionalscaling #' @slot variableclusters #' @slot outliers #' @slot varimp #' @slot lofsum #' @export setClass("ReportClass", rep...