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
#!/usr/bin/Rscript if (!require("pacman")) install.packages("pacman") pacman::p_load(ggplot2, data.table, foreach, sqldf, tidyr, stringr, dplyr) RESEARCH_HOME = Sys.getenv(c("RESEARCH_HOME")) dataFile = '/home/and/Documents/PhD/Research/Experiments/FlockFinder_v1.0/nohup.out' lines = readLines(dataFile) records = c(...
/Scripts/R/plotLogsFromFlockFinderBenchmark.R
no_license
aocalderon/Research
R
false
false
3,692
r
#!/usr/bin/Rscript if (!require("pacman")) install.packages("pacman") pacman::p_load(ggplot2, data.table, foreach, sqldf, tidyr, stringr, dplyr) RESEARCH_HOME = Sys.getenv(c("RESEARCH_HOME")) dataFile = '/home/and/Documents/PhD/Research/Experiments/FlockFinder_v1.0/nohup.out' lines = readLines(dataFile) records = c(...
#' @title Define 'RAVE' Module Output #' @name define_output #' @param definition R expression of output, such as \code{plotOutput('out')} #' @param title Title to show #' @param width integer from 1 to 12, similar to "width" in #' \code{\link[shiny]{column}} #' @param order the order of output, smaller order will be...
/R/generics-define_output.R
no_license
libertyh/rave
R
false
false
5,150
r
#' @title Define 'RAVE' Module Output #' @name define_output #' @param definition R expression of output, such as \code{plotOutput('out')} #' @param title Title to show #' @param width integer from 1 to 12, similar to "width" in #' \code{\link[shiny]{column}} #' @param order the order of output, smaller order will be...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2024 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2024 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query11_query58_1344/query11_query58_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
708
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2024 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2024 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q...
cat("\014") # Clear your console rm(list = ls()) #clear your environment ########################## Load in header file ######################## # setwd("~/git/of_dollars_and_data") source(file.path(paste0(getwd(),"/header.R"))) ########################## Load in Libraries ########################## # library(ggplot...
/analysis/0045_the_constant_reminder.R
no_license
nmaggiulli/of-dollars-and-data
R
false
false
3,950
r
cat("\014") # Clear your console rm(list = ls()) #clear your environment ########################## Load in header file ######################## # setwd("~/git/of_dollars_and_data") source(file.path(paste0(getwd(),"/header.R"))) ########################## Load in Libraries ########################## # library(ggplot...
# Plots probabilities of gaining non-representative joints per patient group. library(argparse) library(data.table) library(grid) library(ggplot2) # Get arguments. parser <- ArgumentParser() parser$add_argument('--input', required = TRUE) parser$add_argument('--output', required = TRUE) parser$add_argument('...
/scripts/outcomes/site_gains/plot_probabilities.R
permissive
morrislab/plos-medicine-joint-patterns
R
false
false
2,118
r
# Plots probabilities of gaining non-representative joints per patient group. library(argparse) library(data.table) library(grid) library(ggplot2) # Get arguments. parser <- ArgumentParser() parser$add_argument('--input', required = TRUE) parser$add_argument('--output', required = TRUE) parser$add_argument('...
################################################################################ # Libraries --------------------------------------------------------------- ################################################################################ library(magick) library(readr) library(dplyr) ##################################...
/code/makeAllPdfs.R
permissive
jhelvy/splitKbCompare
R
false
false
2,676
r
################################################################################ # Libraries --------------------------------------------------------------- ################################################################################ library(magick) library(readr) library(dplyr) ##################################...
library(randomForest) library(pdp) library(xspliner) data(boston) set.seed(101) # build random forest model: boston.rf <- randomForest(cmedv ~ lstat + ptratio + age, data = boston) # build xspliner model with specified response method and approximation options model_pdp <- xspline( cmedv ~ xs(lstat, transition ...
/examples/compare_with_gam.R
no_license
DrRoad/xspliner
R
false
false
955
r
library(randomForest) library(pdp) library(xspliner) data(boston) set.seed(101) # build random forest model: boston.rf <- randomForest(cmedv ~ lstat + ptratio + age, data = boston) # build xspliner model with specified response method and approximation options model_pdp <- xspline( cmedv ~ xs(lstat, transition ...
\name{pw.assoc} \alias{pw.assoc} \title{Pairwise measures between categorical variables} \description{ This function computes some association and \emph{Proportional Reduction in Error} (PRE) measures between a categorical nominal variable and each of the other available predictors (being also categorical varia...
/man/pw.assoc.Rd
no_license
cran/StatMatch
R
false
false
8,001
rd
\name{pw.assoc} \alias{pw.assoc} \title{Pairwise measures between categorical variables} \description{ This function computes some association and \emph{Proportional Reduction in Error} (PRE) measures between a categorical nominal variable and each of the other available predictors (being also categorical varia...
#' Simulate MOTTE formated data #' #' @param n.train An integer value, sample size for training data #' @param n.test An integer value, sample size for testing data #' @param p An integer value, the dimensionality of covaraites (X) #' @param q An integer value, the dimensionality of responses (Y) #' @param ratio An fra...
/R/sim_MOTTE_data.R
permissive
boyiguo1/MOTTE.RF
R
false
false
5,910
r
#' Simulate MOTTE formated data #' #' @param n.train An integer value, sample size for training data #' @param n.test An integer value, sample size for testing data #' @param p An integer value, the dimensionality of covaraites (X) #' @param q An integer value, the dimensionality of responses (Y) #' @param ratio An fra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{oranges} \alias{oranges} \title{Sales of oranges} \format{A data frame with 36 observations and 6 variables: \describe{ \item{\code{store}}{a factor with levels \code{1} \code{2} \code{3} \code{4...
/man/oranges.Rd
no_license
elong0527/emmeans
R
false
true
1,660
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/datasets.R \docType{data} \name{oranges} \alias{oranges} \title{Sales of oranges} \format{A data frame with 36 observations and 6 variables: \describe{ \item{\code{store}}{a factor with levels \code{1} \code{2} \code{3} \code{4...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbRunScript.R \name{dbRunScript} \alias{dbRunScript} \title{Execute an SQL script} \usage{ dbRunScript(conn, script, echo = FALSE, ...) } \arguments{ \item{conn}{a \code{\link[DBI]{DBIConnection-class}} object} \item{script}{Either a filenam...
/man/dbRunScript.Rd
no_license
beanumber/etl
R
false
true
1,366
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dbRunScript.R \name{dbRunScript} \alias{dbRunScript} \title{Execute an SQL script} \usage{ dbRunScript(conn, script, echo = FALSE, ...) } \arguments{ \item{conn}{a \code{\link[DBI]{DBIConnection-class}} object} \item{script}{Either a filenam...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outliers_norm.R \name{detect_outliers_norm} \alias{detect_outliers_norm} \title{Detects outliers} \usage{ detect_outliers_norm( x, alpha = CONST.ALPHA, verbose = FALSE, x.mean, x.sd, type = c("two.sided", "less", "greater") ) } \d...
/gwloggeR/man/detect_outliers_norm.Rd
permissive
DOV-Vlaanderen/groundwater-logger-validation
R
false
true
400
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/outliers_norm.R \name{detect_outliers_norm} \alias{detect_outliers_norm} \title{Detects outliers} \usage{ detect_outliers_norm( x, alpha = CONST.ALPHA, verbose = FALSE, x.mean, x.sd, type = c("two.sided", "less", "greater") ) } \d...
#! /opt/az/local/R/R-3.2.0/installdir/bin/Rscript # Objective: To take counts file from CRISPR screening (Sabatini lab) and process for downstream workflows # Input: Counts matrix from CRISPR screening with a single early time point # Output: Normalized CRISPR ratios on the sgRNA level, gene level, mageck inputs ...
/crisprProcess.R
no_license
41cells/analyzeCRISPR
R
false
false
9,942
r
#! /opt/az/local/R/R-3.2.0/installdir/bin/Rscript # Objective: To take counts file from CRISPR screening (Sabatini lab) and process for downstream workflows # Input: Counts matrix from CRISPR screening with a single early time point # Output: Normalized CRISPR ratios on the sgRNA level, gene level, mageck inputs ...
# list of functions #' The bivariate von Mises cosine model #' @inheritParams rvmsin #' @param mu1,mu2 vectors of mean parameters. #' @param kappa1,kappa2,kappa3 vectors of concentration parameters; \code{kappa1, kappa2 > 0}. #' @param ... additional arguments to be passed to dvmcos. See details. #' #' @deta...
/R/all_vmcos_fns.R
no_license
cran/BAMBI
R
false
false
33,359
r
# list of functions #' The bivariate von Mises cosine model #' @inheritParams rvmsin #' @param mu1,mu2 vectors of mean parameters. #' @param kappa1,kappa2,kappa3 vectors of concentration parameters; \code{kappa1, kappa2 > 0}. #' @param ... additional arguments to be passed to dvmcos. See details. #' #' @deta...
\name{phosphor} \alias{phosphor} \docType{data} \title{Phosphor concentration in plants during growth} \description{ In a plant physiological experiment the amount of water-soluble phosphorous (among others) was measured in the plants, as a percentage of dry matter. The phosphorous concentration was measured nine weeks...
/man/phosphor.Rd
no_license
cran/isdals
R
false
false
839
rd
\name{phosphor} \alias{phosphor} \docType{data} \title{Phosphor concentration in plants during growth} \description{ In a plant physiological experiment the amount of water-soluble phosphorous (among others) was measured in the plants, as a percentage of dry matter. The phosphorous concentration was measured nine weeks...
ft_dementia_style <- function(ft) { cols <- ncol(ft$body[["dataset"]]) rows <- nrow(ft$body[["dataset"]]) ft %>% # Replace NAs (zeros) with dash colformat_num(na_str = "-") %>% font(fontname = "Arial", part = "all") %>% fontsize(size = 11, part = "all") %>% # Format heade...
/functions/flextable_style.R
no_license
Public-Health-Scotland/dementia-pds
R
false
false
1,129
r
ft_dementia_style <- function(ft) { cols <- ncol(ft$body[["dataset"]]) rows <- nrow(ft$body[["dataset"]]) ft %>% # Replace NAs (zeros) with dash colformat_num(na_str = "-") %>% font(fontname = "Arial", part = "all") %>% fontsize(size = 11, part = "all") %>% # Format heade...
args = commandArgs(trailingOnly = T) j = as.numeric(args[[1]]) #remove all the multi-allelic snps library(data.table) library(dplyr) system(paste0("/data/zhangh24/software/plink2 --vcf /gpfs/gsfs10/users/BC_risk_prediction/ghana/GSA/VCFs_to_share/subtracted_chr",j,".dose.vcf.gz --recode --make-bed --out /data/zhangh2...
/code/breast_cancer/convert_vcf_to_plink.R
no_license
andrewhaoyu/multi_ethnic
R
false
false
2,445
r
args = commandArgs(trailingOnly = T) j = as.numeric(args[[1]]) #remove all the multi-allelic snps library(data.table) library(dplyr) system(paste0("/data/zhangh24/software/plink2 --vcf /gpfs/gsfs10/users/BC_risk_prediction/ghana/GSA/VCFs_to_share/subtracted_chr",j,".dose.vcf.gz --recode --make-bed --out /data/zhangh2...
# load dplyr lib library(dplyr) # read and clean data data <- read.table("household_power_consumption.txt", sep =";", stringsAsFactors = FALSE, na.strings = c("?",""), header = TRUE) data <- mutate(data, Date = as.Date(data$Date, "%d/%m/%Y")) data <- subset(data, data$Date >= "2007-02-01" & data$Date <= "2007-02-02") ...
/plot3.R
no_license
data-sci-1/ExData_Plotting1
R
false
false
943
r
# load dplyr lib library(dplyr) # read and clean data data <- read.table("household_power_consumption.txt", sep =";", stringsAsFactors = FALSE, na.strings = c("?",""), header = TRUE) data <- mutate(data, Date = as.Date(data$Date, "%d/%m/%Y")) data <- subset(data, data$Date >= "2007-02-01" & data$Date <= "2007-02-02") ...
#! /usr/bin/Rscript # Compare hemp trees and distances to see if close enough # Libraries library(argparse) library(ggtree) library(ggplot2) library(gridExtra) library(eulerr) library(tidyverse) # Command-line arguments options(stringsAsFactors=F) parser=ArgumentParser() parser$add_argument("--oldtree", help="Newick...
/0_Scripts/1h_CompareHempGenos.r
no_license
wallacelab/paper-johnson-hemp-gs
R
false
false
6,588
r
#! /usr/bin/Rscript # Compare hemp trees and distances to see if close enough # Libraries library(argparse) library(ggtree) library(ggplot2) library(gridExtra) library(eulerr) library(tidyverse) # Command-line arguments options(stringsAsFactors=F) parser=ArgumentParser() parser$add_argument("--oldtree", help="Newick...
################################################################################ #1. Input ################################################################################ #设置组别选项,组别设置成单选================================================== al_group_choices <- c("COPD smoker" = "COPD_smoker", "smoke...
/copd-shiny-docker/copd_shiny/UI/alluvial_diagram_for_UI.R
no_license
xiaowei3223/docker_build
R
false
false
1,506
r
################################################################################ #1. Input ################################################################################ #设置组别选项,组别设置成单选================================================== al_group_choices <- c("COPD smoker" = "COPD_smoker", "smoke...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_DO_sat.R \name{calc_DO_sat} \alias{calc_DO_sat} \title{Calculates the equilibrium saturation concentration of oxygen in water at the supplied conditions} \usage{ calc_DO_sat(temp.water, pressure.air, salinity.water = u(0, "PSU"), model...
/man/calc_DO_sat.Rd
permissive
weisoon/streamMetabolizer
R
false
true
1,426
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_DO_sat.R \name{calc_DO_sat} \alias{calc_DO_sat} \title{Calculates the equilibrium saturation concentration of oxygen in water at the supplied conditions} \usage{ calc_DO_sat(temp.water, pressure.air, salinity.water = u(0, "PSU"), model...
library(dplyr) library(dorothea) library(tidyr) load("~/PCHIC/pchic.RData") pchic <- data.frame(pchic[rowSums(pchic[,c("Mon", "Mac1", "Mac0", "Mac2", "MK", "Ery", "EP")] >= 5) >= 1, 1:10]) %>% na.omit(.) data(dorothea_hs, package = "dorothea") regulons = dorothea_hs %>% dplyr::filter(confidence %in% c("A", "B")) r...
/Lucille_Transcriptomes_analyses/Prepare_pchic_network.R
no_license
AlexisHucteau/Epigenomic_integration
R
false
false
1,034
r
library(dplyr) library(dorothea) library(tidyr) load("~/PCHIC/pchic.RData") pchic <- data.frame(pchic[rowSums(pchic[,c("Mon", "Mac1", "Mac0", "Mac2", "MK", "Ery", "EP")] >= 5) >= 1, 1:10]) %>% na.omit(.) data(dorothea_hs, package = "dorothea") regulons = dorothea_hs %>% dplyr::filter(confidence %in% c("A", "B")) r...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/droplet-actions.R \name{droplet_create} \alias{droplet_create} \title{Create a new droplet.} \usage{ droplet_create(name = random_name(), size = getOption("do_size", "512mb"), image = getOption("do_image", "ubuntu-14-04-x64"), reg...
/man/droplet_create.Rd
no_license
Smaraki11/analogsea
R
false
false
3,049
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/droplet-actions.R \name{droplet_create} \alias{droplet_create} \title{Create a new droplet.} \usage{ droplet_create(name = random_name(), size = getOption("do_size", "512mb"), image = getOption("do_image", "ubuntu-14-04-x64"), reg...
library(twitteR) library(yaml) config = yaml.load_file("scripts/twitter/config.yml") consumer_key=config$user$key consumer_secret=config$user$secret access_token=config$user$accessToken access_secret=config$user$accessTokenSecret setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret) tw = ...
/scripts/twitter/acessoTwitter.R
no_license
fbarth/mlr
R
false
false
566
r
library(twitteR) library(yaml) config = yaml.load_file("scripts/twitter/config.yml") consumer_key=config$user$key consumer_secret=config$user$secret access_token=config$user$accessToken access_secret=config$user$accessTokenSecret setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret) tw = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_ggplot.R \name{add_ggplot} \alias{add_ggplot} \title{Helper function for adding an ggplot} \usage{ add_ggplot(plot_object, width = 5, height = 5) } \arguments{ \item{plot_object}{the ggplot plot object.} \item{width}{the width of the out...
/man/add_ggplot.Rd
permissive
jcheng5/blastula
R
false
true
1,191
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_ggplot.R \name{add_ggplot} \alias{add_ggplot} \title{Helper function for adding an ggplot} \usage{ add_ggplot(plot_object, width = 5, height = 5) } \arguments{ \item{plot_object}{the ggplot plot object.} \item{width}{the width of the out...
#### LIBRARIES #### library(psych) library(ggplot2) library(reshape2) library(cowplot) library(heatmaply) library(factoextra) library(ggfortify) library(ggpubr) library(FactoMineR) library(gplots) library(graphics) library(randomForest) library(data.table) library(ca) library(readxl) library(sjlabelled) library(ggeffe...
/monteCarlo(tsGLM).R
no_license
jevzimite/Projects.compiled
R
false
false
17,258
r
#### LIBRARIES #### library(psych) library(ggplot2) library(reshape2) library(cowplot) library(heatmaply) library(factoextra) library(ggfortify) library(ggpubr) library(FactoMineR) library(gplots) library(graphics) library(randomForest) library(data.table) library(ca) library(readxl) library(sjlabelled) library(ggeffe...
library(datamaps) ### Name: add_choropleth ### Title: Add choropleth ### Aliases: add_choropleth ### ** Examples data <- data.frame(name = c("USA", "FRA", "CHN", "RUS", "COG", "DZA"), color = round(runif(6, 1, 10))) data %>% datamaps() %>% add_choropleth(name, color, colors = c("skyblue", "yellow", "or...
/data/genthat_extracted_code/datamaps/examples/add_choropleth.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
808
r
library(datamaps) ### Name: add_choropleth ### Title: Add choropleth ### Aliases: add_choropleth ### ** Examples data <- data.frame(name = c("USA", "FRA", "CHN", "RUS", "COG", "DZA"), color = round(runif(6, 1, 10))) data %>% datamaps() %>% add_choropleth(name, color, colors = c("skyblue", "yellow", "or...
# Team play styles # Cluster teams based on: ## FT's per 100 possessions ## 3PA per 100 possesssions ## (3PM per 100 possessions? maybe it should be possessions?) # field goals attempted - offensive rebounds + turnovers + (0.4 x free throws attempted) # Configs FREE_THROW_POSSESSION_PARAM = 0.44 advanced_metrics_a...
/team_features_eda.R
no_license
ianastalosh/march_madness_model
R
false
false
3,556
r
# Team play styles # Cluster teams based on: ## FT's per 100 possessions ## 3PA per 100 possesssions ## (3PM per 100 possessions? maybe it should be possessions?) # field goals attempted - offensive rebounds + turnovers + (0.4 x free throws attempted) # Configs FREE_THROW_POSSESSION_PARAM = 0.44 advanced_metrics_a...
/LeLogicielR/man/POIDS.NAISSANCE.Rd
no_license
rcqls/OtherRpackages
R
false
false
1,480
rd
shinyUI(fluidPage(theme=shinytheme("united"), # Application title titlePanel("Drug Shortage Explorer"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel(width=3, selectInput('select_ing','Select an Active Ingredient',active_ing), selectInput('select_company','...
/ui.R
no_license
hres/Drug-shortage
R
false
false
1,855
r
shinyUI(fluidPage(theme=shinytheme("united"), # Application title titlePanel("Drug Shortage Explorer"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel(width=3, selectInput('select_ing','Select an Active Ingredient',active_ing), selectInput('select_company','...
update.compareGroups<- function (object, X., ..., evaluate = TRUE) { if(!inherits(object, "compareGroups")) stop("argument 'object' must be of class 'compareGroups'") if(inherits(object, "compareGroups.subset")) stop("Update process might not work properly (different variables selected) si...
/R/update.compareGroups.R
no_license
tormodb/compareGroups
R
false
false
1,201
r
update.compareGroups<- function (object, X., ..., evaluate = TRUE) { if(!inherits(object, "compareGroups")) stop("argument 'object' must be of class 'compareGroups'") if(inherits(object, "compareGroups.subset")) stop("Update process might not work properly (different variables selected) si...
latpos.Btilde <- function(resp,parm,maxiter=100,verbose=FALSE){ A <- parm$A y <- resp$y n <- resp$n t <- resp$t I <- nrow(y) J <- ncol(y) D <- ncol(A) IJ <- I*J n <- as.vector(n) P. <- Matrix(0,nrow=J,ncol=IJ) ij <- 1:IJ j <- rep(1:J,each=I) B <- parm$Btilde$B res <- latpos.eval.parm...
/pkg/R/latpos-Btilde.R
no_license
melff/latpos
R
false
false
2,764
r
latpos.Btilde <- function(resp,parm,maxiter=100,verbose=FALSE){ A <- parm$A y <- resp$y n <- resp$n t <- resp$t I <- nrow(y) J <- ncol(y) D <- ncol(A) IJ <- I*J n <- as.vector(n) P. <- Matrix(0,nrow=J,ncol=IJ) ij <- 1:IJ j <- rep(1:J,each=I) B <- parm$Btilde$B res <- latpos.eval.parm...
ShortenStrings <- function(strings, max.len=40, end.len=floor(max.len/2), sep='...'){ # for strings longer than max.len, do the following # compute: start.len = max.len - end.len - length(sep) # then replace characters between start and end with sep stopifnot(max.len >= (1+str_length(sep)) & end.len >= 0) if ...
/Causata/R/ShortenStrings.R
no_license
ingted/R-Examples
R
false
false
1,457
r
ShortenStrings <- function(strings, max.len=40, end.len=floor(max.len/2), sep='...'){ # for strings longer than max.len, do the following # compute: start.len = max.len - end.len - length(sep) # then replace characters between start and end with sep stopifnot(max.len >= (1+str_length(sep)) & end.len >= 0) if ...
if(getRversion() >= "2.15.1") utils::globalVariables(c("signatures.nature2013", "signatures.cosmic", "signatures.exome.cosmic.v3.may2019", "signatures.genome.cosmic.v3.may2019", "tri.counts.exome", "tri.counts.genome", "dbs_possible", "signatures.dbs.cosmic.v3.may2019"))
/R/globalVariables.R
no_license
luolingqi/deconstructSigs.mm10
R
false
false
273
r
if(getRversion() >= "2.15.1") utils::globalVariables(c("signatures.nature2013", "signatures.cosmic", "signatures.exome.cosmic.v3.may2019", "signatures.genome.cosmic.v3.may2019", "tri.counts.exome", "tri.counts.genome", "dbs_possible", "signatures.dbs.cosmic.v3.may2019"))
library(dplyr) # read in training data files xtrain <- read.table("./UCI HAR Dataset/train/X_train.txt", header=F) ytrain <- read.table("./UCI HAR Dataset/train/y_train.txt", header=F) strain <- read.table("./UCI HAR Dataset/train/subject_train.txt", header=F) # read in test data files xtest <- read.table("./UCI HAR ...
/run_analysis.R
no_license
bbende/getting-and-cleaning-data-project
R
false
false
1,628
r
library(dplyr) # read in training data files xtrain <- read.table("./UCI HAR Dataset/train/X_train.txt", header=F) ytrain <- read.table("./UCI HAR Dataset/train/y_train.txt", header=F) strain <- read.table("./UCI HAR Dataset/train/subject_train.txt", header=F) # read in test data files xtest <- read.table("./UCI HAR ...
# download data suppressPackageStartupMessages({ library(HDCytoData) }) AML1 <- Weber_AML_sim_main_0.1pc_SE() AML2 <- Weber_AML_sim_main_1pc_SE() AML3 <- Weber_AML_sim_main_5pc_SE() saveRDS(object = AML1, file = "data/Weber_AML_sim_main_0.1pc_SE.rds") saveRDS(object = AML2, file = "data/Weber_AML_sim_main_1pc_SE....
/cytof/data/Download.R
no_license
fionarhuang/treeclimbR_article
R
false
false
779
r
# download data suppressPackageStartupMessages({ library(HDCytoData) }) AML1 <- Weber_AML_sim_main_0.1pc_SE() AML2 <- Weber_AML_sim_main_1pc_SE() AML3 <- Weber_AML_sim_main_5pc_SE() saveRDS(object = AML1, file = "data/Weber_AML_sim_main_0.1pc_SE.rds") saveRDS(object = AML2, file = "data/Weber_AML_sim_main_1pc_SE....
library(shiny) shinyUI(fluidPage( titlePanel("Automatic Forecasting"), includeMarkdown("introduction.Rmd"), sidebarLayout( sidebarPanel( uiOutput("tag_selector"), uiOutput("tag_series_selector"), uiOutput("tag_series_id_selector"), tableOutput("series_id_information") ), mainP...
/ui.R
no_license
kriskumar/automatic-forecasting
R
false
false
555
r
library(shiny) shinyUI(fluidPage( titlePanel("Automatic Forecasting"), includeMarkdown("introduction.Rmd"), sidebarLayout( sidebarPanel( uiOutput("tag_selector"), uiOutput("tag_series_selector"), uiOutput("tag_series_id_selector"), tableOutput("series_id_information") ), mainP...
source('simple_coverletter.R') simple_coverletter( company="SRhoadsianCo", position="Cat Whisperer", paragraph1="I like to write code sometimes", paragraph2="My eyes hurt", filename_override=NULL ) # source('jadrian_coverletter_fxn.R') # jadrian_coverletter_fxn(company, position, additional_paragraph, fil...
/coverletter/get_pdf.R
no_license
srhoads/coverletter
R
false
false
337
r
source('simple_coverletter.R') simple_coverletter( company="SRhoadsianCo", position="Cat Whisperer", paragraph1="I like to write code sometimes", paragraph2="My eyes hurt", filename_override=NULL ) # source('jadrian_coverletter_fxn.R') # jadrian_coverletter_fxn(company, position, additional_paragraph, fil...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include snowball_service.R NULL #' Cancels a cluster job #' #' @description #' Cancels a cluster job. You can only cancel a cluster job while it's in #' the `AwaitingQuorum` ...
/paws/R/snowball_operations.R
permissive
han-tun/paws
R
false
false
66,894
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include snowball_service.R NULL #' Cancels a cluster job #' #' @description #' Cancels a cluster job. You can only cancel a cluster job while it's in #' the `AwaitingQuorum` ...
# _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ # _/ _/ # _/ Peer Graded Project for Getting and Cleaning Data Course _/ # _/ by acabaya ...
/run_analysis.R
no_license
acabaya/GettingClosingData
R
false
false
4,008
r
# _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ # _/ _/ # _/ Peer Graded Project for Getting and Cleaning Data Course _/ # _/ by acabaya ...
library(tidyverse) library(skimr) library(mosaic) # while it's fine to know about working directories, I suggest # you learn to use the package 'here' that makes organising files easy # https://malco.io/2018/11/05/why-should-i-use-the-here-package/ survey <- read_csv(here::here('data', 'early_careers_survey.csv')) ...
/session01_lecture1/early_careers_survey.R
no_license
AlexKubbinga/group_assignment_1
R
false
false
6,540
r
library(tidyverse) library(skimr) library(mosaic) # while it's fine to know about working directories, I suggest # you learn to use the package 'here' that makes organising files easy # https://malco.io/2018/11/05/why-should-i-use-the-here-package/ survey <- read_csv(here::here('data', 'early_careers_survey.csv')) ...
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) # test if there is at least one argument: if not, return an error if (length(args)<2) { stop("At least two arguments must be supplied (input file).n", call.=FALSE) } else if (length(args)==2) { # default output file args[3] = "output.txt" } inputIds =...
/4_3.r
no_license
kevkid/CBB_Bioinformatics_FinalProject_4.3
R
false
false
3,154
r
#!/usr/bin/env Rscript args = commandArgs(trailingOnly=TRUE) # test if there is at least one argument: if not, return an error if (length(args)<2) { stop("At least two arguments must be supplied (input file).n", call.=FALSE) } else if (length(args)==2) { # default output file args[3] = "output.txt" } inputIds =...
## ## Copyright (c) 2016 Broad Institute, Inc. and Massachusetts Institute of Technology. All rights reserved. ## suppressMessages(suppressWarnings(library(getopt))) suppressMessages(suppressWarnings(library(optparse))) suppressMessages(suppressWarnings(library(DESeq2))) sessionInfo() arguments <- command...
/src/run_gp_deseq2.R
permissive
ACastanza/DESeq2
R
false
false
1,983
r
## ## Copyright (c) 2016 Broad Institute, Inc. and Massachusetts Institute of Technology. All rights reserved. ## suppressMessages(suppressWarnings(library(getopt))) suppressMessages(suppressWarnings(library(optparse))) suppressMessages(suppressWarnings(library(DESeq2))) sessionInfo() arguments <- command...
# data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4 library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error #b.var <- c(0.04) # The set of varaince of random covariates b as random slope #smooth <- 1 # measurement error is added to M if smoo...
/full simulation/summer/power.bonf.homo/seed2/homo_seed2_20050.R
no_license
wma9/FMRI-project
R
false
false
9,211
r
# data will be generated from tau1=tau^2, tau2=tau^2/2, and tau3=tau^2/4 library(parallel) simRep <- 5000 # Replication times in one simulation pvalue.true <- .05 # Testing type I error #b.var <- c(0.04) # The set of varaince of random covariates b as random slope #smooth <- 1 # measurement error is added to M if smoo...
server_custom_colors = function(input, output, session, DATA){ get_curr_col = function(){ if(input$selGlobalColoring == "mark"){ cm = DATA()$color_mapping_byMark }else if(input$selGlobalColoring == "cell"){ cm = DATA()$color_mapping_byCell }else if(input$selGlobalCol...
/module_custom_colors.R
no_license
jrboyd/shiny_seqtsne
R
false
false
5,131
r
server_custom_colors = function(input, output, session, DATA){ get_curr_col = function(){ if(input$selGlobalColoring == "mark"){ cm = DATA()$color_mapping_byMark }else if(input$selGlobalColoring == "cell"){ cm = DATA()$color_mapping_byCell }else if(input$selGlobalCol...
# Error curves get_bi <- function(data, model, outDir, prefix="", suffix="", saveplot=TRUE, test=FALSE, cv=TRUE, ...){ data <- model[[1]] if(saveplot){ dots <- list(...) if(is.null(dots$width)) w <- 1600 else w <- dots$width if(is.null(dots$height)) h <- 1600 else h <- dots$height if(is.null(dot...
/code/gs_functions.R
no_license
leonawicz/GrowingSeason
R
false
false
13,234
r
# Error curves get_bi <- function(data, model, outDir, prefix="", suffix="", saveplot=TRUE, test=FALSE, cv=TRUE, ...){ data <- model[[1]] if(saveplot){ dots <- list(...) if(is.null(dots$width)) w <- 1600 else w <- dots$width if(is.null(dots$height)) h <- 1600 else h <- dots$height if(is.null(dot...
# Exploratory analysiss # M. López & H. Achicanoy # 2015 mdata <- read.csv("iniData.csv") attach(mdata) ; class(mdata) View(mdata) library('ggplot2') # ------------------------------------------------------------------------------------ # # Grafico general sin considerar los tramos para la variable pendiente en el ...
/_cauca_river_analysis/exploratory_analysis.R
no_license
haachicanoy/Statistical_consulting
R
false
false
33,514
r
# Exploratory analysiss # M. López & H. Achicanoy # 2015 mdata <- read.csv("iniData.csv") attach(mdata) ; class(mdata) View(mdata) library('ggplot2') # ------------------------------------------------------------------------------------ # # Grafico general sin considerar los tramos para la variable pendiente en el ...
#' @export randomWC=function(moveInfo,readings,positions,edges,probs) { moveInfo$moves=c(sample(getOptions(positions[3],edges),1),0) return(moveInfo) } #' @export manualWC=function(moveInfo,readings,positions,edges,probs) { options=getOptions(positions[3],edges) print("Move 1 options (plus 0 for search):") ...
/DeliveryMan/R/WheresCroc.R
no_license
rogerkalliomaki/Ass1_AI
R
false
false
10,454
r
#' @export randomWC=function(moveInfo,readings,positions,edges,probs) { moveInfo$moves=c(sample(getOptions(positions[3],edges),1),0) return(moveInfo) } #' @export manualWC=function(moveInfo,readings,positions,edges,probs) { options=getOptions(positions[3],edges) print("Move 1 options (plus 0 for search):") ...
# Simple For loop to try different threshold # min a = quantile(d_recon_error_train[d_recon_error_train$Class == 0,]$Reconstruction.MSE, probs = 0.75) # max b = quantile(d_recon_error_train[d_recon_error_train$Class == 1,]$Reconstruction.MSE, probs = 0.25) # define prob for (n_prob in c(0, ...
/try_for_loop_v2.R
permissive
woobe/credit_card_example
R
false
false
2,238
r
# Simple For loop to try different threshold # min a = quantile(d_recon_error_train[d_recon_error_train$Class == 0,]$Reconstruction.MSE, probs = 0.75) # max b = quantile(d_recon_error_train[d_recon_error_train$Class == 1,]$Reconstruction.MSE, probs = 0.25) # define prob for (n_prob in c(0, ...
#sub-version u: applies Jonas's suggestion to regress out CSF+WM+Motion; and uses FSL-created Harvard-Oxford ROIs #sub-version q: uses FSL-created Harvard-Oxford ROIs instead of freesurfer ROIs. #sub-version v: uses simulated data to test whether the code I've created can actually recover an actually-existing relations...
/stanlba/singlelevelmodel/lba_rl_joint_v11v.R
permissive
bjsmith/reversallearning
R
false
false
7,613
r
#sub-version u: applies Jonas's suggestion to regress out CSF+WM+Motion; and uses FSL-created Harvard-Oxford ROIs #sub-version q: uses FSL-created Harvard-Oxford ROIs instead of freesurfer ROIs. #sub-version v: uses simulated data to test whether the code I've created can actually recover an actually-existing relations...
require(ToxLim) #------------------------------------------------------------------ # Three simple examples: the bioaccumulation model for the # three food webs, estimated once... #------------------------------------------------------------------ LimOmega (lim = LIMlake, INST=c("DET","DOC","BAC","P...
/inst/examples/LIMomega.R
no_license
cran/ToxLim
R
false
false
3,238
r
require(ToxLim) #------------------------------------------------------------------ # Three simple examples: the bioaccumulation model for the # three food webs, estimated once... #------------------------------------------------------------------ LimOmega (lim = LIMlake, INST=c("DET","DOC","BAC","P...
########## PARTE II: Grapg Control ############# ####### Requirements ###################################################### library(tidyverse) library(lubridate) ################## LOAD ################################################### data_Hoverboard <-readRDS("./data/Hoverboard/data_Hoverboard_I.rds") ...
/123_steps/code/02_Hoverboard.R
no_license
cabbouds/Recall
R
false
false
2,242
r
########## PARTE II: Grapg Control ############# ####### Requirements ###################################################### library(tidyverse) library(lubridate) ################## LOAD ################################################### data_Hoverboard <-readRDS("./data/Hoverboard/data_Hoverboard_I.rds") ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_funs.R \name{optTransactions} \alias{optTransactions} \title{select option transactions from trade log table} \usage{ optTransactions(op_df, sym) } \arguments{ \item{op_df}{option table} \item{symbol}{target symbol, e.g., 'SPX'} } \valu...
/man/optTransactions.Rd
no_license
strongway/vskew
R
false
true
446
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/read_funs.R \name{optTransactions} \alias{optTransactions} \title{select option transactions from trade log table} \usage{ optTransactions(op_df, sym) } \arguments{ \item{op_df}{option table} \item{symbol}{target symbol, e.g., 'SPX'} } \valu...
library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output) { # Expression that generates a histogram. The expression is # wrapped in a call to renderPlot to indicate that: # # 1) It is "reactive" and therefore should re-execute automatically # when inputs ch...
/app1/server.R
no_license
MD2012/coursera_ds09
R
false
false
648
r
library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output) { # Expression that generates a histogram. The expression is # wrapped in a call to renderPlot to indicate that: # # 1) It is "reactive" and therefore should re-execute automatically # when inputs ch...
\name{Log} \alias{Log} \alias{Exp} \encoding{UTF-8} %- Also NEED an '\alias' for EACH other topic documented here. \title{Log transformation of parameter estimates and their uncertainties} \description{Methods for log transforming individual parameter estimates and their uncertainty estimates for use in meta-analytic r...
/man/log.Rd
no_license
ctmm-initiative/ctmm
R
false
false
2,535
rd
\name{Log} \alias{Log} \alias{Exp} \encoding{UTF-8} %- Also NEED an '\alias' for EACH other topic documented here. \title{Log transformation of parameter estimates and their uncertainties} \description{Methods for log transforming individual parameter estimates and their uncertainty estimates for use in meta-analytic r...
#' Compute quantiles by group #' #' @param df The df #' @param .value_var the column of values #' @param \ldots the group_by variables #' @param .probs quantile probs #' @param .breaks the breaks to compute table over #' @param na.rm Remove NA when computing quantile? #' @param wide should the table be wide? #' @exampl...
/R/data_group.R
permissive
MatthieuStigler/matPkg
R
false
false
1,476
r
#' Compute quantiles by group #' #' @param df The df #' @param .value_var the column of values #' @param \ldots the group_by variables #' @param .probs quantile probs #' @param .breaks the breaks to compute table over #' @param na.rm Remove NA when computing quantile? #' @param wide should the table be wide? #' @exampl...
#Explore Data Course Project No. 2 NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") library(reshape2) #4.Across the United States, how have emissions from #coal combustion-related sources changed from 1999–2008? #Search for "coal" in SCC$Short.name coalSCC<-SCC[grep("+([a-zA-...
/p2_plot4.R
no_license
pattareeya/Expo_Data_Project2
R
false
false
965
r
#Explore Data Course Project No. 2 NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") library(reshape2) #4.Across the United States, how have emissions from #coal combustion-related sources changed from 1999–2008? #Search for "coal" in SCC$Short.name coalSCC<-SCC[grep("+([a-zA-...
library(GEOmetadb) if(!file.exists('GEOmetadb.sqlite')) { getSQLiteFile() }
/download_GEOdb.R
no_license
cbrumbau/hnsc-analysis
R
false
false
80
r
library(GEOmetadb) if(!file.exists('GEOmetadb.sqlite')) { getSQLiteFile() }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/translate_data.r \name{calculate_cp_times} \alias{calculate_cp_times} \title{Calculate content progress times.} \usage{ calculate_cp_times(sc = state_changes) } \arguments{ \item{sc}{A data table: (user_id, tree_id, date, state, statediff). T...
/man/calculate_cp_times.Rd
no_license
johnchower/cctimes
R
false
true
566
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/translate_data.r \name{calculate_cp_times} \alias{calculate_cp_times} \title{Calculate content progress times.} \usage{ calculate_cp_times(sc = state_changes) } \arguments{ \item{sc}{A data table: (user_id, tree_id, date, state, statediff). T...
builder_new <- function( command = NULL, settings = NULL, cue = NULL, cache = NULL, value = NULL, metrics = NULL, store = NULL, subpipeline = NULL ) { force(command) force(settings) force(cue) force(cache) force(value) force(metrics) force(store) force(subpipeline) enclass(environment(...
/R/class_builder.R
permissive
liutiming/targets
R
false
false
9,747
r
builder_new <- function( command = NULL, settings = NULL, cue = NULL, cache = NULL, value = NULL, metrics = NULL, store = NULL, subpipeline = NULL ) { force(command) force(settings) force(cue) force(cache) force(value) force(metrics) force(store) force(subpipeline) enclass(environment(...
\name{rRandomPositionK} \alias{rRandomPositionK} \title{ Simulations of a point pattern according to the null hypothesis of random position defined for K } \description{ Simulations of a point pattern according to the null hypothesis of random position defined for \emph{K}. } \usage{ rRandomPositionK(X, Pr...
/man/rRandomPositionK.Rd
no_license
EricMarcon/dbmss
R
false
false
2,061
rd
\name{rRandomPositionK} \alias{rRandomPositionK} \title{ Simulations of a point pattern according to the null hypothesis of random position defined for K } \description{ Simulations of a point pattern according to the null hypothesis of random position defined for \emph{K}. } \usage{ rRandomPositionK(X, Pr...
# HPI price appreciation library(tidyverse) library(tidycensus) library(sf) options(tigris_use_cache = TRUE) options(tigris_class = "sf") #library(tmap) #library(RColorBrewer) library(purrr) library(magrittr) hpi <- read_csv("../../HPI_AT_BDL_tract.csv", col_types = cols( tract...
/scripts/appreciation.R
no_license
critgeog/hpi
R
false
false
2,459
r
# HPI price appreciation library(tidyverse) library(tidycensus) library(sf) options(tigris_use_cache = TRUE) options(tigris_class = "sf") #library(tmap) #library(RColorBrewer) library(purrr) library(magrittr) hpi <- read_csv("../../HPI_AT_BDL_tract.csv", col_types = cols( tract...
data1<-read.table("household_power_consumption.txt", header = TRUE, sep=";",na.strings="?") data1$Date <- as.Date(strptime(data1$Date,"%d/%m/%Y")) data <- subset (data1, Date >= " 2007-02-01" & Date <= "2007-02-02") data$Time <- format(data$Time, format = "%H:%M:%S", usetz = FALSE) data <- cbind(timestamp=format(as.PO...
/plot3.r
no_license
heyunpiupiu/ExData_Plotting1
R
false
false
856
r
data1<-read.table("household_power_consumption.txt", header = TRUE, sep=";",na.strings="?") data1$Date <- as.Date(strptime(data1$Date,"%d/%m/%Y")) data <- subset (data1, Date >= " 2007-02-01" & Date <= "2007-02-02") data$Time <- format(data$Time, format = "%H:%M:%S", usetz = FALSE) data <- cbind(timestamp=format(as.PO...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CIProp.R \name{CIProp} \alias{CIProp} \title{Confidence Intervals (for one population proportion)} \usage{ CIProp() } \value{ Graphical and numerical output } \description{ An app to investigate how many times a confidence interval for one po...
/man/CIProp.Rd
no_license
homerhanumat/tigerstats
R
false
true
954
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CIProp.R \name{CIProp} \alias{CIProp} \title{Confidence Intervals (for one population proportion)} \usage{ CIProp() } \value{ Graphical and numerical output } \description{ An app to investigate how many times a confidence interval for one po...
# GLM learning for road prediction # by Charley (Xingsheng) Wang # 5-fold cross validation # on April 5, 2016 # nb <- glm.nb(ind ~ offset(log(len)) + offset(log(adt + 0.01)) + ., data = train) # to optimize the learning rate rm(list=ls()) # valid or training valid_route_1 <- c(12) valid_route_2 <- c(5, 3...
/MPI/roadGLM2005.R
no_license
Charley-Wang/Clustering-Java-R
R
false
false
4,157
r
# GLM learning for road prediction # by Charley (Xingsheng) Wang # 5-fold cross validation # on April 5, 2016 # nb <- glm.nb(ind ~ offset(log(len)) + offset(log(adt + 0.01)) + ., data = train) # to optimize the learning rate rm(list=ls()) # valid or training valid_route_1 <- c(12) valid_route_2 <- c(5, 3...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/articles.R \name{get_articles_with_journal_data} \alias{get_articles_with_journal_data} \title{Get Articles With Journal Data} \usage{ get_articles_with_journal_data(article_data, journal_data) } \arguments{ \item{article_data}{DESCRIPTION.} ...
/man/get_articles_with_journal_data.Rd
no_license
vallenderlab/JournalAnalysis
R
false
true
456
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/articles.R \name{get_articles_with_journal_data} \alias{get_articles_with_journal_data} \title{Get Articles With Journal Data} \usage{ get_articles_with_journal_data(article_data, journal_data) } \arguments{ \item{article_data}{DESCRIPTION.} ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kernels.R \name{random.forest.partition.function.generator} \alias{random.forest.partition.function.generator} \title{Random forest kernel} \usage{ random.forest.partition.function.generator(rf) } \arguments{ \item{rf}{a randomForest object} ...
/man/random.forest.partition.function.generator.Rd
no_license
mattdneal/gaussianProcess
R
false
true
434
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/kernels.R \name{random.forest.partition.function.generator} \alias{random.forest.partition.function.generator} \title{Random forest kernel} \usage{ random.forest.partition.function.generator(rf) } \arguments{ \item{rf}{a randomForest object} ...
#Calculating Spec Scores from New Data cisource <- as.matrix(read.delim("RM2_Means_MatchRM3.csv", row.names=1)) head(cisource) #header <- c("APL", "APL", "APL","CO2","CO2", "CO2","COBL9", "COBL9","COBL9","COR", "COR","COR","E30", "E30","E30","GL2","GL2","GL2", "PET111", "PET111","PET111","S17", "S17","S17","S18", "S1...
/ICI_Analysis.R
no_license
cdrapek/Endodermis
R
false
false
1,316
r
#Calculating Spec Scores from New Data cisource <- as.matrix(read.delim("RM2_Means_MatchRM3.csv", row.names=1)) head(cisource) #header <- c("APL", "APL", "APL","CO2","CO2", "CO2","COBL9", "COBL9","COBL9","COR", "COR","COR","E30", "E30","E30","GL2","GL2","GL2", "PET111", "PET111","PET111","S17", "S17","S17","S18", "S1...
#' Compute coassignment probabilities #' #' Compute coassignment probabilities for each label in a reference grouping when compared to an alternative grouping of samples. #' #' @param ref A character vector or factor containing one set of groupings, considered to be the reference. #' @param alt A character vector or fa...
/R/coassignProb.R
no_license
piyushjo15/scran
R
false
false
3,785
r
#' Compute coassignment probabilities #' #' Compute coassignment probabilities for each label in a reference grouping when compared to an alternative grouping of samples. #' #' @param ref A character vector or factor containing one set of groupings, considered to be the reference. #' @param alt A character vector or fa...
##h050_meta_analysis_unpaired_reactome.r ##2016-01-04 fgarcia@cipf.es, antoi@alumni.uv.es ##Functional Meta-Analysis of transcriptomic studies ##Annotation: REACTOME # STEP 1. Preparing input for meta-analysis: LOR and SD matrix ################################################################# ## starting date () S...
/02_tcga/h050_meta_analysis_unpaired_reactome.r
no_license
fgardos-papers/funcmeta
R
false
false
32,224
r
##h050_meta_analysis_unpaired_reactome.r ##2016-01-04 fgarcia@cipf.es, antoi@alumni.uv.es ##Functional Meta-Analysis of transcriptomic studies ##Annotation: REACTOME # STEP 1. Preparing input for meta-analysis: LOR and SD matrix ################################################################# ## starting date () S...
#' @title Latitude and Longitude axes #' @description Add latitude and longitude axes to a map. #' #' @param n,lon.n,lat.n the number of tick marks desired. Can be specified separately for longitude (\code{lon.n}) #' or latitude (\code{lat.n}). See \code{\link{pretty}} for more details. #' #' @author Eric Archer \em...
/R/lat.lon.axes.R
no_license
cran/swfscMisc
R
false
false
1,355
r
#' @title Latitude and Longitude axes #' @description Add latitude and longitude axes to a map. #' #' @param n,lon.n,lat.n the number of tick marks desired. Can be specified separately for longitude (\code{lon.n}) #' or latitude (\code{lat.n}). See \code{\link{pretty}} for more details. #' #' @author Eric Archer \em...
## This script queries American Community Survey data for a user-defined metro area and ## produces a table with pre-selected vulnerability indicators. You can change the metro ## area to your own community to download the data and export it for use in the shiny app. ## This script assumes you will download regional da...
/process_data.R
permissive
KumarNarendra0619/vulnerability_weighting_map
R
false
false
5,984
r
## This script queries American Community Survey data for a user-defined metro area and ## produces a table with pre-selected vulnerability indicators. You can change the metro ## area to your own community to download the data and export it for use in the shiny app. ## This script assumes you will download regional da...
#Packages install.packages("XML") install.packages("RSelenium") install.packages("tidyverse") setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) #Startup docker library(RSelenium) library(XML) library(tidyverse) # scrape data----- base.url <- "http://eurovisionworld.com/eurovision/" #Target URL remDr <- r...
/Eurovision/esc_scrape.R
no_license
shaunabdilla/Data-Science-and-Statistics-Eurovision-Collusion-and-COVID19
R
false
false
8,375
r
#Packages install.packages("XML") install.packages("RSelenium") install.packages("tidyverse") setwd(dirname(rstudioapi::getActiveDocumentContext()$path)) #Startup docker library(RSelenium) library(XML) library(tidyverse) # scrape data----- base.url <- "http://eurovisionworld.com/eurovision/" #Target URL remDr <- r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init_general.R \name{init_general} \alias{init_general} \title{General and Species Parameters Input-File Maker for TROLL Forest Simulaor} \usage{ init_general(macros = "intra", path, input, overwrite = TRUE, nbcol = 400, nbrows = 400, nbite...
/man/init_general.Rd
no_license
Riodinino/TROLLmsc
R
false
true
1,810
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/init_general.R \name{init_general} \alias{init_general} \title{General and Species Parameters Input-File Maker for TROLL Forest Simulaor} \usage{ init_general(macros = "intra", path, input, overwrite = TRUE, nbcol = 400, nbrows = 400, nbite...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/documentation-dummies.R \name{linetype} \alias{linetype} \title{linetype} \usage{ linetype(linetype) } \arguments{ \item{linetype}{Character value. Valid options are \emph{'solid', 'twodash', 'longdash', 'dotted'} and \emph{'dotdash'}.} } \de...
/man/linetype.Rd
no_license
kueckelj/celltracer
R
false
true
342
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/documentation-dummies.R \name{linetype} \alias{linetype} \title{linetype} \usage{ linetype(linetype) } \arguments{ \item{linetype}{Character value. Valid options are \emph{'solid', 'twodash', 'longdash', 'dotted'} and \emph{'dotdash'}.} } \de...
rankall <- function(outcome, num = "best") { ## Read outcome data outcomeDf <- read.csv("outcome-of-care-measures.csv", colClasses = "character") # column - name # 11 - heart attack # 17 - heart failure # 23 - pneumonia outcomeDf[,11] <- suppr...
/Intro_R/ProgrammingAssignment3/rankall.R
no_license
airpaio/datasciencecoursera
R
false
false
2,260
r
rankall <- function(outcome, num = "best") { ## Read outcome data outcomeDf <- read.csv("outcome-of-care-measures.csv", colClasses = "character") # column - name # 11 - heart attack # 17 - heart failure # 23 - pneumonia outcomeDf[,11] <- suppr...
#' Simulation of Multivariate Linear Model Data #' @importFrom graphics plot text #' @importFrom utils write.csv #' @importFrom stats biplot #' @importFrom utils str #' @import shiny #' @return No return value, runs the shiny interface for simulation #' @export AppSimrel <- function() { ui <- miniUI::miniPage( s...
/R/gadget.R
no_license
cran/simrel
R
false
false
9,354
r
#' Simulation of Multivariate Linear Model Data #' @importFrom graphics plot text #' @importFrom utils write.csv #' @importFrom stats biplot #' @importFrom utils str #' @import shiny #' @return No return value, runs the shiny interface for simulation #' @export AppSimrel <- function() { ui <- miniUI::miniPage( s...
## Title: Exploratory Data Analysis - Week 1 Course Project ## Author: Meenakshi Parameshwaran ## Date: 08/01/16 ## Plot 3 ## ## Set the working directory setwd("~/GitHub/ExData_Plotting1") ## Get the Electric power consumption data from the UCI Irvine Machine Learning Repository myurl <- "https://d396qusza40orc.c...
/plot3.R
no_license
meenaparam/ExData_Plotting1
R
false
false
3,086
r
## Title: Exploratory Data Analysis - Week 1 Course Project ## Author: Meenakshi Parameshwaran ## Date: 08/01/16 ## Plot 3 ## ## Set the working directory setwd("~/GitHub/ExData_Plotting1") ## Get the Electric power consumption data from the UCI Irvine Machine Learning Repository myurl <- "https://d396qusza40orc.c...
r_cv_getfilelist <- function() { file_list <- NULL file_list<-list.files(path = "./src/GetData/Data/", pattern=".txt", full.names=T) data_list <- lapply(file_list, jsonlite::read_json) all_filenames <- file_list %>% tools::file_path_sans_ext() %>% sub(pa...
/src/GetData/r_cv_getfilelist.R
no_license
Lichza/Lichza-ANDC.Blog
R
false
false
560
r
r_cv_getfilelist <- function() { file_list <- NULL file_list<-list.files(path = "./src/GetData/Data/", pattern=".txt", full.names=T) data_list <- lapply(file_list, jsonlite::read_json) all_filenames <- file_list %>% tools::file_path_sans_ext() %>% sub(pa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/frauddetector_operations.R \name{frauddetector_update_model_version} \alias{frauddetector_update_model_version} \title{Updates a model version} \usage{ frauddetector_update_model_version( modelId, modelType, majorVersionNumber, extern...
/cran/paws.machine.learning/man/frauddetector_update_model_version.Rd
permissive
paws-r/paws
R
false
true
1,450
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/frauddetector_operations.R \name{frauddetector_update_model_version} \alias{frauddetector_update_model_version} \title{Updates a model version} \usage{ frauddetector_update_model_version( modelId, modelType, majorVersionNumber, extern...
#' @title Create interactive text grob #' #' @description #' The grob is based on [textGrob][grid::grid.text]. #' See the documentation for that function for more details. #' #' @param ... arguments passed to base function, #' plus any of the [interactive_parameters]. #' @return An interactive grob object. #' @inheritS...
/R/interactive_text_grob.R
no_license
davidgohel/ggiraph
R
false
false
1,731
r
#' @title Create interactive text grob #' #' @description #' The grob is based on [textGrob][grid::grid.text]. #' See the documentation for that function for more details. #' #' @param ... arguments passed to base function, #' plus any of the [interactive_parameters]. #' @return An interactive grob object. #' @inheritS...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spine_chart_utils.R \name{create_datatable} \alias{create_datatable} \title{Data table supporting information} \usage{ create_datatable(data, indicator, area_code, timeperiod, count, value, local_area_code, median_line_area_code, comparator...
/man/create_datatable.Rd
no_license
wyuill/fingertipscharts
R
false
true
1,767
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spine_chart_utils.R \name{create_datatable} \alias{create_datatable} \title{Data table supporting information} \usage{ create_datatable(data, indicator, area_code, timeperiod, count, value, local_area_code, median_line_area_code, comparator...
#' Set summary arguments for makeDataReport #' #' This function is a tool for easily specifying the \code{summaries} argument of #' \code{\link{makeDataReport}}. Note that all available summary function options can be inspected #' by calling \code{allSummaryFunctions()}. #' #' @param character A character vector of...
/R/setSummaries.R
no_license
kamanufred/dataMaid
R
false
false
3,702
r
#' Set summary arguments for makeDataReport #' #' This function is a tool for easily specifying the \code{summaries} argument of #' \code{\link{makeDataReport}}. Note that all available summary function options can be inspected #' by calling \code{allSummaryFunctions()}. #' #' @param character A character vector of...
#' Determine whether a specified edge is present #' #' From a graph object of class `dgr_graph`, determine whether an edge (defined #' by a pair of node IDs or node label values) is present. #' #' @inheritParams render_graph #' @param edge An edge ID value to test for presence in the graph. If a single, #' numeric va...
/R/is_edge_present.R
permissive
vnijs/DiagrammeR
R
false
false
6,083
r
#' Determine whether a specified edge is present #' #' From a graph object of class `dgr_graph`, determine whether an edge (defined #' by a pair of node IDs or node label values) is present. #' #' @inheritParams render_graph #' @param edge An edge ID value to test for presence in the graph. If a single, #' numeric va...
# # This is the server logic of a Shiny web application to display my glucose levels. You can run the # application by clicking 'Run App' above. # # To get started, you will need to upload a few CSV/Excel files. #: source package load script source("load_R_packages.R") #: source GlobalEnv variables and functions scrip...
/librelink/server.R
no_license
SofianeHamlaoui/cgm
R
false
false
14,603
r
# # This is the server logic of a Shiny web application to display my glucose levels. You can run the # application by clicking 'Run App' above. # # To get started, you will need to upload a few CSV/Excel files. #: source package load script source("load_R_packages.R") #: source GlobalEnv variables and functions scrip...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pkg_ref_cache_bug_reports_host.R \name{pkg_ref_cache.bug_reports_host} \alias{pkg_ref_cache.bug_reports_host} \title{Get the host name of a BugReports url} \usage{ pkg_ref_cache.bug_reports_host(x, ...) } \arguments{ \item{x}{a package refere...
/man/pkg_ref_cache.bug_reports_host.Rd
permissive
LucyNjoki/riskmetric
R
false
true
1,611
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pkg_ref_cache_bug_reports_host.R \name{pkg_ref_cache.bug_reports_host} \alias{pkg_ref_cache.bug_reports_host} \title{Get the host name of a BugReports url} \usage{ pkg_ref_cache.bug_reports_host(x, ...) } \arguments{ \item{x}{a package refere...
# ui.R library(shinythemes) shinyUI(fluidPage(theme = shinytheme("united"), tags$head( tags$link( rel = "stylesheet", type = "text/css", href = "custom.css" ), tags$title( "openFDA Enforcement Data" ) ), titlePanel("openFDA Enforcement Data"), sidebarLayout(position...
/ui.R
no_license
yli3/dataprod-app
R
false
false
4,003
r
# ui.R library(shinythemes) shinyUI(fluidPage(theme = shinytheme("united"), tags$head( tags$link( rel = "stylesheet", type = "text/css", href = "custom.css" ), tags$title( "openFDA Enforcement Data" ) ), titlePanel("openFDA Enforcement Data"), sidebarLayout(position...
numPerPatch7568 <- c(2506,2494)
/NatureEE-data-archive/Run202971/JAFSdata/JAFSnumPerPatch7568.R
no_license
flaxmans/NatureEE2017
R
false
false
32
r
numPerPatch7568 <- c(2506,2494)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_data_preparation.R \name{create_grid} \alias{create_grid} \title{Creates the grid used for predicting yhat.} \usage{ create_grid(neural_net, predictor) } \description{ Creates the grid used for predicting yhat. } \keyword{internal}
/man/create_grid.Rd
permissive
AlexAfanasev/NeuralNetworkVisualization
R
false
true
319
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_data_preparation.R \name{create_grid} \alias{create_grid} \title{Creates the grid used for predicting yhat.} \usage{ create_grid(neural_net, predictor) } \description{ Creates the grid used for predicting yhat. } \keyword{internal}
library(knotR) filename <- "9_47.svg" a <- reader(filename) #knotplot2(a,node=TRUE) Mver947 <- matrix(c( 27,1, 7,21, 6,22, 5,23, 8,20, 19,9, 18,10, 11,17, 26,2, 12,16, 25,3, 4,24, 13,15 ), byrow=TRUE,ncol=2) sym947 <- symmetry_object( a, ...
/inst/9_47_worker.R
no_license
cran/knotR
R
false
false
951
r
library(knotR) filename <- "9_47.svg" a <- reader(filename) #knotplot2(a,node=TRUE) Mver947 <- matrix(c( 27,1, 7,21, 6,22, 5,23, 8,20, 19,9, 18,10, 11,17, 26,2, 12,16, 25,3, 4,24, 13,15 ), byrow=TRUE,ncol=2) sym947 <- symmetry_object( a, ...
\name{metaData} \alias{metaData} \title{Retrieve metadata from a Quandl series} \usage{ metaData(x) } \arguments{ \item{x}{A Quandl time series object with attached meta data.} } \value{ Returns a list of meta data about the series. } \description{ Retrieve metadata from a Quandl series } \examples{ \dontrun{...
/man/metaData.Rd
permissive
walkingparadox/R-package
R
false
false
374
rd
\name{metaData} \alias{metaData} \title{Retrieve metadata from a Quandl series} \usage{ metaData(x) } \arguments{ \item{x}{A Quandl time series object with attached meta data.} } \value{ Returns a list of meta data about the series. } \description{ Retrieve metadata from a Quandl series } \examples{ \dontrun{...
#reading data NEI <- readRDS("data/summarySCC_PM25.rds") SCC <- readRDS("data/Source_Classification_Code.rds") #receiving data for plotting ct5 <- xtabs(Emissions ~ year, data = NEI[NEI$type == "ON-ROAD" & NEI$fips == "24510",]) data <- round(ct5,1) data #plotting png(file = "plot5.png", width = 800, height = 600) p...
/plot5.R
no_license
ialyabiev/ExData_PA2
R
false
false
710
r
#reading data NEI <- readRDS("data/summarySCC_PM25.rds") SCC <- readRDS("data/Source_Classification_Code.rds") #receiving data for plotting ct5 <- xtabs(Emissions ~ year, data = NEI[NEI$type == "ON-ROAD" & NEI$fips == "24510",]) data <- round(ct5,1) data #plotting png(file = "plot5.png", width = 800, height = 600) p...
#' @examples #' \dontrun{ #' res <- dfp_performBaseRateAction(request_data) #' }
/examples/examples-dfp_performBaseRateAction.R
no_license
JhuangSiteAnalytics/rdfp
R
false
false
81
r
#' @examples #' \dontrun{ #' res <- dfp_performBaseRateAction(request_data) #' }
#' Deep Analysis #' #' This script is designed analyze the set of runs <l> for aspects of the 2 layer ecosystem. #' @param l A list of the data sets to analyze. For each plot, the data saved in the files specified by l will be loaded and plotted. #' @param dir The prefered output directory for the generated images. Inc...
/R/Analysis.Deep.R
no_license
tbrycekelly/CCELIM
R
false
false
3,581
r
#' Deep Analysis #' #' This script is designed analyze the set of runs <l> for aspects of the 2 layer ecosystem. #' @param l A list of the data sets to analyze. For each plot, the data saved in the files specified by l will be loaded and plotted. #' @param dir The prefered output directory for the generated images. Inc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{implementation} \alias{implementation} \title{Keras implementation} \usage{ implementation() } \value{ Reference to the Python module used for the implementation of Keras. } \description{ Obtain a reference to the Python module ...
/man/implementation.Rd
no_license
victory2015/keras
R
false
true
756
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{implementation} \alias{implementation} \title{Keras implementation} \usage{ implementation() } \value{ Reference to the Python module used for the implementation of Keras. } \description{ Obtain a reference to the Python module ...
##--- lu_aw: proportion of land uses for the buffer polygon ## st_buf: buffer polygon ## st_poly: landuse polygon lu_aw <- function(st_buf, st_poly){ Sys.time() buf.ta <- st_buf %>% mutate(TArea=st_area(geometry)) pnts.aw <- st_intersection(st_buf, st_poly) pnca <- pnts.aw %>% mutate(ar...
/lu_aw.R
no_license
sigmafelix/scoR
R
false
false
714
r
##--- lu_aw: proportion of land uses for the buffer polygon ## st_buf: buffer polygon ## st_poly: landuse polygon lu_aw <- function(st_buf, st_poly){ Sys.time() buf.ta <- st_buf %>% mutate(TArea=st_area(geometry)) pnts.aw <- st_intersection(st_buf, st_poly) pnca <- pnts.aw %>% mutate(ar...
## File Name: gdina_calc_ic.R ## File Version: 0.06 gdina_calc_ic <- function( delta, delta.designmatrix, delta.fixed, G, ncolZ, K, HOGDINA, item.patt.freq, zeroprob.skillclasses, loglike, numb_regular_pars ) { bb <- 0 Nipar <- length( unlist(delta) ) if ( ! is.null( delta.designmatrix ) ){...
/CDM/R/gdina_calc_ic.R
no_license
akhikolla/InformationHouse
R
false
false
1,165
r
## File Name: gdina_calc_ic.R ## File Version: 0.06 gdina_calc_ic <- function( delta, delta.designmatrix, delta.fixed, G, ncolZ, K, HOGDINA, item.patt.freq, zeroprob.skillclasses, loglike, numb_regular_pars ) { bb <- 0 Nipar <- length( unlist(delta) ) if ( ! is.null( delta.designmatrix ) ){...
#========================================================================================= #使用分面将数据分割绘制到子图中 #========================================================================================= #使用facet_grid()或facet_wrap()函数,并指定根据哪个变量来分割数据。 #使用facet_grid()函数时, 可以指定一个变量作为纵向子面板分割的依据, #并指定另外一个变量作为横向子面板分割的依据 #基本图形 p...
/codes/chapter11.R
no_license
xiaowei3223/Graphic_data_with_R
R
false
false
3,105
r
#========================================================================================= #使用分面将数据分割绘制到子图中 #========================================================================================= #使用facet_grid()或facet_wrap()函数,并指定根据哪个变量来分割数据。 #使用facet_grid()函数时, 可以指定一个变量作为纵向子面板分割的依据, #并指定另外一个变量作为横向子面板分割的依据 #基本图形 p...
# installing dplyr package install.packages("dplyr") # loading dplyr library library(dplyr) # installing lubridate package install.packages("lubridate") # loading lubridate library library(lubridate) # setting working directory setwd("C:/Users/RanaA/Desktop/Coursera/exdata_data_household_power_consumpt...
/plot3.R
no_license
RanaAbhay/ExData_Plotting1
R
false
false
1,851
r
# installing dplyr package install.packages("dplyr") # loading dplyr library library(dplyr) # installing lubridate package install.packages("lubridate") # loading lubridate library library(lubridate) # setting working directory setwd("C:/Users/RanaA/Desktop/Coursera/exdata_data_household_power_consumpt...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/net.small.world.R \name{net.small.world} \alias{net.small.world} \title{Watts-Strogatz Small-world Network} \usage{ net.small.world(n, k, re) } \arguments{ \item{n}{The number of the nodes in the network (or lattice).} \item{k}{Number of edg...
/man/net.small.world.Rd
no_license
ChrissCod/bignetwoRk
R
false
true
972
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/net.small.world.R \name{net.small.world} \alias{net.small.world} \title{Watts-Strogatz Small-world Network} \usage{ net.small.world(n, k, re) } \arguments{ \item{n}{The number of the nodes in the network (or lattice).} \item{k}{Number of edg...