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
.export.rio_nc <- function(file, x, table, ...) { return(file) } .export.rio_h5 <- function(file, x, table, ...) { return(file) }
/R/export.R
no_license
leeper/rio.hdf
R
false
false
139
r
.export.rio_nc <- function(file, x, table, ...) { return(file) } .export.rio_h5 <- function(file, x, table, ...) { return(file) }
library(plyr) #Read the rds data for PM2.5 Emissions Data NEI <- readRDS("summarySCC_PM25.rds") #Read the rds data for Source Classification Code Table SCC <- readRDS("Source_Classification_Code.rds") Baltimore <- NEI[NEI$fips == "24510", ] totalPM25ByYear <- tapply(Baltimore$Emissions, Baltimore$year, sum,na.rm=TRUE) ...
/ExploratoryAnalysis/exdata_data_NEI_data/Plot2.R
no_license
meleswujira/Coursera
R
false
false
853
r
library(plyr) #Read the rds data for PM2.5 Emissions Data NEI <- readRDS("summarySCC_PM25.rds") #Read the rds data for Source Classification Code Table SCC <- readRDS("Source_Classification_Code.rds") Baltimore <- NEI[NEI$fips == "24510", ] totalPM25ByYear <- tapply(Baltimore$Emissions, Baltimore$year, sum,na.rm=TRUE) ...
testlist <- list(LpMat = structure(0, .Dim = c(1L, 1L)), SurvMat = structure(0, .Dim = c(1L, 1L)), WtVec = numeric(0))
/glmBfp/inst/testfiles/predBMAcpp/libFuzzer_predBMAcpp/predBMAcpp_valgrind_files/1610050777-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
119
r
testlist <- list(LpMat = structure(0, .Dim = c(1L, 1L)), SurvMat = structure(0, .Dim = c(1L, 1L)), WtVec = numeric(0))
# setwd("C:/Users/marguerite/Documents/Rclass") # cars <- read.csv( "cars.csv") # this is how you would read it if it were in your working directory cars # built in dataset - comes with R - take a look at it speed <- cars$speed # save speed as a vector dist <- cars$dist plot( speed, dist, cex=1) # plot x,y s...
/cars_script_stub.R
no_license
Rbootcamp-UHM/hw
R
false
false
2,089
r
# setwd("C:/Users/marguerite/Documents/Rclass") # cars <- read.csv( "cars.csv") # this is how you would read it if it were in your working directory cars # built in dataset - comes with R - take a look at it speed <- cars$speed # save speed as a vector dist <- cars$dist plot( speed, dist, cex=1) # plot x,y s...
# ## Fitted chain binomial - replicating Blagborough et al 2013 Nat Comms, 5 mouse-mosquito rounds # data.mouse=read.table("C:\\Users\\Ellie\\Documents\\Data Malaria\\hand over data and scripts\\5g chain binomial effect size\\atv32_mouse_final_data.txt",header=TRUE) data.mosqu=read.table("C:\\Users\\Ellie\\Documents\\...
/5g_chain_binomial_effect_size_different biting ratios.r
no_license
EllieSherrardSmith/Malaria2
R
false
false
8,657
r
# ## Fitted chain binomial - replicating Blagborough et al 2013 Nat Comms, 5 mouse-mosquito rounds # data.mouse=read.table("C:\\Users\\Ellie\\Documents\\Data Malaria\\hand over data and scripts\\5g chain binomial effect size\\atv32_mouse_final_data.txt",header=TRUE) data.mosqu=read.table("C:\\Users\\Ellie\\Documents\\...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/infladj.single.R \name{infladj.single} \alias{infladj.single} \title{Returns the inflation adjusted future value of an single payment (fv).If fv is given as ts the deflated value of the singele paymetn is given for each year.} \usage{ i...
/man/infladj.single.Rd
no_license
spsigurdsson/UNPIE
R
false
true
910
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/infladj.single.R \name{infladj.single} \alias{infladj.single} \title{Returns the inflation adjusted future value of an single payment (fv).If fv is given as ts the deflated value of the singele paymetn is given for each year.} \usage{ i...
testlist <- list(metric = 0L, vec = NULL, vec = NULL, w_vec = structure(0, .Dim = c(1L, 1L)), y_vec = structure(c(1.76559344202037e-284, 8.53204880007174e-305, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(UniIsoRegression:::r...
/UniIsoRegression/inst/testfiles/reg_2d/libFuzzer_reg_2d/reg_2d_valgrind_files/1612737106-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
347
r
testlist <- list(metric = 0L, vec = NULL, vec = NULL, w_vec = structure(0, .Dim = c(1L, 1L)), y_vec = structure(c(1.76559344202037e-284, 8.53204880007174e-305, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(UniIsoRegression:::r...
## lazyraster approach, but better done with slippymath+raster library(lazyraster) u <- "WMTS:https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSTopo,tilematrixset=default028mm,zoom_level={zoom_level}" centre <- c(-9004415, 3806965) radius <- 4000 x <- ...
/inst/wmts/USGS-wmts.R
no_license
hypertidy/lazyraster
R
false
false
1,799
r
## lazyraster approach, but better done with slippymath+raster library(lazyraster) u <- "WMTS:https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=USGSTopo,tilematrixset=default028mm,zoom_level={zoom_level}" centre <- c(-9004415, 3806965) radius <- 4000 x <- ...
#' Determine thickness of horizons (continuous from surface) matching a pattern #' #' @description Find the thickness of horizon designations, or any other character patterns, that are continuous from the soil surface (depth = 0 or shallowest depth in profile). #' #' @details The horizon designation to match is specifi...
/R/getSurfaceHorizonDepth.R
no_license
Memo1986/aqp
R
false
false
9,330
r
#' Determine thickness of horizons (continuous from surface) matching a pattern #' #' @description Find the thickness of horizon designations, or any other character patterns, that are continuous from the soil surface (depth = 0 or shallowest depth in profile). #' #' @details The horizon designation to match is specifi...
# packages library(semTools) library(mice) library(Amelia) library(OpenMx) library(foreach) library(doParallel) library(doRNG) # Setting Approach, Number Of Replications and Cores ----------------------------------------- # approach to use approach <- "JOC_FIML" # approach <- "FCS_WLSMV" # approach <- "...
/Main_Script.R
no_license
Aaron0696/Integrated-Thesis
R
false
false
8,557
r
# packages library(semTools) library(mice) library(Amelia) library(OpenMx) library(foreach) library(doParallel) library(doRNG) # Setting Approach, Number Of Replications and Cores ----------------------------------------- # approach to use approach <- "JOC_FIML" # approach <- "FCS_WLSMV" # approach <- "...
# 01. Make maps for each pair ------------------------------------------------- ## Note: maps are now thirds Q = top third # mapA <- #Qs 1 # mapB <- #Qs 2 # mapC <- #Qs 3 # input/ output ----------------------------------------------------------- ## input: ## Base only if we can to map prop Foreigners # shefBase_...
/01 get map data for comparisons.R
no_license
DanOlner/wardenProject2021
R
false
false
3,227
r
# 01. Make maps for each pair ------------------------------------------------- ## Note: maps are now thirds Q = top third # mapA <- #Qs 1 # mapB <- #Qs 2 # mapC <- #Qs 3 # input/ output ----------------------------------------------------------- ## input: ## Base only if we can to map prop Foreigners # shefBase_...
#' @title A low-level function for the generic optimization step in #' estimating dynamic Quanilte-optimal treatment regime for censored data #' #' @description This function supports wrapper functions for two stage Quantile-optimal #' treatment regime estimation, namely #' \code{IPWE_Qopt_DTR_IndCen}. #' @param dat...
/R/Gene_Quantile_CenIPWE_DTR.R
no_license
cran/QTOCen
R
false
false
9,181
r
#' @title A low-level function for the generic optimization step in #' estimating dynamic Quanilte-optimal treatment regime for censored data #' #' @description This function supports wrapper functions for two stage Quantile-optimal #' treatment regime estimation, namely #' \code{IPWE_Qopt_DTR_IndCen}. #' @param dat...
rm(list = ls()) library(ncdf4) library(purrr) # OP.dir <- "~/R/LidarED/runs/growth_storage_resp/out/reference_noconfig/" OP.dir <- "~/R/LidarED/runs/growth_storage_resp/out/Hmean_CA_AGB_Bl/" datum.file <- file.path(OP.dir,"analysis.RData") load(datum.file) year_select <- 2008 ######################################...
/scripts/Carbon_Cycle.R
no_license
femeunier/LidarED
R
false
false
6,140
r
rm(list = ls()) library(ncdf4) library(purrr) # OP.dir <- "~/R/LidarED/runs/growth_storage_resp/out/reference_noconfig/" OP.dir <- "~/R/LidarED/runs/growth_storage_resp/out/Hmean_CA_AGB_Bl/" datum.file <- file.path(OP.dir,"analysis.RData") load(datum.file) year_select <- 2008 ######################################...
library(dplyr) library(ggplot2) library(scales) library(grid) library(gridExtra) # Read in statistics load('./data/stats/mrdVrichness_stats.Rdata') load('./data/stats/tempVmrd_stats.Rdata') load('./data/stats/tempVrichness_stats.Rdata') load('./data/stats/carmrdVcarrichness_stats.Rdata') load('./data/stats/tempVcarmrd...
/scripts/Final_graphic.R
no_license
mcglinnlab/shark-ray-div
R
false
false
6,977
r
library(dplyr) library(ggplot2) library(scales) library(grid) library(gridExtra) # Read in statistics load('./data/stats/mrdVrichness_stats.Rdata') load('./data/stats/tempVmrd_stats.Rdata') load('./data/stats/tempVrichness_stats.Rdata') load('./data/stats/carmrdVcarrichness_stats.Rdata') load('./data/stats/tempVcarmrd...
#' Plot absolute differencs against expression levels #' #' Plot absolute differencs against expression levels #' and mark the gene with a color at a given cutoff of fold-change #' #' @title Plot absolute differencs #' @param object a ABSDataSet #' @param fcut the cutoff of fold-change #' @param cols the colors...
/R/Plotfuns.R
no_license
yang099/ABSSeq
R
false
false
1,419
r
#' Plot absolute differencs against expression levels #' #' Plot absolute differencs against expression levels #' and mark the gene with a color at a given cutoff of fold-change #' #' @title Plot absolute differencs #' @param object a ABSDataSet #' @param fcut the cutoff of fold-change #' @param cols the colors...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/createReport.R \name{createReport} \alias{createReport} \title{createReport} \usage{ createReport( hostName, outputDirectory, organism = "hsapiens", projectName, enrichMethod, geneSet, geneSetDes, geneSetDag, geneSetNet, i...
/man/createReport.Rd
no_license
smartgamer/WebGestaltR
R
false
true
992
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/createReport.R \name{createReport} \alias{createReport} \title{createReport} \usage{ createReport( hostName, outputDirectory, organism = "hsapiens", projectName, enrichMethod, geneSet, geneSetDes, geneSetDag, geneSetNet, i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimation.R \name{est.fArch} \alias{est.fArch} \title{Estimate Functional ARCH Model} \usage{ est.fArch(fdata, basis, q = 1) } \arguments{ \item{fdata}{The functional data object with N paths.} \item{basis}{The M-dimensional basis functions...
/man/est.fArch.Rd
no_license
yzhao7322/CurVol
R
false
true
2,094
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estimation.R \name{est.fArch} \alias{est.fArch} \title{Estimate Functional ARCH Model} \usage{ est.fArch(fdata, basis, q = 1) } \arguments{ \item{fdata}{The functional data object with N paths.} \item{basis}{The M-dimensional basis functions...
#' @title configure_caplter_project #' #' @description configure_caplter_project establishes an EML::project with the #' elements: (1) personnel (CAP PI and Co-PIs), (2) project abstract (project #' overview from CAP IV proposal), and (3) funding (grant numbers for CAP I, #' II, III, and IV). #' #' @details confi...
/R/configure_caplter_project.R
no_license
yvanlebras/capeml
R
false
false
5,338
r
#' @title configure_caplter_project #' #' @description configure_caplter_project establishes an EML::project with the #' elements: (1) personnel (CAP PI and Co-PIs), (2) project abstract (project #' overview from CAP IV proposal), and (3) funding (grant numbers for CAP I, #' II, III, and IV). #' #' @details confi...
testlist <- list(doy = c(1.34665080146398e-20, -8.51843455819607e+261, -9.41222010227515e+144, 5.66389077840996e+77, 8.94210540636618e-313, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(8.80011477617474e+223, -2.08465040404817e+101, -3.32306789685834e+36, -6.3219126011292e+37, -3.03750953076269e+282, 4.5...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615831136-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
765
r
testlist <- list(doy = c(1.34665080146398e-20, -8.51843455819607e+261, -9.41222010227515e+144, 5.66389077840996e+77, 8.94210540636618e-313, 0, 0, 0, 0, 0, 0, 0, 0), latitude = numeric(0), temp = c(8.80011477617474e+223, -2.08465040404817e+101, -3.32306789685834e+36, -6.3219126011292e+37, -3.03750953076269e+282, 4.5...
library(sdnet) ### Name: cnDiscretize ### Title: Data Categorization ### Aliases: cnDiscretize ### ** Examples ps <- t(sapply(1:10, function(i) rnorm(20, i, 0.1))) dps1 <- cnDiscretize(data=ps, numcats=3, mode="hard", marginal="quantile") hist(dps1[1,])
/data/genthat_extracted_code/sdnet/examples/cnDiscretize.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
267
r
library(sdnet) ### Name: cnDiscretize ### Title: Data Categorization ### Aliases: cnDiscretize ### ** Examples ps <- t(sapply(1:10, function(i) rnorm(20, i, 0.1))) dps1 <- cnDiscretize(data=ps, numcats=3, mode="hard", marginal="quantile") hist(dps1[1,])
extractor <- function(df = working_df, enddt = NULL, x ){ testdata <- df[which(df[["date"]] > enddt), ] testdata <- testdata[which(testdata[["y"]] != x), ] testdata <- testdata %>% dplyr::select(grp,y,date) } testdata_setup <- function(testdata, targetval,direct, rl, fr) { testdata[["flag"]] <- sign(te...
/R/utilities.R
no_license
chrismainey/runcharter
R
false
false
3,533
r
extractor <- function(df = working_df, enddt = NULL, x ){ testdata <- df[which(df[["date"]] > enddt), ] testdata <- testdata[which(testdata[["y"]] != x), ] testdata <- testdata %>% dplyr::select(grp,y,date) } testdata_setup <- function(testdata, targetval,direct, rl, fr) { testdata[["flag"]] <- sign(te...
## calculate_scores.R ## calculate_scores.R ensures all files are properly configured and calculates OHI scores. ## - configure_toolbox.r ensures your files are properly configured. It is a script in your repository. ## - CalculateAll() calculates OHI scores. It is a function in the `ohicore` R package ## (thi...
/region2017/calculate_scores.r
no_license
OHI-Science/mhi
R
false
false
1,341
r
## calculate_scores.R ## calculate_scores.R ensures all files are properly configured and calculates OHI scores. ## - configure_toolbox.r ensures your files are properly configured. It is a script in your repository. ## - CalculateAll() calculates OHI scores. It is a function in the `ohicore` R package ## (thi...
#' Default configuration #' # Figure out a better mechanism for specifying defaults slidifyDefaults <- function(){list( url = list(assets = "assets"), framework = 'io2012', theme = "", highlighter = 'highlight.js', hitheme = 'tomorrow', copy_libraries = TRUE, mode = 'standalone',...
/R/config.R
no_license
junjiemao/slidify
R
false
false
1,418
r
#' Default configuration #' # Figure out a better mechanism for specifying defaults slidifyDefaults <- function(){list( url = list(assets = "assets"), framework = 'io2012', theme = "", highlighter = 'highlight.js', hitheme = 'tomorrow', copy_libraries = TRUE, mode = 'standalone',...
kbic <- function(x){ ### ### Input: a list of kmeans objects for k=1:K. ### Output: a vector of BIC_k ### ### I'm pretty sure there is a better ### way to code this ... K <- length(x) bic <- foreach(i = 1:K, .combine=c)%do%{ kvec <- x[[i]] k <- nrow(kvec$centers) d <- ncol(kvec$centers) n...
/Code/bic.r
permissive
neurodata/synaptome-stats
R
false
false
829
r
kbic <- function(x){ ### ### Input: a list of kmeans objects for k=1:K. ### Output: a vector of BIC_k ### ### I'm pretty sure there is a better ### way to code this ... K <- length(x) bic <- foreach(i = 1:K, .combine=c)%do%{ kvec <- x[[i]] k <- nrow(kvec$centers) d <- ncol(kvec$centers) n...
library(ggplot2); theme_set(theme_bw()) library(tidyr) library(dplyr) library(gridExtra) library(deSolve) library(directlabels) source("../R/model.R") source("../R/run.R") scale_colour_discrete <- function(...,palette="Dark2") scale_colour_brewer(...,palette=palette) scale_fill_discrete <- function(...,palette="Dark2"...
/figure/example.R
no_license
parksw3/observation
R
false
false
2,608
r
library(ggplot2); theme_set(theme_bw()) library(tidyr) library(dplyr) library(gridExtra) library(deSolve) library(directlabels) source("../R/model.R") source("../R/run.R") scale_colour_discrete <- function(...,palette="Dark2") scale_colour_brewer(...,palette=palette) scale_fill_discrete <- function(...,palette="Dark2"...
######## Deng et al CorShrink on dropouts ##################### library(devtools) #install_github('kkdey/singleCellRNASeqMouseDeng2014') library(singleCellRNASeqMouseDeng2014) deng.counts <- Biobase::exprs(Deng2014MouseESC) deng.meta_data <- Biobase::pData(Deng2014MouseESC) deng.gene_names <- rownames(deng.co...
/code/deng_corshrink_dropout.R
no_license
kkdey/CorShrink-pages
R
false
false
4,178
r
######## Deng et al CorShrink on dropouts ##################### library(devtools) #install_github('kkdey/singleCellRNASeqMouseDeng2014') library(singleCellRNASeqMouseDeng2014) deng.counts <- Biobase::exprs(Deng2014MouseESC) deng.meta_data <- Biobase::pData(Deng2014MouseESC) deng.gene_names <- rownames(deng.co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EM.R \name{theta_EM} \alias{theta_EM} \title{Update theta to be the maximum-a-posteriori value using Expectation Maximisation.} \usage{ theta_EM(X, W, mu, sigSq, K, maxit = 500, bftol = 1e-05, sparse = FALSE, b = NULL) } \description{ Updat...
/man/theta_EM.Rd
permissive
seanigami/stpca
R
false
true
399
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EM.R \name{theta_EM} \alias{theta_EM} \title{Update theta to be the maximum-a-posteriori value using Expectation Maximisation.} \usage{ theta_EM(X, W, mu, sigSq, K, maxit = 500, bftol = 1e-05, sparse = FALSE, b = NULL) } \description{ Updat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fc_read_teams.R \name{fc_read_teams} \alias{fc_read_teams} \title{Read Wyscout soccer teams data} \usage{ fc_read_teams(file, tidy_tibble = TRUE) } \arguments{ \item{file}{File path to \code{teams} JSON data.} \item{tidy_tibble}{Logical valu...
/man/fc_read_teams.Rd
no_license
shawnsanto/scoutr
R
false
true
1,538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fc_read_teams.R \name{fc_read_teams} \alias{fc_read_teams} \title{Read Wyscout soccer teams data} \usage{ fc_read_teams(file, tidy_tibble = TRUE) } \arguments{ \item{file}{File path to \code{teams} JSON data.} \item{tidy_tibble}{Logical valu...
library(Rfast) library(rpql) setwd('.../crejm-code') # Load full training data------------------------------- load(".../crejm-code/out.RData") y<-out$y.train evec<-out$e.train x<-cbind(rep(1,dim(out$x.train)[1]),out$x.train) z<-cbind(rep(1,dim(out$z.train)[1]),out$z.train) gg<-out$g.train guild_mem<-o...
/rpql_prediction.R
permissive
trambakbanerjee/crejm-code
R
false
false
5,383
r
library(Rfast) library(rpql) setwd('.../crejm-code') # Load full training data------------------------------- load(".../crejm-code/out.RData") y<-out$y.train evec<-out$e.train x<-cbind(rep(1,dim(out$x.train)[1]),out$x.train) z<-cbind(rep(1,dim(out$z.train)[1]),out$z.train) gg<-out$g.train guild_mem<-o...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/wiod.R \docType{data} \name{final05} \alias{final05} \title{WIOD 2005 final} \description{ WIOD 2005 final demand data }
/man/final05.Rd
no_license
cran/wiod
R
false
false
218
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/wiod.R \docType{data} \name{final05} \alias{final05} \title{WIOD 2005 final} \description{ WIOD 2005 final demand data }
calculateCellConvexityFeatures = function(feat.object, control, ...) { assertClass(feat.object, "FeatureObject") if (!feat.object$allows.cellmapping) stop ("This feature object does not support cell mapping. You first need to define the number of cells per dimension before computing these features.") if (miss...
/R/feature_cm_convexity.R
no_license
belkhir-nacim/flacco
R
false
false
1,938
r
calculateCellConvexityFeatures = function(feat.object, control, ...) { assertClass(feat.object, "FeatureObject") if (!feat.object$allows.cellmapping) stop ("This feature object does not support cell mapping. You first need to define the number of cells per dimension before computing these features.") if (miss...
# ____________________________________________________________________________________________ # Calculate functional diversity metrics # following Villeger et al. 2008 # - functional richness: functional space filled (most extreme points of convex hull) # - functional evenness: evenness/regularity of species abundanc...
/R/Reanalysis_salinization/04_FD.R
no_license
KunzstLD/Trait-aggregation
R
false
false
3,558
r
# ____________________________________________________________________________________________ # Calculate functional diversity metrics # following Villeger et al. 2008 # - functional richness: functional space filled (most extreme points of convex hull) # - functional evenness: evenness/regularity of species abundanc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ISOBaseReal.R \docType{class} \name{ISOBaseReal} \alias{ISOBaseReal} \title{ISOBaseReal} \format{\code{\link{R6Class}} object.} \usage{ ISOBaseReal } \value{ Object of \code{\link{R6Class}} for modelling an ISO Real } \description{ ISOBaseRea...
/man/ISOBaseReal.Rd
no_license
65MO/geometa
R
false
true
736
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ISOBaseReal.R \docType{class} \name{ISOBaseReal} \alias{ISOBaseReal} \title{ISOBaseReal} \format{\code{\link{R6Class}} object.} \usage{ ISOBaseReal } \value{ Object of \code{\link{R6Class}} for modelling an ISO Real } \description{ ISOBaseRea...
#' Pin versions #' #' @description #' * `pin_versions()` lists available versions a pin. #' * `pin_versions_prune()` deletes old versions. #' * `pin_version_delete()` deletes a single version. #' #' See `vignette("versioning)"` for more details about versioning pins. #' #' @param board,name A pair of board and pin name...
/R/pin_versions.R
permissive
jimr1603/pins
R
false
false
5,446
r
#' Pin versions #' #' @description #' * `pin_versions()` lists available versions a pin. #' * `pin_versions_prune()` deletes old versions. #' * `pin_version_delete()` deletes a single version. #' #' See `vignette("versioning)"` for more details about versioning pins. #' #' @param board,name A pair of board and pin name...
# AnalysisAnnualCycle.R # # This function plots the monthly averages of a variable, # for both modelled and observed. # For this to be successful, the dataset **MUST START AT JAN 1** # AND be a integer number of years in length. # # Gab Abramowitz CCRC, UNSW 2014 (palshelp at gmail dot com) # AnnualCycle = function(ob...
/pals/R/1DAnnualCycle.R
no_license
edenduthie/palsR
R
false
false
3,985
r
# AnalysisAnnualCycle.R # # This function plots the monthly averages of a variable, # for both modelled and observed. # For this to be successful, the dataset **MUST START AT JAN 1** # AND be a integer number of years in length. # # Gab Abramowitz CCRC, UNSW 2014 (palshelp at gmail dot com) # AnnualCycle = function(ob...
# mfNMLmatch function -------------------------------------------------- # This function will take two data.frames, X and Y, and output a data.frame # listing which mass features match which in the other dataset. Data.frames # must include the following columns: # 1. MassFeature # 2. mz # 3. RT # ...
/mfNMLmatch_vesicles.function.R
no_license
zyleeyang/Untargeted-metabolomics
R
false
false
5,225
r
# mfNMLmatch function -------------------------------------------------- # This function will take two data.frames, X and Y, and output a data.frame # listing which mass features match which in the other dataset. Data.frames # must include the following columns: # 1. MassFeature # 2. mz # 3. RT # ...
library(poker) ### Name: dotHighcard ### Title: dotHighcard ### Aliases: dotHighcard ### ** Examples dotHighcard(matrix(c(2,1,14,2,5,3,6,4,7,1,13,2,14,3,2,3,3,4,5,1,6,2,7,3,13,4,14,1),2,14,byrow=TRUE)) dotHighcard(matrix(c(2,1,3,2,5,3,6,4,7,1,13,2,14,3,2,3,3,4,5,1,6,2,7,3,13,4,14,1),2,14,byrow=TRUE))
/data/genthat_extracted_code/poker/examples/dotHighcard.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
309
r
library(poker) ### Name: dotHighcard ### Title: dotHighcard ### Aliases: dotHighcard ### ** Examples dotHighcard(matrix(c(2,1,14,2,5,3,6,4,7,1,13,2,14,3,2,3,3,4,5,1,6,2,7,3,13,4,14,1),2,14,byrow=TRUE)) dotHighcard(matrix(c(2,1,3,2,5,3,6,4,7,1,13,2,14,3,2,3,3,4,5,1,6,2,7,3,13,4,14,1),2,14,byrow=TRUE))
# Gambler's Problem # Solution to Example 4.3 and Exercise 4.8 in Reinforcement Learning by Sutton an Barto # # Written by David Anisman, Feb 2015 # # Comments and questions : quantizimo@gmail.com # # Implemented using in-place Value Iteration. # coinHeadsProb = 0.4 states = 1:99 policy = rep(0, length(states)) co...
/gamblers.R
no_license
quantizimo/reinforcement-learning-gamblers-problem-4-3
R
false
false
2,005
r
# Gambler's Problem # Solution to Example 4.3 and Exercise 4.8 in Reinforcement Learning by Sutton an Barto # # Written by David Anisman, Feb 2015 # # Comments and questions : quantizimo@gmail.com # # Implemented using in-place Value Iteration. # coinHeadsProb = 0.4 states = 1:99 policy = rep(0, length(states)) co...
```{r delay-check} gradethis::grade_this_code(correct = "Good work! Shortly we will learn an alternative way to construct a new variable with the mutate() function", incorrect = "Not quite. {code_feedback()} {random_encouragement()}") ```
/R/gradethis.R
no_license
DataScienceProjectsJapan/tutorialR4DS
R
false
false
238
r
```{r delay-check} gradethis::grade_this_code(correct = "Good work! Shortly we will learn an alternative way to construct a new variable with the mutate() function", incorrect = "Not quite. {code_feedback()} {random_encouragement()}") ```
context("advanceClosedForm0") test_that("it returns the correct array", { dose <- list( Drug = "remifentanil", Time = 0, Dose = 0, Units = "mcg/kg/min", Bolus = FALSE, PO = FALSE, IM = FALSE, IN = FALSE ) pkSet <- list( v1 = 3.968095, v2 = 7.254726, v3 = 3.017993, ...
/tests/testthat/tests-advanceClosedForm0.R
permissive
StevenLShafer/stanpumpR
R
false
false
2,739
r
context("advanceClosedForm0") test_that("it returns the correct array", { dose <- list( Drug = "remifentanil", Time = 0, Dose = 0, Units = "mcg/kg/min", Bolus = FALSE, PO = FALSE, IM = FALSE, IN = FALSE ) pkSet <- list( v1 = 3.968095, v2 = 7.254726, v3 = 3.017993, ...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.97274569258757e-154, 1.20221470514949e+111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_based_sampling_beta...
/CNull/inst/testfiles/communities_individual_based_sampling_beta_interleaved_matrices/AFL_communities_individual_based_sampling_beta_interleaved_matrices/communities_individual_based_sampling_beta_interleaved_matrices_valgrind_files/1615839622-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
363
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.99939408264402e-241, 1.97274569258757e-154, 1.20221470514949e+111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_based_sampling_beta...
#' Functions for reporting the Path Coefficients and R2 of endogenous constructs #' and for generating a scatterplot matrix of construct scores. #' #' \code{report_paths} generates an easy to read table reporting path coefficients #' and R2 values for endogenous constructs.\code{plot_scores} generates a #' scatterp...
/R/report_paths_and_intervals.R
no_license
sem-in-r/seminr
R
false
false
13,593
r
#' Functions for reporting the Path Coefficients and R2 of endogenous constructs #' and for generating a scatterplot matrix of construct scores. #' #' \code{report_paths} generates an easy to read table reporting path coefficients #' and R2 values for endogenous constructs.\code{plot_scores} generates a #' scatterp...
# Written by Jared A. Kirschner # for the Translation Genomics Research Institute (TGen, Phoenix, AZ) # Copyright 2010, TGen # E-mail: jkirschner@tgen.org # proteomics@pnnl.gov # # Inspired by code written by Ashoka D. Polpitiya # for the Department of Energy (PNNL, Richland, WA) # R plotting functions ...
/Rscripts/Plotting/gg/ggRRollupPlots.R
permissive
PNNL-Comp-Mass-Spec/InfernoRDN
R
false
false
8,344
r
# Written by Jared A. Kirschner # for the Translation Genomics Research Institute (TGen, Phoenix, AZ) # Copyright 2010, TGen # E-mail: jkirschner@tgen.org # proteomics@pnnl.gov # # Inspired by code written by Ashoka D. Polpitiya # for the Department of Energy (PNNL, Richland, WA) # R plotting functions ...
working_dir="C:/Users/Obi/Documents/My Dropbox/Projects/PADI/v3/" setwd(working_dir) #Gene data file(s) #ERBB2_file="ENSG00000141736.txt" #PADI2_file="ENSG00000117115.txt" #Cell line info celllinefile="C:/Users/Obi/Documents/My Dropbox/Projects/PADI/cell_line_info.2.txt" #All gene expression data datafile...
/LBNL/PADI/PADI2_vs_ERBB2.R
no_license
obigriffith/analysis-projects-R
R
false
false
24,525
r
working_dir="C:/Users/Obi/Documents/My Dropbox/Projects/PADI/v3/" setwd(working_dir) #Gene data file(s) #ERBB2_file="ENSG00000141736.txt" #PADI2_file="ENSG00000117115.txt" #Cell line info celllinefile="C:/Users/Obi/Documents/My Dropbox/Projects/PADI/cell_line_info.2.txt" #All gene expression data datafile...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108043e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615779022-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
348
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108043e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
#ライブラリ読込 library(dplyr) library(sf) library(readr) library(RColorBrewer) library(classInt) #作業ディレクトリ指定 setwd("~/Desktop/osaka_hogo") #必要なファイル読込 shape <- st_read("h27_did_27.shp") hogo <- read_csv("xxxx.csv") #結合後、23区のみ残す data <- inner_join(shape, hogo, by="CITYNAME") #地図描画 par(family="HiraKakuProN-W3") col_km <- da...
/osaka_hogo.R
no_license
tadakazu1972/health
R
false
false
1,928
r
#ライブラリ読込 library(dplyr) library(sf) library(readr) library(RColorBrewer) library(classInt) #作業ディレクトリ指定 setwd("~/Desktop/osaka_hogo") #必要なファイル読込 shape <- st_read("h27_did_27.shp") hogo <- read_csv("xxxx.csv") #結合後、23区のみ残す data <- inner_join(shape, hogo, by="CITYNAME") #地図描画 par(family="HiraKakuProN-W3") col_km <- da...
library(Sim.DiffProc) ### Name: plot2d ### Title: Plotting for Class SDE ### Aliases: plot2d lines2d points2d plot3D plot2d.default lines2d.default ### points2d.default plot3D.default ### ** Examples ## Example 1: set.seed(1234) fx <- rep(expression(0),2) gx <- rep(expression(1),2) res <- snssde2d(drift=fx,dif...
/data/genthat_extracted_code/Sim.DiffProc/examples/plot2d.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
551
r
library(Sim.DiffProc) ### Name: plot2d ### Title: Plotting for Class SDE ### Aliases: plot2d lines2d points2d plot3D plot2d.default lines2d.default ### points2d.default plot3D.default ### ** Examples ## Example 1: set.seed(1234) fx <- rep(expression(0),2) gx <- rep(expression(1),2) res <- snssde2d(drift=fx,dif...
#-------------------------------------------------------------------------------------------------------------------------------- #-------------------------------------------------------------------------------------------------------------------------------- # R-3.4.1 # mordor # Objective : Identify cluster specific p...
/scripts/11_scabc.CSCvsothers.R
no_license
aditiq/CSC-lupien
R
false
false
3,698
r
#-------------------------------------------------------------------------------------------------------------------------------- #-------------------------------------------------------------------------------------------------------------------------------- # R-3.4.1 # mordor # Objective : Identify cluster specific p...
#' Simulations of the parameters of a simple linear regression with fake data. #' #' A coda object containing simulated values from the posterior distribution of the intercept, slope and residual of a linear regression with fake data (y = beta[1] + beta[2] * X + sigma). The purpose of the dataset is only to show the po...
/R/data.R
no_license
xfim/ggmcmc
R
false
false
6,736
r
#' Simulations of the parameters of a simple linear regression with fake data. #' #' A coda object containing simulated values from the posterior distribution of the intercept, slope and residual of a linear regression with fake data (y = beta[1] + beta[2] * X + sigma). The purpose of the dataset is only to show the po...
#First I open MySQL and choose a database: 'USE sales;' #I have three databases here: Products, Manufacturers and Locations. #Now I will to connect to MySQL from R install.packages("RMySQL") library(RMySQL) mydb <- dbConnect(MySQL(), user='*****', password='*****', dbname='sales', host='localhost') #Now I create a n...
/Inserting data into MySQL and applying one sample t-test.R
no_license
antonioACR1/R
R
false
false
2,824
r
#First I open MySQL and choose a database: 'USE sales;' #I have three databases here: Products, Manufacturers and Locations. #Now I will to connect to MySQL from R install.packages("RMySQL") library(RMySQL) mydb <- dbConnect(MySQL(), user='*****', password='*****', dbname='sales', host='localhost') #Now I create a n...
context("Task Metabolic Control Analysis") loadExamples(1) setMetabolicControlAnalysisSettings(perform_steady_state_analysis = TRUE) test_that("runMetabolicControlAnalysis()", { MCA <- runMetabolicControlAnalysis() expect_length(MCA, 8) expect_is(MCA$settings, "list") expect_identical(MCA$result_ss, "fo...
/tests/testthat/test_task_mca.R
permissive
jpahle/CoRC
R
false
false
1,854
r
context("Task Metabolic Control Analysis") loadExamples(1) setMetabolicControlAnalysisSettings(perform_steady_state_analysis = TRUE) test_that("runMetabolicControlAnalysis()", { MCA <- runMetabolicControlAnalysis() expect_length(MCA, 8) expect_is(MCA$settings, "list") expect_identical(MCA$result_ss, "fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/expandFunctions.R \name{eLag} \alias{eLag} \title{Convert vector into a matrix of lag columns} \usage{ eLag(x, colParamVector, pad = NA) } \arguments{ \item{x}{Data \emph{vector}} \item{colParamVector}{Vector of lags for embedding} \item{pa...
/man/eLag.Rd
no_license
cran/expandFunctions
R
false
true
676
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/expandFunctions.R \name{eLag} \alias{eLag} \title{Convert vector into a matrix of lag columns} \usage{ eLag(x, colParamVector, pad = NA) } \arguments{ \item{x}{Data \emph{vector}} \item{colParamVector}{Vector of lags for embedding} \item{pa...
library(tidyverse) ## load data load("out/nyt_top10.Rdata") load("in/nyt_reduced.Rdata") ## unique articles in top10 data length(unique(unlist(list(nyt_top10[,grep("Title", colnames(nyt_top10))])))) length(unique(unlist(list(nyt_top10[,grep("URL", colnames(nyt_top10))])))) ## compare duplicate titles and urls titles...
/calc/nyt_narticles.R
no_license
pwkraft/nyt
R
false
false
1,074
r
library(tidyverse) ## load data load("out/nyt_top10.Rdata") load("in/nyt_reduced.Rdata") ## unique articles in top10 data length(unique(unlist(list(nyt_top10[,grep("Title", colnames(nyt_top10))])))) length(unique(unlist(list(nyt_top10[,grep("URL", colnames(nyt_top10))])))) ## compare duplicate titles and urls titles...
#' Greenhouse gas concentrations over 2000 years #' #' Concentrations of the three main greenhouse gases carbon dioxide, methane and nitrous oxide. Measurements are from the Law Dome Ice Core in Antarctica. Selected measurements are provided every 20 years from 1-2000 CE. #' #' #' \itemize{ #' \item year. Year ...
/R/greenhouse_gases.R
no_license
Elena8719/dslabs
R
false
false
889
r
#' Greenhouse gas concentrations over 2000 years #' #' Concentrations of the three main greenhouse gases carbon dioxide, methane and nitrous oxide. Measurements are from the Law Dome Ice Core in Antarctica. Selected measurements are provided every 20 years from 1-2000 CE. #' #' #' \itemize{ #' \item year. Year ...
library(shiny) library(DT) server <- function(input, output) { output$iris_type <- DT::renderDataTable({ datatable(data.frame(Species=paste0("<a href='#filtered_data'>", unique(iris$Species), "</a>")), escape = FALSE, callback = JS( 'table.on("click.dt", "tr", function...
/all.R
no_license
lillamy2012/glans
R
false
false
910
r
library(shiny) library(DT) server <- function(input, output) { output$iris_type <- DT::renderDataTable({ datatable(data.frame(Species=paste0("<a href='#filtered_data'>", unique(iris$Species), "</a>")), escape = FALSE, callback = JS( 'table.on("click.dt", "tr", function...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/pal-gradient.r \name{seq_gradient_pal} \alias{seq_gradient_pal} \title{Sequential colour gradient palette (continous).} \usage{ seq_gradient_pal(low = mnsl("10B 4/6"), high = mnsl("10R 4/6"), space = "Lab") } \arguments{ \item{low}{...
/man/seq_gradient_pal.Rd
no_license
LluisRamon/scales
R
false
false
778
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/pal-gradient.r \name{seq_gradient_pal} \alias{seq_gradient_pal} \title{Sequential colour gradient palette (continous).} \usage{ seq_gradient_pal(low = mnsl("10B 4/6"), high = mnsl("10R 4/6"), space = "Lab") } \arguments{ \item{low}{...
/calc_prob_insei.R
permissive
MuAuan/R
R
false
false
883
r
# Robin Gradin # # Batch adjustment by reference alignment (2019) # Prediction results for reference ratio-A # Load dependencies library(bapred) library(ggplot2) library(ggthemes) library(randomForest) library(reshape2) library(RGvisualization) library(stringr) library(viridis) source('R code/bara.R') ...
/src/assess_normalization/ref_ratio_a.R
no_license
Feigeliudan01/BARA
R
false
false
7,205
r
# Robin Gradin # # Batch adjustment by reference alignment (2019) # Prediction results for reference ratio-A # Load dependencies library(bapred) library(ggplot2) library(ggthemes) library(randomForest) library(reshape2) library(RGvisualization) library(stringr) library(viridis) source('R code/bara.R') ...
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) library(leaflet) shinyUI(fluidPage( # Application title titlePanel("Match MY Route"), tabsetPanel( tabPanel("Your Routes", ...
/B_analysts_sources_github/Robinlovelace/match-my-route/ui.R
no_license
Irbis3/crantasticScrapper
R
false
false
907
r
# This is the user-interface definition of a Shiny web application. # You can find out more about building applications with Shiny here: # # http://shiny.rstudio.com # library(shiny) library(leaflet) shinyUI(fluidPage( # Application title titlePanel("Match MY Route"), tabsetPanel( tabPanel("Your Routes", ...
library(lattice) # Read in mini data kDat <- read.table("GSE4051_MINI.txt", header = TRUE, row.names = 1) # Do stuff table(kDat$gType) with(kDat,table(devStage,gType)) xyplot(eggBomb ~ crabHammer, kDat) xyplot(eggBomb + poisonFang ~ crabHammer, kDat) xyplot(eggBomb + poisonFang ~ crabHammer, kDat, auto.key = T...
/sem03/seminar03_lattice.R
no_license
MalakronikMausi/stat540-2014-hindalong-emily
R
false
false
4,188
r
library(lattice) # Read in mini data kDat <- read.table("GSE4051_MINI.txt", header = TRUE, row.names = 1) # Do stuff table(kDat$gType) with(kDat,table(devStage,gType)) xyplot(eggBomb ~ crabHammer, kDat) xyplot(eggBomb + poisonFang ~ crabHammer, kDat) xyplot(eggBomb + poisonFang ~ crabHammer, kDat, auto.key = T...
testlist <- list(a = -55013L, b = 1375731711L, x = c(-1L, NA, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -65536L, 8192L, 65535L, -37889L, 0L, -18433L, 458358783L, -54785L, -1L, -1L, -54959L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610056567-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
251
r
testlist <- list(a = -55013L, b = 1375731711L, x = c(-1L, NA, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -65536L, 8192L, 65535L, -37889L, 0L, -18433L, 458358783L, -54785L, -1L, -1L, -54959L)) result <- do.call(grattan:::anyOutside,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fd_remote_sensing.R \name{fd_hemi_camera} \alias{fd_hemi_camera} \title{Hemispherical camera data.} \usage{ fd_hemi_camera() } \value{ A \code{data.frame} or \code{tibble}. Call \code{\link{fd_metadata}} for field metadata. } \description{ He...
/man/fd_hemi_camera.Rd
permissive
jtallantumich/fortedata
R
false
true
466
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fd_remote_sensing.R \name{fd_hemi_camera} \alias{fd_hemi_camera} \title{Hemispherical camera data.} \usage{ fd_hemi_camera() } \value{ A \code{data.frame} or \code{tibble}. Call \code{\link{fd_metadata}} for field metadata. } \description{ He...
library(dplyr) add.column.db.noprice <- function(doorbusters.data) { } add.column.db.online.outofstock <- function(doorbusters.data) { }
/metric_calculation.R
no_license
donaldsawyer/test-driven-data-wrangling-r
R
false
false
137
r
library(dplyr) add.column.db.noprice <- function(doorbusters.data) { } add.column.db.online.outofstock <- function(doorbusters.data) { }
library(ggplot2) library(RColorBrewer) plot.windrose <- function(data, spd, dir, spdres = 0.5, dirres = 22.5, spdmin = 0, spdmax = 15, sp...
/windrose_sin_nada.R
no_license
oscargarciahernandez/App_Anemometros
R
false
false
4,393
r
library(ggplot2) library(RColorBrewer) plot.windrose <- function(data, spd, dir, spdres = 0.5, dirres = 22.5, spdmin = 0, spdmax = 15, sp...
## ================== priliminary testing out various TDAs ================= ## # source("https://bioconductor.org/biocLite.R") # install.packages("GeneReg") # install.packages("TDCor") # biocLite("TDARACNE") # biocLite("networkBMA") # install.packages("G1DBN") # install.packages("iRafNet") # biocLite("GENIE3") dir <...
/TDA_prelim_test_packages.R
no_license
mahiarmahjoub/TuringInternship2018
R
false
false
5,202
r
## ================== priliminary testing out various TDAs ================= ## # source("https://bioconductor.org/biocLite.R") # install.packages("GeneReg") # install.packages("TDCor") # biocLite("TDARACNE") # biocLite("networkBMA") # install.packages("G1DBN") # install.packages("iRafNet") # biocLite("GENIE3") dir <...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { matriz <<- y m <<- NULL } get <- function() matriz setinverse <- function(solve) m <<- solve...
/cachematrix.R
no_license
mrlujanero/Coursera
R
false
false
741
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { matriz <<- y m <<- NULL } get <- function() matriz setinverse <- function(solve) m <<- solve...
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.01,family="gaussian",standardize=TRUE) sink('./Model/EN/Lasso/cervix/cervix_007.txt',append=TRUE...
/Model/EN/Lasso/cervix/cervix_007.R
no_license
leon1003/QSMART
R
false
false
351
r
library(glmnet) mydata = read.table("./TrainingSet/LassoBIC/cervix.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.01,family="gaussian",standardize=TRUE) sink('./Model/EN/Lasso/cervix/cervix_007.txt',append=TRUE...
library(readr) library(tibble) library(ggplot2) library(dplyr) library(ggpubr) #read in imputed data dataImp <- read_csv('Results/imputation_ff_4.csv') for(i in seq(5,50)){ temp <- read_csv(paste('R/imputation_ff_',i,'.csv',sep='')) dataImp <- bind_rows(dataImp,temp) } colnames(dataImp) <- c('X1','score','Model') ...
/Figures/Figure-2-plotter.R
no_license
MSBradshaw/FakeData
R
false
false
4,209
r
library(readr) library(tibble) library(ggplot2) library(dplyr) library(ggpubr) #read in imputed data dataImp <- read_csv('Results/imputation_ff_4.csv') for(i in seq(5,50)){ temp <- read_csv(paste('R/imputation_ff_',i,'.csv',sep='')) dataImp <- bind_rows(dataImp,temp) } colnames(dataImp) <- c('X1','score','Model') ...
#' merge tidy cpgs directories #' #' @param dirs tidy_cpgs directories #' @param out_dir output directory #' @param nbins number of genomic bins for output tidy_cpgs #' @param paired_end is the run paired end #' @param stats_dir directory for tidy_cpgs stats #' @param filter_dups_bin binary for filter_dups_cpgs python...
/R/merge-tidy_cpgs.R
no_license
tanaylab/gpatterns
R
false
false
2,389
r
#' merge tidy cpgs directories #' #' @param dirs tidy_cpgs directories #' @param out_dir output directory #' @param nbins number of genomic bins for output tidy_cpgs #' @param paired_end is the run paired end #' @param stats_dir directory for tidy_cpgs stats #' @param filter_dups_bin binary for filter_dups_cpgs python...
# libraries - load these before you get started library(ggplot2) library(Hmisc) library(forecast) library(RMySQL) # load data # this is a basic file, notice it loads from a url # this will create a dataframe. read about these. I use dataframes almost all the time. these are like a table in a database. timeSeries <- r...
/r_walkthrough.r
no_license
analyticsPierce/times-series-forecasting
R
false
false
2,794
r
# libraries - load these before you get started library(ggplot2) library(Hmisc) library(forecast) library(RMySQL) # load data # this is a basic file, notice it loads from a url # this will create a dataframe. read about these. I use dataframes almost all the time. these are like a table in a database. timeSeries <- r...
library(shiny) library(dplyr) library(ggplot2) library(plotly) library(stringr) CrimesByCity <- function(data, user.city){ # Filter data for the input city city.data <- filter(data, city == user.city) # Get vector of unique incident types incident.types <- sort(unique(city.data$parent_incident_type)) # Fun...
/scripts/Crimes_By_City.R
no_license
Chianson/info201project
R
false
false
1,354
r
library(shiny) library(dplyr) library(ggplot2) library(plotly) library(stringr) CrimesByCity <- function(data, user.city){ # Filter data for the input city city.data <- filter(data, city == user.city) # Get vector of unique incident types incident.types <- sort(unique(city.data$parent_incident_type)) # Fun...
library(quadprog) rSim <- function(coeff, errors) { simdata <- matrix(0, nrow(errors), ncol(errors)) for (row in 2:nrow(errors)) { simdata[row,] = coeff %*% simdata[(row-1),] + errors[row,] } return(simdata) }#This function generates a data set of size n from the TSIV model with two X variables and one I va...
/TwoXOneI_experiments.R
no_license
RikkeSN/simulation-experimets
R
false
false
4,728
r
library(quadprog) rSim <- function(coeff, errors) { simdata <- matrix(0, nrow(errors), ncol(errors)) for (row in 2:nrow(errors)) { simdata[row,] = coeff %*% simdata[(row-1),] + errors[row,] } return(simdata) }#This function generates a data set of size n from the TSIV model with two X variables and one I va...
library(ggplot2) library(dplyr) library(tibble) plotfct_time <- function(data, ncol = 1, pyr = F) { if (pyr) { data <- group_by(data, entity_id) %>% mutate(mins = median(interp_age, na.rm = T)) %>% arrange(mins) } data <- data %>% group_by(entity_id) %>% tidyr::nest() %>% rownames_to_column(var = 'rentity...
/Archive/Functions (Kopie)/meandiff_SISAL_SIM_segmentplot.R
no_license
ginnyweasleyIUP/202002_PaperDraft
R
false
false
1,878
r
library(ggplot2) library(dplyr) library(tibble) plotfct_time <- function(data, ncol = 1, pyr = F) { if (pyr) { data <- group_by(data, entity_id) %>% mutate(mins = median(interp_age, na.rm = T)) %>% arrange(mins) } data <- data %>% group_by(entity_id) %>% tidyr::nest() %>% rownames_to_column(var = 'rentity...
############ ############ ############ ############ ############ ############ ############ Project ############ ############ ############ ############ ############ ############ ############ ############ ############ ############ data_folder <- "Project Data" filename <- "Project_Data.zip" if(!file.exists(data...
/plot5.R
no_license
moolins12/Exp_Data_Analysis-Project2
R
false
false
1,947
r
############ ############ ############ ############ ############ ############ ############ Project ############ ############ ############ ############ ############ ############ ############ ############ ############ ############ data_folder <- "Project Data" filename <- "Project_Data.zip" if(!file.exists(data...
# CIDR -------------------------------------------------------------------- #' @importFrom cidr scDataConstructor determineDropoutCandidates wThreshold scDissim cidrPcoa nPC scCluster .cidrfree.calc <- function(countData, NCores) { ncores = ifelse(is.null(NCores), 1, NCores) # construct input object sData <- ...
/R/utils_pipeline.R
permissive
nlawlor/powsimR
R
false
false
3,622
r
# CIDR -------------------------------------------------------------------- #' @importFrom cidr scDataConstructor determineDropoutCandidates wThreshold scDissim cidrPcoa nPC scCluster .cidrfree.calc <- function(countData, NCores) { ncores = ifelse(is.null(NCores), 1, NCores) # construct input object sData <- ...
# Process anonimized results library(tidyverse) library(knitr) library(stringi) # percentage function pct <- function(x, digits = 1, format = "f", ...) { paste0(formatC(100 * x, format = format, digits = digits, ...), "%") } # Import public dataset results <- read_csv("~/Data/CRTC/crtc-anonimized.csv") # aggrega...
/crtc-process.R
no_license
ex-punctis/fairplay-canada-opposition
R
false
false
9,587
r
# Process anonimized results library(tidyverse) library(knitr) library(stringi) # percentage function pct <- function(x, digits = 1, format = "f", ...) { paste0(formatC(100 * x, format = format, digits = digits, ...), "%") } # Import public dataset results <- read_csv("~/Data/CRTC/crtc-anonimized.csv") # aggrega...
library(MLInterfaces) ### Name: planarPlot-methods ### Title: Methods for Function planarPlot in Package 'MLInterfaces' ### Aliases: planarPlot planarPlot-methods ### planarPlot,classifierOutput,ExpressionSet,character-method ### planarPlot,classifierOutput,data.frame,character-method ### Keywords: methods ### *...
/data/genthat_extracted_code/MLInterfaces/examples/planarPlot-methods.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
2,055
r
library(MLInterfaces) ### Name: planarPlot-methods ### Title: Methods for Function planarPlot in Package 'MLInterfaces' ### Aliases: planarPlot planarPlot-methods ### planarPlot,classifierOutput,ExpressionSet,character-method ### planarPlot,classifierOutput,data.frame,character-method ### Keywords: methods ### *...
rd <- function(x, y, w = 1, center = NULL, method = 'euclidean', p = 2){ n <- length(x) if (n != length(y)) stop('[rd] x and y must have the same length.') if (length(w) != 1 && length(w) != n) stop('[rd] x and w must have the same length.') if (is.null(center)) { center <- cp(x, ...
/code/src/rd.R
no_license
maria-cf/MobileNetworkDataSimulationTemplate
R
false
false
564
r
rd <- function(x, y, w = 1, center = NULL, method = 'euclidean', p = 2){ n <- length(x) if (n != length(y)) stop('[rd] x and y must have the same length.') if (length(w) != 1 && length(w) != n) stop('[rd] x and w must have the same length.') if (is.null(center)) { center <- cp(x, ...
### ADVENT OF CODE, DAY 22 # PART 1 input <- read.delim("input/day22.txt", header = FALSE, blank.lines.skip = TRUE, stringsAsFactors = FALSE) library(collections) library(sets) p1 <- as.numeric(input$V1[2:26]) p2 <- as.numeric(input$V1[28:52]) while ((length(p1) > 0) & (length(p2) > 0)){ if (p...
/code/day22.R
permissive
brianlle/advent_of_code_2020
R
false
false
3,463
r
### ADVENT OF CODE, DAY 22 # PART 1 input <- read.delim("input/day22.txt", header = FALSE, blank.lines.skip = TRUE, stringsAsFactors = FALSE) library(collections) library(sets) p1 <- as.numeric(input$V1[2:26]) p2 <- as.numeric(input$V1[28:52]) while ((length(p1) > 0) & (length(p2) > 0)){ if (p...
# need to scrape legislative data # scraping bawsala data require(rvest) require(stringr) require(dplyr) require(readr) require(tidyr) require(purrr) require(RSelenium) remDr <- remoteDriver(remoteServerAddr = "localhost" , port = 4444L , browserName = "chrome" ) remDr$op...
/scrape_legis_data.R
no_license
saudiwin/ARP_Research
R
false
false
4,424
r
# need to scrape legislative data # scraping bawsala data require(rvest) require(stringr) require(dplyr) require(readr) require(tidyr) require(purrr) require(RSelenium) remDr <- remoteDriver(remoteServerAddr = "localhost" , port = 4444L , browserName = "chrome" ) remDr$op...
create_emptyenv <- function() { emptyenv() } isEmpty <- function(llist) { if(class(llist)!= "linkList") warning("Not linkList class") identical(llist, create_emptyenv()) } linkListNode <- function(val, node=NULL) { llist <- new.env(parent=create_emptyenv()) llist$element <- val llist$nextnode <- node cl...
/CTDLGT_R/BT7_danhsachlienketdoi.R
no_license
levantanfc11/DO_AN_CTDLVAGT
R
false
false
1,930
r
create_emptyenv <- function() { emptyenv() } isEmpty <- function(llist) { if(class(llist)!= "linkList") warning("Not linkList class") identical(llist, create_emptyenv()) } linkListNode <- function(val, node=NULL) { llist <- new.env(parent=create_emptyenv()) llist$element <- val llist$nextnode <- node cl...
library(ggpubr) library(ggplot2) data<-read.csv("selected_phage.csv") data$group<-factor(data$group) png("plot.png",width = 12,height = 5,res = 300,units="in") ggbarplot(data, x = "Features", y = "value", fill = "group", # change fill color by mpg_level color = "black", # Set b...
/data/feature_sel_LEFSe/phage/plot.R
permissive
Jayanth-kumar5566/CAMEB2-machine-learning
R
false
false
795
r
library(ggpubr) library(ggplot2) data<-read.csv("selected_phage.csv") data$group<-factor(data$group) png("plot.png",width = 12,height = 5,res = 300,units="in") ggbarplot(data, x = "Features", y = "value", fill = "group", # change fill color by mpg_level color = "black", # Set b...
#' Just rename the original time column (UTC time) to utc_orig #' #' Wrapper function purely for readability of code in a pipeline-friendly #' way. #' #' @param df dataframe with `UTC time` column #' #' @return dataframe with utc_orig column #' @export #' @importFrom dplyr rename '%>%' rename_time <- function(df) { ...
/R/rename_time.R
permissive
mkiang/metabeiwe
R
false
false
455
r
#' Just rename the original time column (UTC time) to utc_orig #' #' Wrapper function purely for readability of code in a pipeline-friendly #' way. #' #' @param df dataframe with `UTC time` column #' #' @return dataframe with utc_orig column #' @export #' @importFrom dplyr rename '%>%' rename_time <- function(df) { ...
install.packages("rpart.plot") library(rpart) library(rpart.plot) data(iris) str(iris) head(iris) set.seed(50) irisNew <- iris[order(runif(nrow(iris))),] rpart (Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width, data = iris , method="class") m3 <- rpart (Species ~ ., data = irisNew[1:100,] , method=...
/Rpart().R
no_license
ShahirZain/Comparison-C50-and-Rpart-
R
false
false
465
r
install.packages("rpart.plot") library(rpart) library(rpart.plot) data(iris) str(iris) head(iris) set.seed(50) irisNew <- iris[order(runif(nrow(iris))),] rpart (Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width, data = iris , method="class") m3 <- rpart (Species ~ ., data = irisNew[1:100,] , method=...
shinyUI( bootstrapPage( # style theme = "flatly.css", div(class= "col-lg-12", # Title + personal welcome message div( class="page-header", h1("YOUR...
/interface/ui.R
no_license
basbaccarne/loopedlogging
R
false
false
2,798
r
shinyUI( bootstrapPage( # style theme = "flatly.css", div(class= "col-lg-12", # Title + personal welcome message div( class="page-header", h1("YOUR...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{plotDist} \alias{plotDist} \title{Plots the distribution of features across fractions} \usage{ plotDist(object, markers, mcol = "steelblue", pcol = "grey90", alpha = 0.3, lty = 1, fractions, ylim, ...) } \arguments{ \item{object}{An instance of class \code{MS...
/man/plotDist.Rd
no_license
tnaake/pRoloc
R
false
false
1,902
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{plotDist} \alias{plotDist} \title{Plots the distribution of features across fractions} \usage{ plotDist(object, markers, mcol = "steelblue", pcol = "grey90", alpha = 0.3, lty = 1, fractions, ylim, ...) } \arguments{ \item{object}{An instance of class \code{MS...
# # cellCellSetting # setGeneric("cellCellSetting", function(sce, lrbase, color, label){ standardGeneric("cellCellSetting")}) setMethod("cellCellSetting", signature(sce="SingleCellExperiment"), function(sce, lrbase, color, label){ userobjects <- deparse(substitute(sce)) .cellCellSetting(userobj...
/R/AllGenerics.R
permissive
yamaken37/scTensor
R
false
false
15,949
r
# # cellCellSetting # setGeneric("cellCellSetting", function(sce, lrbase, color, label){ standardGeneric("cellCellSetting")}) setMethod("cellCellSetting", signature(sce="SingleCellExperiment"), function(sce, lrbase, color, label){ userobjects <- deparse(substitute(sce)) .cellCellSetting(userobj...
\name{maintain.packages} \alias{maintain.packages} \alias{unmaintain.package} \title{Set up task package for live editing} \description{ See \code{\link{mvbutils.packaging.tools}} before reading or experimenting! Set up task package(s) for editing and/or live-editing. Usually called in \code{.First} or \code{.F...
/man/maintain.packages.Rd
no_license
cran/mvbutils
R
false
false
7,010
rd
\name{maintain.packages} \alias{maintain.packages} \alias{unmaintain.package} \title{Set up task package for live editing} \description{ See \code{\link{mvbutils.packaging.tools}} before reading or experimenting! Set up task package(s) for editing and/or live-editing. Usually called in \code{.First} or \code{.F...
## Put comments here that give an overall description of what your ## functions do ## Making a cache matrix and setting the functions to solve the matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setInverse <- function(inverse...
/cachematrix.R
no_license
zubayer16/ProgrammingAssignment2
R
false
false
715
r
## Put comments here that give an overall description of what your ## functions do ## Making a cache matrix and setting the functions to solve the matrix makeCacheMatrix <- function(x = matrix()) { m <- NULL set <- function(y) { x <<- y m <<- NULL } get <- function() x setInverse <- function(inverse...
# Investigate the price of diamonds using box plots, # numerical summaries, and one of the following categorical # variables: cut, clarity, or color. # There won't be a solution video for this # exercise so go to the discussion thread for either # BOXPLOTS BY CLARITY, BOXPLOT BY COLOR, or BOXPLOTS BY CUT # to share yo...
/Data Analysis with R/L3 Problem Set/PriceBoxPlots.R
no_license
DataUnicorn/Udacity
R
false
false
1,064
r
# Investigate the price of diamonds using box plots, # numerical summaries, and one of the following categorical # variables: cut, clarity, or color. # There won't be a solution video for this # exercise so go to the discussion thread for either # BOXPLOTS BY CLARITY, BOXPLOT BY COLOR, or BOXPLOTS BY CUT # to share yo...
#Aggregate to species fluxrates if(exists("wcr.master")==FALSE){source('Prepare_Data.R')} #Reads in gapfilled files for sapflux rates, in g/m2 s sapstart<-10 #syv.tsca<-unname(rowMeans(syv.master[,sapstart+which(syv.tree$SPP=='TSCA')], na.rm=TRUE)) #syv.tsca<-unname(rowMeans(syv.master[,sapstart+which(syv.tree$SPP==...
/Calc_Sapflow_Full.R
no_license
bblakely/SapFlux
R
false
false
1,656
r
#Aggregate to species fluxrates if(exists("wcr.master")==FALSE){source('Prepare_Data.R')} #Reads in gapfilled files for sapflux rates, in g/m2 s sapstart<-10 #syv.tsca<-unname(rowMeans(syv.master[,sapstart+which(syv.tree$SPP=='TSCA')], na.rm=TRUE)) #syv.tsca<-unname(rowMeans(syv.master[,sapstart+which(syv.tree$SPP==...
library(mice) library(randomForest) set.seed(42) # read training data train <- read.csv('data/train.csv', sep=',', na.strings=c('')) # drop some rows train$PassengerId <- NULL train$Cabin <- NULL train$Ticket <- NULL train$Name <- NULL train$Fare <- NULL # mark some rows as nominal train$Sex <- as.f...
/impute.mice.r
permissive
kumarh22/Titanic
R
false
false
1,117
r
library(mice) library(randomForest) set.seed(42) # read training data train <- read.csv('data/train.csv', sep=',', na.strings=c('')) # drop some rows train$PassengerId <- NULL train$Cabin <- NULL train$Ticket <- NULL train$Name <- NULL train$Fare <- NULL # mark some rows as nominal train$Sex <- as.f...
#################################################################################################################################### ################################## RestartFileContents ############################################################################# # >> # Sourcing Methods / Classes / Auxiliary-fu...
/R/RestartFileContents.R
no_license
ShashankKumbhare/paramonteRold
R
false
false
16,585
r
#################################################################################################################################### ################################## RestartFileContents ############################################################################# # >> # Sourcing Methods / Classes / Auxiliary-fu...
suppressMessages(library(tidyverse)) suppressMessages(library(Seurat)) suppressMessages(library(patchwork)) suppressMessages(library(clustree)) suppressMessages(library(varhandle)) suppressMessages(library(DoubletFinder)) suppressMessages(library(gridExtra)) # bone marrow sample sample <- read.table("~/samples/single_...
/scripts/SRA322626_sample_processing.r
no_license
abedkurdi/single_cell_rnaseq_analysis
R
false
false
3,194
r
suppressMessages(library(tidyverse)) suppressMessages(library(Seurat)) suppressMessages(library(patchwork)) suppressMessages(library(clustree)) suppressMessages(library(varhandle)) suppressMessages(library(DoubletFinder)) suppressMessages(library(gridExtra)) # bone marrow sample sample <- read.table("~/samples/single_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimsum__aggregate_AA_variants_fitness.R \name{dimsum__aggregate_AA_variants_fitness} \alias{dimsum__aggregate_AA_variants_fitness} \title{dimsum__aggregate_AA_variants_fitness} \usage{ dimsum__aggregate_AA_variants_fitness(dimsum_meta, input_...
/man/dimsum__aggregate_AA_variants_fitness.Rd
permissive
lehner-lab/DiMSum
R
false
true
686
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dimsum__aggregate_AA_variants_fitness.R \name{dimsum__aggregate_AA_variants_fitness} \alias{dimsum__aggregate_AA_variants_fitness} \title{dimsum__aggregate_AA_variants_fitness} \usage{ dimsum__aggregate_AA_variants_fitness(dimsum_meta, input_...
#' Convenient functions to set DHHS-appropriate palettes #' #' @param n Numeric. The number of levels in your colour scale. Minimum value is #' 1, maximum is 7. Passed to \code{dhhs_pal}; see ?dhhs_pal for more #' information. Set to NULL if you want to provide your own colours with \code{values = c()}. #' #' @para...
/R/dhhs_scales.R
no_license
thomasteoh/dhhstheme
R
false
false
3,547
r
#' Convenient functions to set DHHS-appropriate palettes #' #' @param n Numeric. The number of levels in your colour scale. Minimum value is #' 1, maximum is 7. Passed to \code{dhhs_pal}; see ?dhhs_pal for more #' information. Set to NULL if you want to provide your own colours with \code{values = c()}. #' #' @para...
#' Approximate m-ratio #' #' Calculate Garza-Williamson M ratio (bottleneck) statistic for microsatellite data. #' The function is based on mRatio() from the strataG package. However, instead of requiring #' the same repeat length for all alleles within a locus, it calculates the m-ratio by deviding #' the allele-range...
/R/m_ratio.R
no_license
mastoffel/sealABC
R
false
false
2,673
r
#' Approximate m-ratio #' #' Calculate Garza-Williamson M ratio (bottleneck) statistic for microsatellite data. #' The function is based on mRatio() from the strataG package. However, instead of requiring #' the same repeat length for all alleles within a locus, it calculates the m-ratio by deviding #' the allele-range...
# goal: add zip code level info to dataset documenting police vehicle-related deaths # topics to add: # - race demographics # - median income # - poverty rate library(dplyr) # version 0.5.0 library(tidyr) # version 0.3.1 ################################################### # dataset 1: 2012 deaths related to police ch...
/MPVZipCodeDemos20170615.R
no_license
rmcgowan/MPV2013-17
R
false
false
9,920
r
# goal: add zip code level info to dataset documenting police vehicle-related deaths # topics to add: # - race demographics # - median income # - poverty rate library(dplyr) # version 0.5.0 library(tidyr) # version 0.3.1 ################################################### # dataset 1: 2012 deaths related to police ch...
library(ggplot2) library(gridExtra) format_decimal <- function(n){ function(x) format(x,nsmall = n,scientific = FALSE) } my_levels <- c("OpenCL ", "Optimized OpenCL ", "CUBLAS ", "clBLAS ", "Generic allpairs skeleton ", "Allpairs skeleton with zip-reduce ") colors <- scale_fill_manual(values=c("#b35806", "#f1a...
/Figures/Plots/MatMult/mat_mult_sizes_gtx480.r
no_license
michel-steuwer/phd-thesis
R
false
false
3,906
r
library(ggplot2) library(gridExtra) format_decimal <- function(n){ function(x) format(x,nsmall = n,scientific = FALSE) } my_levels <- c("OpenCL ", "Optimized OpenCL ", "CUBLAS ", "clBLAS ", "Generic allpairs skeleton ", "Allpairs skeleton with zip-reduce ") colors <- scale_fill_manual(values=c("#b35806", "#f1a...
setwd("Riddler/SultanSuitors/") library(ggplot2) library(data.table) data <- fread("SuitorData.csv") data <- data[data$n_trials == 100000] ggplot(data, aes(x = w, y = abs(10 - avg_rank) - 4.49, fill = data$avg_rank)) + geom_bar(stat = "identity") + scale_fill_continuous(name = "Expect...
/SultanSuitors/plotResults.R
permissive
johncmerfeld/Riddler
R
false
false
1,592
r
setwd("Riddler/SultanSuitors/") library(ggplot2) library(data.table) data <- fread("SuitorData.csv") data <- data[data$n_trials == 100000] ggplot(data, aes(x = w, y = abs(10 - avg_rank) - 4.49, fill = data$avg_rank)) + geom_bar(stat = "identity") + scale_fill_continuous(name = "Expect...