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
## Check that required library 'reshape2' is installed and ## install if not if (!("reshape2" %in% rownames(installed.packages())) ) { install.packages("reshape2") } ## Load required library 'reshape2' library(reshape2) ## Download and unzip raw data fileurl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fproj...
/run_analysis.R
no_license
DaveyMBS/Getting-and-Cleaning-Data-Assignment
R
false
false
2,824
r
## Check that required library 'reshape2' is installed and ## install if not if (!("reshape2" %in% rownames(installed.packages())) ) { install.packages("reshape2") } ## Load required library 'reshape2' library(reshape2) ## Download and unzip raw data fileurl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fproj...
# Coded by Rasmus Bååth # rasmus.baath@lucs.lu.se # www.sumsar.net # If you modify the code, please keep this header. Thanks! plot_dist <- function(dist, labels=c(), scale = 1, color="skyblue", plot_dist_name=T) { old_par <- par(mar = c(0.3, 0, 0, 0), xaxt='n', yaxt='n',ann=FALSE, bty="n", xpd=NA) x <- dist$x...
/bugs/distrograms/plot_dist.R
no_license
balima78/Markdowns
R
false
false
12,904
r
# Coded by Rasmus Bååth # rasmus.baath@lucs.lu.se # www.sumsar.net # If you modify the code, please keep this header. Thanks! plot_dist <- function(dist, labels=c(), scale = 1, color="skyblue", plot_dist_name=T) { old_par <- par(mar = c(0.3, 0, 0, 0), xaxt='n', yaxt='n',ann=FALSE, bty="n", xpd=NA) x <- dist$x...
#' Add a visual parameter box for dot plots #' #' Create a visual parameter box for row- or column-based dot plots, i.e., where each feature or sample is a point. #' #' @param x A DataFrame with one row, containing the parameter choices for the current plot. #' @param select_info A list of character vectors named \code...
/R/interface_visual.R
permissive
andreagrioni/iSEE
R
false
false
20,828
r
#' Add a visual parameter box for dot plots #' #' Create a visual parameter box for row- or column-based dot plots, i.e., where each feature or sample is a point. #' #' @param x A DataFrame with one row, containing the parameter choices for the current plot. #' @param select_info A list of character vectors named \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/youtube_objects.R \name{ChannelStatistics} \alias{ChannelStatistics} \title{ChannelStatistics Object} \usage{ ChannelStatistics(commentCount = NULL, hiddenSubscriberCount = NULL, subscriberCount = NULL, videoCount = NULL, viewCount = NULL) ...
/googleyoutubev3.auto/man/ChannelStatistics.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
940
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/youtube_objects.R \name{ChannelStatistics} \alias{ChannelStatistics} \title{ChannelStatistics Object} \usage{ ChannelStatistics(commentCount = NULL, hiddenSubscriberCount = NULL, subscriberCount = NULL, videoCount = NULL, viewCount = NULL) ...
#' Estimate the baseline hazard function in the Cox model as a step function #' est_base_hazard <- function(surv.data, survObject, par_val, Bi){ par_val <- as.list(par_val) Etime <- surv.data[, survObject$response] nblock <- length(unique(Etime)) + 2 Twindow <- c(0, sort(unique(Etime)) + 0.001, Inf) delta1 <...
/R/est_base_hazard.r
no_license
oliviayu/robust-HHJMs
R
false
false
1,837
r
#' Estimate the baseline hazard function in the Cox model as a step function #' est_base_hazard <- function(surv.data, survObject, par_val, Bi){ par_val <- as.list(par_val) Etime <- surv.data[, survObject$response] nblock <- length(unique(Etime)) + 2 Twindow <- c(0, sort(unique(Etime)) + 0.001, Inf) delta1 <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metric_residual_plot.R \name{metric_residual_plot} \alias{metric_residual_plot} \title{Residual Plot} \usage{ metric_residual_plot(metric_dat, var, filename = NA, draw.plot = is.na(filename)) } \arguments{ \item{draw.plot}{} } \description{...
/modules/benchmark/man/metric_residual_plot.Rd
permissive
araiho/pecan
R
false
true
362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/metric_residual_plot.R \name{metric_residual_plot} \alias{metric_residual_plot} \title{Residual Plot} \usage{ metric_residual_plot(metric_dat, var, filename = NA, draw.plot = is.na(filename)) } \arguments{ \item{draw.plot}{} } \description{...
#SimpReg lapply #test simple regression on parallel setwd("/home/sxt999/run") rm(list = ls()) cname = "regsimp" compile = paste0("R CMD SHLIB ", cname,".c") ccode = paste0(cname,".so") system(compile) y = c(10,11) x = 9 regsimp = function(c, f1, f2, yindex, xindex) { dyn.load(c) sum = rep(0,4) result = .C("reg",a...
/Assignment5/run/TestSimpRegLapply.R
no_license
mokiss/sxshao
R
false
false
1,127
r
#SimpReg lapply #test simple regression on parallel setwd("/home/sxt999/run") rm(list = ls()) cname = "regsimp" compile = paste0("R CMD SHLIB ", cname,".c") ccode = paste0(cname,".so") system(compile) y = c(10,11) x = 9 regsimp = function(c, f1, f2, yindex, xindex) { dyn.load(c) sum = rep(0,4) result = .C("reg",a...
## Instalar pacotes requeridos para esta análise install.packages(c( "data.table", "devtools", "forcats", "ggplot2", "pander", "readxl", "stringr", "tableone" )) devtools::install_github("philsf/philsfmisc")
/scripts/setup.R
no_license
philsf-biostat/SAR-2019-001-RG
R
false
false
227
r
## Instalar pacotes requeridos para esta análise install.packages(c( "data.table", "devtools", "forcats", "ggplot2", "pander", "readxl", "stringr", "tableone" )) devtools::install_github("philsf/philsfmisc")
Rsurface <- function (mask, sigma, usecov = NULL, alpha2 = 1, detectfn = "HHN", z = 1, inverse = FALSE, scale = TRUE) { if (ms(mask)) stop ("not ready for multisession masks") mm <- nrow(mask) detectfn <- valid.detectfn(detectfn, c(4,14:18)) ## converts from character tmpmas...
/secr/R/Rsurface.R
no_license
ingted/R-Examples
R
false
false
3,811
r
Rsurface <- function (mask, sigma, usecov = NULL, alpha2 = 1, detectfn = "HHN", z = 1, inverse = FALSE, scale = TRUE) { if (ms(mask)) stop ("not ready for multisession masks") mm <- nrow(mask) detectfn <- valid.detectfn(detectfn, c(4,14:18)) ## converts from character tmpmas...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility_functions.R \name{runGSEA} \alias{runGSEA} \title{Run gene-set enrichment analysis (GSEA)} \usage{ runGSEA( gene, value, species, db = "GO", my.entrez = NULL, my.pathway = NULL, min.size = 3, max.size = 300, do.plot ...
/man/runGSEA.Rd
permissive
NMikolajewicz/scMiko
R
false
true
1,600
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utility_functions.R \name{runGSEA} \alias{runGSEA} \title{Run gene-set enrichment analysis (GSEA)} \usage{ runGSEA( gene, value, species, db = "GO", my.entrez = NULL, my.pathway = NULL, min.size = 3, max.size = 300, do.plot ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ICSKATPO.R \name{ICskatPO} \alias{ICskatPO} \title{ICSKATPO.R} \usage{ ICskatPO( left_dmat, right_dmat, lt, rt, obs_ind, tpos_ind, gMat, null_beta, Itt ) } \arguments{ \item{left_dmat}{n*(p+nknots+2) design matrix for left e...
/man/ICskatPO.Rd
no_license
ryanrsun/ICSKAT
R
false
true
2,329
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ICSKATPO.R \name{ICskatPO} \alias{ICskatPO} \title{ICSKATPO.R} \usage{ ICskatPO( left_dmat, right_dmat, lt, rt, obs_ind, tpos_ind, gMat, null_beta, Itt ) } \arguments{ \item{left_dmat}{n*(p+nknots+2) design matrix for left e...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tokenize.R \name{segment} \alias{segment} \alias{segment.character} \alias{segment.corpus} \title{segment texts into component elements} \usage{ segment(x, ...) \method{segment}{character}(x, what = c("tokens", "sentences", "paragraphs", "...
/man/segment.Rd
no_license
schinria/quanteda
R
false
true
3,398
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tokenize.R \name{segment} \alias{segment} \alias{segment.character} \alias{segment.corpus} \title{segment texts into component elements} \usage{ segment(x, ...) \method{segment}{character}(x, what = c("tokens", "sentences", "paragraphs", "...
library(doBy) library(plotrix) library(ggplot2) # Read the data for a single day or 10 days day1<-read.csv("Datasets/nyt1.csv") day1$age_category <- cut( day1$Age, c(-Inf,0,19,Inf), labels = c("Invalid age","<18","18+") ) day1$Gender <- ifelse(day1$Gender == 0, 'Male', 'Female') day1$scode[day1$Impressions==0]...
/CSE313/Assignment 1/part-B.R
no_license
wjxhhhhh/XJTLU
R
false
false
1,053
r
library(doBy) library(plotrix) library(ggplot2) # Read the data for a single day or 10 days day1<-read.csv("Datasets/nyt1.csv") day1$age_category <- cut( day1$Age, c(-Inf,0,19,Inf), labels = c("Invalid age","<18","18+") ) day1$Gender <- ifelse(day1$Gender == 0, 'Male', 'Female') day1$scode[day1$Impressions==0]...
#' Estimate photosynthesis parameters for C4 species using Yin's fitting procedure #' #' Using the gas exchange measurement (A_Ci curve), C4 photosynthesis model without #' carbonic anhydrase and fitting procedure of Yin et al. (2011) to do nonlinear curve #' fitting (using nlminb package) for estimating photosynthesis...
/R/C4EstimateWithoutCAYin.R
no_license
zhouhaoran06/C4-Parameter-Estimation
R
false
false
11,708
r
#' Estimate photosynthesis parameters for C4 species using Yin's fitting procedure #' #' Using the gas exchange measurement (A_Ci curve), C4 photosynthesis model without #' carbonic anhydrase and fitting procedure of Yin et al. (2011) to do nonlinear curve #' fitting (using nlminb package) for estimating photosynthesis...
library(data.table) damage <- fread("data/Post-Katrina_Damage_Assessment.csv")[Percentage > -1.0] rows <- nrow(damage) for(i in 0:100) { start <- (1000*i)+1 end <- 1000*(i+1) if(end > rows) { end <- rows } write.csv( damage[start:end, .(Address, "New Orleans", "LA")], paste("data/damage_address_...
/scripts/damage.R
permissive
izenmania/hurricane-gentrification
R
false
false
1,767
r
library(data.table) damage <- fread("data/Post-Katrina_Damage_Assessment.csv")[Percentage > -1.0] rows <- nrow(damage) for(i in 0:100) { start <- (1000*i)+1 end <- 1000*(i+1) if(end > rows) { end <- rows } write.csv( damage[start:end, .(Address, "New Orleans", "LA")], paste("data/damage_address_...
#' @importFrom utils packageVersion contrib.url head #' installed.packages sessionInfo tail NULL #' Install or update Bioconductor, CRAN, or GitHub packages #' #' This package provides tools for managing _Bioconductor_ and other #' packages in a manner consistent with _Bioconductor_'s package #' versioning and rel...
/R/BiocManager-package.R
no_license
Bioconductor/BiocManager
R
false
false
2,892
r
#' @importFrom utils packageVersion contrib.url head #' installed.packages sessionInfo tail NULL #' Install or update Bioconductor, CRAN, or GitHub packages #' #' This package provides tools for managing _Bioconductor_ and other #' packages in a manner consistent with _Bioconductor_'s package #' versioning and rel...
# TODO # Map features: remove marker clustering, use filtering of PG from top menu # Plots features: remove percentages from "Frequency of highly aggressive isolates" plot function(input, output){ # load("./data/patho_objects.RData") # load("./data/map_objects.RData") # load map objects created by samples_interact...
/server.R
no_license
IdoBar/material_dash
R
false
false
13,332
r
# TODO # Map features: remove marker clustering, use filtering of PG from top menu # Plots features: remove percentages from "Frequency of highly aggressive isolates" plot function(input, output){ # load("./data/patho_objects.RData") # load("./data/map_objects.RData") # load map objects created by samples_interact...
library(quhomology) ### Name: up_action ### Title: The up action for a birack or biquandle. ### Aliases: up_action ### ** Examples ## Example for version with function (for a dihedral quandle) up_action <- function (a, b, k){ result <- (2 * b - a)%%k return(as.integer(result)) } ##Example for matrix loo...
/data/genthat_extracted_code/quhomology/examples/up_action.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
650
r
library(quhomology) ### Name: up_action ### Title: The up action for a birack or biquandle. ### Aliases: up_action ### ** Examples ## Example for version with function (for a dihedral quandle) up_action <- function (a, b, k){ result <- (2 * b - a)%%k return(as.integer(result)) } ##Example for matrix loo...
library(CEC) ### Name: mixShapes ### Title: mixShapes ### Aliases: mixShapes ### Keywords: datasets ### ** Examples data(mixShapes) plot(mixShapes, cex = 0.5, pch = 19);
/data/genthat_extracted_code/CEC/examples/mixShapes.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
177
r
library(CEC) ### Name: mixShapes ### Title: mixShapes ### Aliases: mixShapes ### Keywords: datasets ### ** Examples data(mixShapes) plot(mixShapes, cex = 0.5, pch = 19);
#考虑过整体设限的风险控制方案,比如说将现有持仓的向量乘以相关性矩阵,然后就可以判断整个持仓有没有超过风险限制, #但是这么做有一个问题,那就是判断出持仓风险之后无法有效地设定反向建仓的规则,同时,这种办法无法有效地识别“ #同向开仓不能超过12个Unit“的问题。 #一个新的思路是当判定出爆仓之后,从holding的记录上面逐条删除重新判定,也就是说一共有两套方程: #1. 加仓的时候用循环判定加仓是在范围内的,一旦超出范围,撤销上一个加仓并且转向下一个(暂时不考虑优先加信号强的仓)。 #2. 每回合开始的资金控制,一旦判定不及格就以倒叙的形式减仓,那就是说“standing_contract”的顺序往回减并计入损失。 l...
/long_algorythm.r
no_license
SidGor/turtle_project
R
false
false
2,686
r
#考虑过整体设限的风险控制方案,比如说将现有持仓的向量乘以相关性矩阵,然后就可以判断整个持仓有没有超过风险限制, #但是这么做有一个问题,那就是判断出持仓风险之后无法有效地设定反向建仓的规则,同时,这种办法无法有效地识别“ #同向开仓不能超过12个Unit“的问题。 #一个新的思路是当判定出爆仓之后,从holding的记录上面逐条删除重新判定,也就是说一共有两套方程: #1. 加仓的时候用循环判定加仓是在范围内的,一旦超出范围,撤销上一个加仓并且转向下一个(暂时不考虑优先加信号强的仓)。 #2. 每回合开始的资金控制,一旦判定不及格就以倒叙的形式减仓,那就是说“standing_contract”的顺序往回减并计入损失。 l...
## Functions needed to implement the ML approach: pAfun <- function(EloA, EloB){ 1/(1 + exp(EloB - EloA)) } Elo_pA <- function(EloStart_logk, X, show_k = FALSE){ EloStart <- EloStart_logk[-length(EloStart_logk)] EloStart <- EloStart - mean(EloStart) k <- exp(EloStart_logk[length(EloStart_logk)]) if (s...
/00a_functions_ml_approach_20180625.R
no_license
holgersr/Bayesian-inference-and-simulation-of-Elo-scores-in-analysis-of-social-behaviour
R
false
false
2,220
r
## Functions needed to implement the ML approach: pAfun <- function(EloA, EloB){ 1/(1 + exp(EloB - EloA)) } Elo_pA <- function(EloStart_logk, X, show_k = FALSE){ EloStart <- EloStart_logk[-length(EloStart_logk)] EloStart <- EloStart - mean(EloStart) k <- exp(EloStart_logk[length(EloStart_logk)]) if (s...
# plot4.R # assumes you have run cleanData.R first home.path <- "~/Dropbox/Coursera/ExploratoryDataAnalysis/assignment1/ExData_Plotting1" setwd(home.path) tidydata.path <- "~/Dropbox/Coursera/ExploratoryDataAnalysis/assignment1/ExData_Plotting1/tidydata" dataset1 <- readRDS(file.path(tidydata.path, "tidydata_assig...
/plot4.R
no_license
pslai/ExData_Plotting1
R
false
false
2,168
r
# plot4.R # assumes you have run cleanData.R first home.path <- "~/Dropbox/Coursera/ExploratoryDataAnalysis/assignment1/ExData_Plotting1" setwd(home.path) tidydata.path <- "~/Dropbox/Coursera/ExploratoryDataAnalysis/assignment1/ExData_Plotting1/tidydata" dataset1 <- readRDS(file.path(tidydata.path, "tidydata_assig...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function makeCacheMatrix <- function(x = matrix()) { inv = NULL set = function(y) { x <<- y inv <<- NULL } get = function() x setinv = function(inverse) inv <<- inverse getin...
/cachematrix.R
no_license
drbeleza/ProgrammingAssignment2
R
false
false
695
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()) { inv = NULL set = function(y) { x <<- y inv <<- NULL } get = function() x setinv = function(inverse) inv <<- inverse getin...
# install rmarkdown if(!("rmarkdown") %in% installed.packages()) install.packages("rmarkdown") # loading library rmarkdown library(rmarkdown) if(!('tinytex') %in% installed.packages()) install.packages('tinytex') library(tinytex) tinytex::install_tinytex() # install tinytex install_tinytex(force = FALSE...
/example/Pesquisa Reprodutível/code/instalando.R
no_license
Uemerson/data-science-final-work
R
false
false
835
r
# install rmarkdown if(!("rmarkdown") %in% installed.packages()) install.packages("rmarkdown") # loading library rmarkdown library(rmarkdown) if(!('tinytex') %in% installed.packages()) install.packages('tinytex') library(tinytex) tinytex::install_tinytex() # install tinytex install_tinytex(force = FALSE...
source("HTTPRequests/authenticate.R") token<-authenticate("root", "x", aServer, aPort) urlEndpoint <- "http://10.12.51.90:3000/reprisk_db_single_case/list.json" requestJSON <- ' { "pageSize": 100, "attributes": [ "id", "classification.policy_name", "entry_date" ], "filters": [ { ...
/trunk/R/trunk/testRequest.R
no_license
kupec-martin/reprisk
R
false
false
712
r
source("HTTPRequests/authenticate.R") token<-authenticate("root", "x", aServer, aPort) urlEndpoint <- "http://10.12.51.90:3000/reprisk_db_single_case/list.json" requestJSON <- ' { "pageSize": 100, "attributes": [ "id", "classification.policy_name", "entry_date" ], "filters": [ { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dtex.R \name{getDrugNames} \alias{getDrugNames} \title{\code{getDrugNames} Identifies drugs in a} \usage{ getDrugNames(drug_ids) } \value{ } \description{ \code{getDrugNames} Identifies drugs in a }
/man/getDrugNames.Rd
permissive
Sage-Bionetworks/dten
R
false
true
278
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dtex.R \name{getDrugNames} \alias{getDrugNames} \title{\code{getDrugNames} Identifies drugs in a} \usage{ getDrugNames(drug_ids) } \value{ } \description{ \code{getDrugNames} Identifies drugs in a }
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/large_intestine.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.25,family="gaussian",standardize=FALSE) sink('./large_intestine_038.txt'...
/Model/EN/Lasso/large_intestine/large_intestine_038.R
no_license
esbgkannan/QSMART
R
false
false
363
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Lasso/large_intestine.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.25,family="gaussian",standardize=FALSE) sink('./large_intestine_038.txt'...
feature.use <- function(urerf){ fUse <- integer() for(i in 1:length(urerf$forest)){ for(j in 1:length(urerf$forest[[i]]$matA)){ if(!is.null(urerf$forest[[i]]$matA[[j]])){ numFeatures <- length(urerf$forest[[i]]$matA[[j]])/2 for(feature in 0:(numFeatures-1)){ if(is.na(fUse[urerf$f...
/hw/feature_use.R
no_license
Percimorphism/URerF_experiment
R
false
false
613
r
feature.use <- function(urerf){ fUse <- integer() for(i in 1:length(urerf$forest)){ for(j in 1:length(urerf$forest[[i]]$matA)){ if(!is.null(urerf$forest[[i]]$matA[[j]])){ numFeatures <- length(urerf$forest[[i]]$matA[[j]])/2 for(feature in 0:(numFeatures-1)){ if(is.na(fUse[urerf$f...
# install.packages("rchess") # Or if you want to be risky you can install the latest development version from github with: # devtools::install_github("jbkunst/rchess") library(rchess) library(dplyr) # FIDE World Cups data data(chesswc) count(chesswc, event) # counts number of events in each World Cup #...
/SGH/Big data/Project/chess/chess.R
no_license
Valkoiset/myrepo
R
false
false
3,865
r
# install.packages("rchess") # Or if you want to be risky you can install the latest development version from github with: # devtools::install_github("jbkunst/rchess") library(rchess) library(dplyr) # FIDE World Cups data data(chesswc) count(chesswc, event) # counts number of events in each World Cup #...
# Some previous experimentation # ------------------------------------------------------------ # Normalisierung normalize <- function(x){ (x - min(x)) / (max(x) - min(x)) } df <- iris[1:4] apply(df, 2, normalize) # Hiearchical Clustering # Hierarchisches Cluster erzeugen cluster <- hclust(di...
/CAS Datenanalyse/Data Mining/clustering.R
no_license
huli/mas-data-science
R
false
false
4,245
r
# Some previous experimentation # ------------------------------------------------------------ # Normalisierung normalize <- function(x){ (x - min(x)) / (max(x) - min(x)) } df <- iris[1:4] apply(df, 2, normalize) # Hiearchical Clustering # Hierarchisches Cluster erzeugen cluster <- hclust(di...
#calculate rolling 3 month CC values from period values library(data.table) #set path data_dir <- "O:/CoOp/CoOp194_PROReportng&OM/Julie" #load data ce <- fread(paste0(data_dir,"/DC_CC_daypartcheck_st101.csv")) ce <- setorder(ce,FSCL_YR_NUM,FSCL_PER_IN_YR_NUM,DAY_PART) ce <- ce[FSCL_YR_NUM==2018|FSCL_YR_NUM==2017|(FSC...
/Rolling3month_cc_code.R
no_license
jumorris2017/R-code-flatfiles
R
false
false
1,152
r
#calculate rolling 3 month CC values from period values library(data.table) #set path data_dir <- "O:/CoOp/CoOp194_PROReportng&OM/Julie" #load data ce <- fread(paste0(data_dir,"/DC_CC_daypartcheck_st101.csv")) ce <- setorder(ce,FSCL_YR_NUM,FSCL_PER_IN_YR_NUM,DAY_PART) ce <- ce[FSCL_YR_NUM==2018|FSCL_YR_NUM==2017|(FSC...
################################################### ### code chunk number 12: Cs203_state-filtering ################################################### kf_marss <- MARSSkfss(fit_marss)
/inst/userguide/figures/KFAS--Cs203_state-filtering.R
permissive
nwfsc-timeseries/MARSS
R
false
false
187
r
################################################### ### code chunk number 12: Cs203_state-filtering ################################################### kf_marss <- MARSSkfss(fit_marss)
\name{SampleSize.Poisson} \alias{SampleSize.Poisson} \title{Sample size calculation for continuous sequential analysis with Poisson data.} \description{The function \code{SampleSize.Poisson} obtains the required sample size (length of surveillance) needed to guarantee a desired statistical power for a pre-specified...
/man/SampleSize.Poisson.Rd
no_license
tslumley/sequential2
R
false
false
5,720
rd
\name{SampleSize.Poisson} \alias{SampleSize.Poisson} \title{Sample size calculation for continuous sequential analysis with Poisson data.} \description{The function \code{SampleSize.Poisson} obtains the required sample size (length of surveillance) needed to guarantee a desired statistical power for a pre-specified...
# users can either step through this file, or call this file with # r -f example.R # THIS ASSUMES THAT THE TESTHINT DATABASE EXISTS. The recipe for building that # database is in ../dbInitialization/createHintTest.sql # THIS EXAMPLE USES THE BRAIN HINT OUTPUT MADE BY RUNNING make hint at /scratch/data/footprints pri...
/generate_db/master/spinal_cord_16/hint.R
no_license
xtmgah/genomics-footprint
R
false
false
2,186
r
# users can either step through this file, or call this file with # r -f example.R # THIS ASSUMES THAT THE TESTHINT DATABASE EXISTS. The recipe for building that # database is in ../dbInitialization/createHintTest.sql # THIS EXAMPLE USES THE BRAIN HINT OUTPUT MADE BY RUNNING make hint at /scratch/data/footprints pri...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/openmi.om.linkableComponent.R \name{openmi.om.linkableComponent} \alias{openmi.om.linkableComponent} \title{The base class for linkable meta-model components.} \value{ R6 class of type openmi.om.linkableComponent } \description{ The base clas...
/man/openmi.om.linkableComponent.Rd
no_license
HARPgroup/openmi-om
R
false
true
6,814
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/openmi.om.linkableComponent.R \name{openmi.om.linkableComponent} \alias{openmi.om.linkableComponent} \title{The base class for linkable meta-model components.} \value{ R6 class of type openmi.om.linkableComponent } \description{ The base clas...
setwd("~/repositoriosGit/coursera/data_sicence_johns_hopkins/02_r_programming/programming_assignment") rm(list=ls()) outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character") head(outcome) ncol(outcome) names(outcome) outcome[, 11] <- as.numeric(outcome[, 11]) hist(outcome[, 11]) rankall <- funct...
/data_sicence_johns_hopkins/02_r_programming/programming_assignment/rankall.R
permissive
abrantesasf/coursera
R
false
false
2,207
r
setwd("~/repositoriosGit/coursera/data_sicence_johns_hopkins/02_r_programming/programming_assignment") rm(list=ls()) outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character") head(outcome) ncol(outcome) names(outcome) outcome[, 11] <- as.numeric(outcome[, 11]) hist(outcome[, 11]) rankall <- funct...
# Running isoDetector for each pure reference sample # Changes from original isoDetector_blue.R: # Changed file split between pure and mixture files # Mixture file creation: all pure cell type files must come from same person # Will use the combined fragment length distribution file instead of individual # (possi...
/03 Blueprint in silico analyses/02 IsoDeconvMM code/isoDetector_blue2.R
no_license
hheiling/IsoDeconvMM_Supplement
R
false
false
3,677
r
# Running isoDetector for each pure reference sample # Changes from original isoDetector_blue.R: # Changed file split between pure and mixture files # Mixture file creation: all pure cell type files must come from same person # Will use the combined fragment length distribution file instead of individual # (possi...
# read fcs files t0p1<-f_read(t0p1_file,pattern_read) t1p1<-f_read(t1p1_file,pattern_read) t2p1<-f_read(t2p1_file,pattern_read) t3p1<-f_read(t3p1_file,pattern_read) t4p1<-f_read(t4p1_file,pattern_read) t5p1<-f_read(t5p1_file,pattern_read) t6p1<-f_read(t6p1_file,pattern_read) t7p1<-f_read(t7p1_file,pattern_r...
/FACS data/paper figures/figure1/facs_script.R
no_license
aasli/promoter
R
false
false
2,593
r
# read fcs files t0p1<-f_read(t0p1_file,pattern_read) t1p1<-f_read(t1p1_file,pattern_read) t2p1<-f_read(t2p1_file,pattern_read) t3p1<-f_read(t3p1_file,pattern_read) t4p1<-f_read(t4p1_file,pattern_read) t5p1<-f_read(t5p1_file,pattern_read) t6p1<-f_read(t6p1_file,pattern_read) t7p1<-f_read(t7p1_file,pattern_r...
## This file creates a dataset that contains counts of live births between ## 2003 and 2016 by race/ethnicity using the CDC NCHS Natality Data. ## ## Step 1 downloads all the data. They are approximately 200 MB each. ## Step 2 will then unzip each file (one by one). Unzipped, the files are ## about 5 GB. It will t...
/data-raw/making_live_births_data.R
permissive
mkiang/narcan
R
false
false
6,653
r
## This file creates a dataset that contains counts of live births between ## 2003 and 2016 by race/ethnicity using the CDC NCHS Natality Data. ## ## Step 1 downloads all the data. They are approximately 200 MB each. ## Step 2 will then unzip each file (one by one). Unzipped, the files are ## about 5 GB. It will t...
# R code of Steegen, Tuerlinckx, Gelman & Vanpaemel (2016). Increasing Transparency through a Multiverse Analysis. Perspectives on Psychological Science, 11, 702-712 # This file contains code to perform a multiverse analysis on two datasets from Durante, K.M., Rae A., & Griskevicius, V. (2013). The fluctuating female ...
/multiverse analysis steegen et al 2016_osf.R
no_license
Tanainan/Multiverse
R
false
false
23,611
r
# R code of Steegen, Tuerlinckx, Gelman & Vanpaemel (2016). Increasing Transparency through a Multiverse Analysis. Perspectives on Psychological Science, 11, 702-712 # This file contains code to perform a multiverse analysis on two datasets from Durante, K.M., Rae A., & Griskevicius, V. (2013). The fluctuating female ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RatePhylo.allCI.R \name{RatePhylo.allCI} \alias{RatePhylo.allCI} \title{Confidence intervals for rate parameters} \usage{ RatePhylo.allCI( rateData, MLrate = NULL, fixed = NULL, rateMIN = 0.001, rateMAX = 50, common.mean = FALSE, ...
/fuzzedpackages/motmot/man/RatePhylo.allCI.Rd
no_license
akhikolla/testpackages
R
false
true
3,556
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RatePhylo.allCI.R \name{RatePhylo.allCI} \alias{RatePhylo.allCI} \title{Confidence intervals for rate parameters} \usage{ RatePhylo.allCI( rateData, MLrate = NULL, fixed = NULL, rateMIN = 0.001, rateMAX = 50, common.mean = FALSE, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{df_swets08} \alias{df_swets08} \title{Data from a self-paced reading experiment that records reading times in milliseconds at the post-critical region. \insertCite{swets2008underspecification;textual}{bcogsci}} \fo...
/man/df_swets08.Rd
permissive
saidejp/bcogsci
R
false
true
952
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{df_swets08} \alias{df_swets08} \title{Data from a self-paced reading experiment that records reading times in milliseconds at the post-critical region. \insertCite{swets2008underspecification;textual}{bcogsci}} \fo...
testlist <- list(x = c(NaN, 4.88349512044349e-33), y = c(4.85787505972498e-33, 2.49576593945277e-29, 1.13662662593938e-305, 6.80504789180293e+38, 2.18465582271745e-305, NaN, 9.9425881215977e-297, -2.62841742635227e-159, -1.34746874498879e+28, -6.94237805298391e+306, -5.82852024984172e+303, 8.85449539944218e-159, 2....
/blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609955884-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
1,094
r
testlist <- list(x = c(NaN, 4.88349512044349e-33), y = c(4.85787505972498e-33, 2.49576593945277e-29, 1.13662662593938e-305, 6.80504789180293e+38, 2.18465582271745e-305, NaN, 9.9425881215977e-297, -2.62841742635227e-159, -1.34746874498879e+28, -6.94237805298391e+306, -5.82852024984172e+303, 8.85449539944218e-159, 2....
\name{math} \alias{sort.rtv} \alias{sample.rtv} \alias{length.drtv} \alias{length.crtv} \alias{order.drtv} \alias{order.crtv} \alias{c.drtv} \alias{c.crtv} \alias{rep.drtv} \alias{rep.crtv} \alias{[.drtv} \alias{[.crtv} \alias{mean.crtv} \alias{min.crtv} \alias{max.crtv} \alias{range.crtv} \alias{round.crtv} \alias{flo...
/man/math.Rd
no_license
cran/rtv
R
false
false
1,359
rd
\name{math} \alias{sort.rtv} \alias{sample.rtv} \alias{length.drtv} \alias{length.crtv} \alias{order.drtv} \alias{order.crtv} \alias{c.drtv} \alias{c.crtv} \alias{rep.drtv} \alias{rep.crtv} \alias{[.drtv} \alias{[.crtv} \alias{mean.crtv} \alias{min.crtv} \alias{max.crtv} \alias{range.crtv} \alias{round.crtv} \alias{flo...
\name{getParameters-methods} \alias{getParameters-methods} \alias{getParameters} \title{The \code{getParameters} method} \description{Returns the vector of parameters and converts it to a named list.} \usage{getParameters(this)} \value{a named list in which each element corresponds to a parameter. The vector of paramet...
/man/getParameters-methods.Rd
no_license
santoshpanda15/mtk
R
false
false
1,242
rd
\name{getParameters-methods} \alias{getParameters-methods} \alias{getParameters} \title{The \code{getParameters} method} \description{Returns the vector of parameters and converts it to a named list.} \usage{getParameters(this)} \value{a named list in which each element corresponds to a parameter. The vector of paramet...
subroutine f10(ic) # # sort into increasing wavelengths # implicit integer*4(i-n) include "../common/blank" include "../common/lbl4" include "../common/label1" include "../common/lbl3" include "../common/lbl6" include "../common/lbl7" include "../common/lblg" include "../common/lundefs" include "../common/...
/src-local/specpr/src.specpr/fcn09-11/f10.r
no_license
ns-bak/tetracorder-tutorial
R
false
false
4,015
r
subroutine f10(ic) # # sort into increasing wavelengths # implicit integer*4(i-n) include "../common/blank" include "../common/lbl4" include "../common/label1" include "../common/lbl3" include "../common/lbl6" include "../common/lbl7" include "../common/lblg" include "../common/lundefs" include "../common/...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/breast.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.95,family="gaussian",standardize=FALSE) sink('./breast_096.txt',append=TRUE...
/Model/EN/Correlation/breast/breast_096.R
no_license
esbgkannan/QSMART
R
false
false
351
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/breast.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.95,family="gaussian",standardize=FALSE) sink('./breast_096.txt',append=TRUE...
## Termin 1 praktischer Teil # `#` startet einen Kommentar - dieser wird von der #`R`-Konsole nicht interpretiert ## STRG-Enter nimmt Befehle aus dem Skript-Editor und fuehrt ## sie in der `R`-Konsole aus ## Heute lernen wir Vektoren kennen ## - Erstellung von numerischen Vektoren ## - Speichern von Vektoren in Va...
/Uebungen/2018/01_Uebung.R
no_license
m-Py/Testtheorie-R
R
false
false
5,701
r
## Termin 1 praktischer Teil # `#` startet einen Kommentar - dieser wird von der #`R`-Konsole nicht interpretiert ## STRG-Enter nimmt Befehle aus dem Skript-Editor und fuehrt ## sie in der `R`-Konsole aus ## Heute lernen wir Vektoren kennen ## - Erstellung von numerischen Vektoren ## - Speichern von Vektoren in Va...
resError <- function(ccc){ msg <- "calculated by resError" ## - data reduction as given by ToDo ## - round a <- abbrevList(ccc) p.target <- as.numeric(a$cpt$Values$Pressure$Value) maxdev <- as.numeric(a$cpt$MaxDev) k <- 2 # Erweiterungsfaktor ##-------------## ## pcal ...
/utils/resError.R
no_license
wactbprot/r4vl
R
false
false
4,046
r
resError <- function(ccc){ msg <- "calculated by resError" ## - data reduction as given by ToDo ## - round a <- abbrevList(ccc) p.target <- as.numeric(a$cpt$Values$Pressure$Value) maxdev <- as.numeric(a$cpt$MaxDev) k <- 2 # Erweiterungsfaktor ##-------------## ## pcal ...
context("Input SlabVar and SpikeVar of locFDR BF theoretic function cor") test_that("Throws warning if SpikeVar parameter is not a numeric scalar", { skip_on_cran() expect_warning(analytic_locFDR_BF_cor(1:10, 1:10, ExampleDataCor$cor, SpikeVar = NA), "SpikeVar is not numeric*") expect_warning(analytic_locFDR_BF_...
/tests/testthat/test-InputSpikeSlabVarLocFDR_BF_theoretic_Cor.R
no_license
ArunabhaCodes/CPBayes
R
false
false
2,106
r
context("Input SlabVar and SpikeVar of locFDR BF theoretic function cor") test_that("Throws warning if SpikeVar parameter is not a numeric scalar", { skip_on_cran() expect_warning(analytic_locFDR_BF_cor(1:10, 1:10, ExampleDataCor$cor, SpikeVar = NA), "SpikeVar is not numeric*") expect_warning(analytic_locFDR_BF_...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \name{blbcoef} \alias{blbcoef} \title{Obtain model's coefficient} \usage{ blbcoef(fit) } \arguments{ \item{fit}{fitted model} } \description{ compute the coefficients from fit }
/man/blbcoef.Rd
permissive
JZNeilZ/blblm
R
false
true
264
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/blblm.R \name{blbcoef} \alias{blbcoef} \title{Obtain model's coefficient} \usage{ blbcoef(fit) } \arguments{ \item{fit}{fitted model} } \description{ compute the coefficients from fit }
library(mlr3extralearners) if (!requireNamespace("catboost", quietly = TRUE)) { install_catboost("0.26.1") } test_that("classif.catboost_catboost.train", { learner = lrn("classif.catboost") fun = catboost::catboost.train exclude = c( "learn_pool", # handled via mlr3 "test_pool", # don't use internal va...
/inst/paramtest/test_paramtest_catboost_classif_catboost.R
no_license
A-Pai/mlr3extralearners
R
false
false
1,001
r
library(mlr3extralearners) if (!requireNamespace("catboost", quietly = TRUE)) { install_catboost("0.26.1") } test_that("classif.catboost_catboost.train", { learner = lrn("classif.catboost") fun = catboost::catboost.train exclude = c( "learn_pool", # handled via mlr3 "test_pool", # don't use internal va...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/defaults.R \name{default_shape_var} \alias{default_shape_var} \title{default shape_var} \usage{ default_shape_var(object) } \arguments{ \item{object}{SummarizedExperiment} } \value{ default value of shape_var } \description{ default shape_var...
/autonomics.plot/man/default_shape_var.Rd
no_license
bhagwataditya/autonomics0
R
false
true
563
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/defaults.R \name{default_shape_var} \alias{default_shape_var} \title{default shape_var} \usage{ default_shape_var(object) } \arguments{ \item{object}{SummarizedExperiment} } \value{ default value of shape_var } \description{ default shape_var...
system('git config --global user.email "qiu-yue.zhang@students.mq.edu.au"') system('git config --global user.name "HA82"') download.file(url = "https://mq-software-carpentry.github.io/R-git-for-research/data/SAFI_clean.csv", destfile = "./data/SAFI_clean.csv") download.file(url = "https://mq-software-carpentry.github.i...
/scripts/scripts.R
no_license
HA82/data-carpentry-r
R
false
false
1,238
r
system('git config --global user.email "qiu-yue.zhang@students.mq.edu.au"') system('git config --global user.name "HA82"') download.file(url = "https://mq-software-carpentry.github.io/R-git-for-research/data/SAFI_clean.csv", destfile = "./data/SAFI_clean.csv") download.file(url = "https://mq-software-carpentry.github.i...
# JHU Data Science - Course 03 - Getting and Cleaning Data - Week 4 ## Importing data to play around with ## Editing text variables tolower strsplit # Combine strsplit with sapply to remove .s sub("_","",names(data)) # replaces first underscore in each name gsub("_","",names(data)) # replaces all underscores in e...
/03_Cleaning_data/Week4/Course_notes.R
no_license
kartik-avula/Data_Science
R
false
false
711
r
# JHU Data Science - Course 03 - Getting and Cleaning Data - Week 4 ## Importing data to play around with ## Editing text variables tolower strsplit # Combine strsplit with sapply to remove .s sub("_","",names(data)) # replaces first underscore in each name gsub("_","",names(data)) # replaces all underscores in e...
library(minfi) # BiocManager::install("minfiData") library(minfiData) library(IlluminaHumanMethylationEPICmanifest)#, library(IlluminaHumanMethylationEPICanno.ilm10b4.hg19) RGSet<-minfi::read.metharray.exp('data/MotifPipeline/ENCODE/methyl_array/850k/') # phenoData <- pData(RGSet) manifest <- getManifest(RGSet) head(ge...
/src/R/process_encode_MeArray.R
no_license
dcolinmorgan/mili_benchmark
R
false
false
9,088
r
library(minfi) # BiocManager::install("minfiData") library(minfiData) library(IlluminaHumanMethylationEPICmanifest)#, library(IlluminaHumanMethylationEPICanno.ilm10b4.hg19) RGSet<-minfi::read.metharray.exp('data/MotifPipeline/ENCODE/methyl_array/850k/') # phenoData <- pData(RGSet) manifest <- getManifest(RGSet) head(ge...
sim = read_output(output_file_name) plot_all(sim) islands = c("NewHaven", "Exotica", "Lampedusa") compare = function(df) { rabbit_initial = df[1, paste0(islands,".rabbit.rabbit.initial")] rabbit_total = tail(df[paste0(islands,".rabbit.rabbit.outflowTotal")], 1) R = data.frame(rabbit_initial, rabbit_total, sum(rabb...
/input/book/demo/migration/islands-4-end.R
no_license
amantaya/UniSim2
R
false
false
1,004
r
sim = read_output(output_file_name) plot_all(sim) islands = c("NewHaven", "Exotica", "Lampedusa") compare = function(df) { rabbit_initial = df[1, paste0(islands,".rabbit.rabbit.initial")] rabbit_total = tail(df[paste0(islands,".rabbit.rabbit.outflowTotal")], 1) R = data.frame(rabbit_initial, rabbit_total, sum(rabb...
library(rv) ### Name: rvconst ### Title: Random Vector with a Point-Mass Distribution ### Aliases: rvconst ### Keywords: classes ### ** Examples x <- rvconst(x=1:3) c(x, 4)
/data/genthat_extracted_code/rv/examples/rvconst.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
186
r
library(rv) ### Name: rvconst ### Title: Random Vector with a Point-Mass Distribution ### Aliases: rvconst ### Keywords: classes ### ** Examples x <- rvconst(x=1:3) c(x, 4)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/microbiota2.R \docType{data} \name{LayerTaxonomy} \alias{LayerTaxonomy} \title{LayerTaxonomy} \format{ An object of class \code{LayerTaxonomy} (inherits from \code{Layer}, \code{ggproto}, \code{gg}) of length 2. } \usage{ LayerTaxonomy } \des...
/man/LayerTaxonomy.Rd
no_license
ying14/yingtools2
R
false
true
925
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/microbiota2.R \docType{data} \name{LayerTaxonomy} \alias{LayerTaxonomy} \title{LayerTaxonomy} \format{ An object of class \code{LayerTaxonomy} (inherits from \code{Layer}, \code{ggproto}, \code{gg}) of length 2. } \usage{ LayerTaxonomy } \des...
library(shiny) library(ggplot2) library(phyloseq) library(data.table) source("../common/mbiome/mbiome-reader.R") source("../common/ggplot_ext/eupath_default.R") source("../common/tooltip/tooltip.R") source("../common/config.R") shinyServer(function(input, output, session) { mstudy_obj <- NULL # this should b...
/alpha_diversity/server.R
no_license
francislon/microbiomedb
R
false
false
22,709
r
library(shiny) library(ggplot2) library(phyloseq) library(data.table) source("../common/mbiome/mbiome-reader.R") source("../common/ggplot_ext/eupath_default.R") source("../common/tooltip/tooltip.R") source("../common/config.R") shinyServer(function(input, output, session) { mstudy_obj <- NULL # this should b...
## Read data. Previously, we must set the working directory where the file is stored. datos <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?") str(datos) ## Convert de Date column from factor to date datos[, 1] <- as.Date(datos[, 1], format = "%d/%m/%Y") str(datos) ## Subsett...
/myRFiles/plot4.R
no_license
kasares/ExData_Plotting1
R
false
false
1,390
r
## Read data. Previously, we must set the working directory where the file is stored. datos <- read.table("household_power_consumption.txt", sep = ";", header = TRUE, na.strings = "?") str(datos) ## Convert de Date column from factor to date datos[, 1] <- as.Date(datos[, 1], format = "%d/%m/%Y") str(datos) ## Subsett...
library("knitr") library("rgl") #knit("terbumeton.Rmd") #markdownToHTML('terbumeton.md', 'terbumeton.html', options=c("use_xhml")) #system("pandoc -s terbumeton.html -o terbumeton.pdf") knit2html('terbumeton.Rmd')
/FDA_Pesticide_Glossary/terbumeton.R
permissive
andrewdefries/andrewdefries.github.io
R
false
false
216
r
library("knitr") library("rgl") #knit("terbumeton.Rmd") #markdownToHTML('terbumeton.md', 'terbumeton.html', options=c("use_xhml")) #system("pandoc -s terbumeton.html -o terbumeton.pdf") knit2html('terbumeton.Rmd')
\name{Familydata} \alias{Familydata} \docType{data} \title{ Dataset of a hypothetical family} \description{ Anthropometric and financial data of a hypothetical family} \usage{data(Familydata)} \format{ A data frame with 11 observations on the following 6 variables. \describe{ \item{\code{code}}{a chara...
/man/Familydata.Rd
no_license
cran/epiDisplay
R
false
false
1,011
rd
\name{Familydata} \alias{Familydata} \docType{data} \title{ Dataset of a hypothetical family} \description{ Anthropometric and financial data of a hypothetical family} \usage{data(Familydata)} \format{ A data frame with 11 observations on the following 6 variables. \describe{ \item{\code{code}}{a chara...
context("Group sizes") # Data for the first three test_that groups below df <- data.frame(x = rep(1:3, each = 10), y = rep(1:6, each = 5)) tbls <- test_load(df) test_that("ungrouped data has 1 group, with group size = nrow()", { for (tbl in tbls) { expect_equal(n_groups(tbl), 1L) expect_equal(group_size(tbl...
/tests/testthat/test-group-size.R
no_license
ravinpoudel/dplyr
R
false
false
1,331
r
context("Group sizes") # Data for the first three test_that groups below df <- data.frame(x = rep(1:3, each = 10), y = rep(1:6, each = 5)) tbls <- test_load(df) test_that("ungrouped data has 1 group, with group size = nrow()", { for (tbl in tbls) { expect_equal(n_groups(tbl), 1L) expect_equal(group_size(tbl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DoLandSCENT.R \name{DoLandSCENT} \alias{DoLandSCENT} \title{Runs the LandSCENT algorithm} \usage{ DoLandSCENT( exp.m, ppiA.m, log_trans = FALSE, mc.cores = 1, pheno.v = NULL, coordinates = NULL, PLOT = TRUE, PDF = TRUE ) } \ar...
/man/DoLandSCENT.Rd
no_license
ChenWeiyan/LandSCENT
R
false
true
2,766
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DoLandSCENT.R \name{DoLandSCENT} \alias{DoLandSCENT} \title{Runs the LandSCENT algorithm} \usage{ DoLandSCENT( exp.m, ppiA.m, log_trans = FALSE, mc.cores = 1, pheno.v = NULL, coordinates = NULL, PLOT = TRUE, PDF = TRUE ) } \ar...
library(dplyr) mov<-read.csv("C:/Users/Simran/Desktop/movie_analysis/TidyMovie.csv") summary(mov) table(mov$IMDb) table(mov$Netflix) table(mov$IMDb, mov$Netflix) summary(table(mov$Rotten.Tomatoes, mov$Prime.Video)) summary(mov) table(mov$IMDb) table(mov$Year) table(mov$IMDb,mov$Year) summary(table(mo...
/StatisticalTests.R
no_license
Simran5830/movie_analysis
R
false
false
1,224
r
library(dplyr) mov<-read.csv("C:/Users/Simran/Desktop/movie_analysis/TidyMovie.csv") summary(mov) table(mov$IMDb) table(mov$Netflix) table(mov$IMDb, mov$Netflix) summary(table(mov$Rotten.Tomatoes, mov$Prime.Video)) summary(mov) table(mov$IMDb) table(mov$Year) table(mov$IMDb,mov$Year) summary(table(mo...
ones <- function(a){ return(switch(a,"one ","two ","three ","four ","five ","six ","seven ","eight ","nine ")) } teens <- function(a){ return(switch(a,"eleven ","twelve ","thirteen ","fourteen ","fifteen ", "sixteen ","seventeen ","eighteen ","nineteen ")) } tens <- function(a){ return(switch(a,"te...
/1-9999.R
no_license
ElinorThorne/QA_Work
R
false
false
962
r
ones <- function(a){ return(switch(a,"one ","two ","three ","four ","five ","six ","seven ","eight ","nine ")) } teens <- function(a){ return(switch(a,"eleven ","twelve ","thirteen ","fourteen ","fifteen ", "sixteen ","seventeen ","eighteen ","nineteen ")) } tens <- function(a){ return(switch(a,"te...
#' @export as_tibble.googlesheets4_schema_SheetProperties <- function(x, ...) { tibble::tibble( # TODO: open question whether I should explicitly unescape title here name = glean_chr(x, "title"), index = glean_int(x, "index"), id = glean_int(x, "sheetId"), type ...
/R/schema_SheetProperties.R
permissive
MarkEdmondson1234/googlesheets4
R
false
false
554
r
#' @export as_tibble.googlesheets4_schema_SheetProperties <- function(x, ...) { tibble::tibble( # TODO: open question whether I should explicitly unescape title here name = glean_chr(x, "title"), index = glean_int(x, "index"), id = glean_int(x, "sheetId"), type ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rhymer.R \name{get_content} \alias{get_content} \title{Extract content from Datamuse API call.} \usage{ get_content(full_path, return_type = "df", limit = 10) } \arguments{ \item{full_path}{API path to append to Datamuse API endpoint.} \item...
/man/get_content.Rd
no_license
landesbergn/rhymer
R
false
true
813
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rhymer.R \name{get_content} \alias{get_content} \title{Extract content from Datamuse API call.} \usage{ get_content(full_path, return_type = "df", limit = 10) } \arguments{ \item{full_path}{API path to append to Datamuse API endpoint.} \item...
#1b) # i) Simulating 1 block lifetime of Xa and Xb. Xa = rexp(n=1, rate=1/10) # Simulating 1 draw of Xa. Xb = rexp(n=1, rate=1/10) # Simulation 1 draw of Xb. x = max(Xa, Xb) # Taking the maximum of Xa and Xb. # ii) Repeating step i) 10,000 times using the replicate function. size10k = replicate(10000, max(rexp(n=1, ra...
/Project 1/Question 1.R
no_license
vishnubapana/Data-Science
R
false
false
1,145
r
#1b) # i) Simulating 1 block lifetime of Xa and Xb. Xa = rexp(n=1, rate=1/10) # Simulating 1 draw of Xa. Xb = rexp(n=1, rate=1/10) # Simulation 1 draw of Xb. x = max(Xa, Xb) # Taking the maximum of Xa and Xb. # ii) Repeating step i) 10,000 times using the replicate function. size10k = replicate(10000, max(rexp(n=1, ra...
############# 27-OCT-2014 ############# It is just a trial version of codes. ############# samiri2@unl.edu ################################### ################################# Ensemble SHC<-function (x,kn0,B=200){ x<-cbind(x,rep(0,nrow(x))) Len<-dim(x) clusterO<-Len[2] b<-1 # it is 4 knmin<-2;knma...
/GHCsource/codes/archive/SHC.R
no_license
saeidamiri1/GHC
R
false
false
11,266
r
############# 27-OCT-2014 ############# It is just a trial version of codes. ############# samiri2@unl.edu ################################### ################################# Ensemble SHC<-function (x,kn0,B=200){ x<-cbind(x,rep(0,nrow(x))) Len<-dim(x) clusterO<-Len[2] b<-1 # it is 4 knmin<-2;knma...
############## PLOTTING FUNCTIONS FOR betaMPT #' Plot Parameter Estimates #' #' Plot parameter estimates for hierarchical MPT models. #' #' @param x a fitted Beta or latent-trait MPT model #' @param includeIndividual whether to plot individual estimates #' @param addLines whether to connect individual parame...
/R/plotParameters.R
no_license
cran/TreeBUGS
R
false
false
3,010
r
############## PLOTTING FUNCTIONS FOR betaMPT #' Plot Parameter Estimates #' #' Plot parameter estimates for hierarchical MPT models. #' #' @param x a fitted Beta or latent-trait MPT model #' @param includeIndividual whether to plot individual estimates #' @param addLines whether to connect individual parame...
##jmd ##4.17.12 ##get_gene_supp_mat.r split.names <- function(x){ unlist(strsplit(x=gsub('[CCO-EXTRACELLULAR]', '', x, fixed=TRUE), split='\\.5\\.' )) } multi.met.gene.supp <- function(z0){ z <- t(z0) multi.met <- grep(', ', rownames(z), value=TRUE, fixed=TRUE) for (mm in multi.met){ mets <- unlis...
/get_gene_supp_mat.r
no_license
djinnome/crop
R
false
false
2,931
r
##jmd ##4.17.12 ##get_gene_supp_mat.r split.names <- function(x){ unlist(strsplit(x=gsub('[CCO-EXTRACELLULAR]', '', x, fixed=TRUE), split='\\.5\\.' )) } multi.met.gene.supp <- function(z0){ z <- t(z0) multi.met <- grep(', ', rownames(z), value=TRUE, fixed=TRUE) for (mm in multi.met){ mets <- unlis...
library(data.table) library(dplyr) data.long = data.table(read.csv('Data/cascade_cd4init_agegr.csv', stringsAsFactors=FALSE)) data.long$sex = factor(data.long$sex, levels=c('Male', 'Female')) data.long$age = factor(data.long$agegr, levels=c('15-19', '20-24', '25-29', '30-34', '35-39', '40-44',...
/prepare-data-dist.R
permissive
rlglaubius/NaturalHistorySynthesis
R
false
false
770
r
library(data.table) library(dplyr) data.long = data.table(read.csv('Data/cascade_cd4init_agegr.csv', stringsAsFactors=FALSE)) data.long$sex = factor(data.long$sex, levels=c('Male', 'Female')) data.long$age = factor(data.long$agegr, levels=c('15-19', '20-24', '25-29', '30-34', '35-39', '40-44',...
setwd("V:/Data Analytics/RPractice/coursera") a<-read.table("household_power_consumption.txt",sep=";",heade=T,na.strings = c("?")) a[,"Date"]<-as.Date(a$Date,format="%d/%m/%Y") a1<-a[a[,"Date"]=="2007-02-01"|a[,"Date"]== "2007-02-02",] a1$DateTime<-strptime(do.call(paste, c(a1[c("Date", "Time")], sep = " ")),format="%Y...
/plot2.R
no_license
ShankerGCEO/ExploratoryDataCourseProject1
R
false
false
503
r
setwd("V:/Data Analytics/RPractice/coursera") a<-read.table("household_power_consumption.txt",sep=";",heade=T,na.strings = c("?")) a[,"Date"]<-as.Date(a$Date,format="%d/%m/%Y") a1<-a[a[,"Date"]=="2007-02-01"|a[,"Date"]== "2007-02-02",] a1$DateTime<-strptime(do.call(paste, c(a1[c("Date", "Time")], sep = " ")),format="%Y...
#' Retrieving a BigML Dataset #' @export #' @family dataset methods #' @references \url{https://bigml.com/developers/datasets} #' @param source_id A string giving the name of the source id. #' @param include_overview A logical value indicating whether to provide a #' simple data frame overview of fields. #' @template d...
/bigml/R/getDataset.R
no_license
ingted/R-Examples
R
false
false
820
r
#' Retrieving a BigML Dataset #' @export #' @family dataset methods #' @references \url{https://bigml.com/developers/datasets} #' @param source_id A string giving the name of the source id. #' @param include_overview A logical value indicating whether to provide a #' simple data frame overview of fields. #' @template d...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define server logic required to draw a histogram function(input, output) { outp...
/mdm/server.R
no_license
mdmeschi72/shinyExperiment
R
false
false
382
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) # Define server logic required to draw a histogram function(input, output) { outp...
###pie chart example expenditure<-c("Housing","Food","Cloths","Entertainment","Other") amount<-c(600,300,150,100,200) ##x,y #example -1 pie(amount,expenditure) #example -2 pie(amount, labels=as.character(expenditure), main="Monthly Expenditure Breakdown", col=c("red","orange","yellow","blue","green"), ...
/Data_Visualization_5th_Jul.r
no_license
vimleshtech/rlanguage-tutorial
R
false
false
4,050
r
###pie chart example expenditure<-c("Housing","Food","Cloths","Entertainment","Other") amount<-c(600,300,150,100,200) ##x,y #example -1 pie(amount,expenditure) #example -2 pie(amount, labels=as.character(expenditure), main="Monthly Expenditure Breakdown", col=c("red","orange","yellow","blue","green"), ...
\name{print.info.atomic} \alias{print.info.atomic} \title{Print a Column Analysis...} \usage{\method{print}{info.atomic}(x, ...)} \description{Print a Column Analysis} \details{Correctly format and display the analysis of an individual column.} \value{the object (invisibly)} \arguments{\item{x}{a \code{column.analysis}...
/man/print.info.atomic.Rd
no_license
zeligdev/ZeligDVN
R
false
false
361
rd
\name{print.info.atomic} \alias{print.info.atomic} \title{Print a Column Analysis...} \usage{\method{print}{info.atomic}(x, ...)} \description{Print a Column Analysis} \details{Correctly format and display the analysis of an individual column.} \value{the object (invisibly)} \arguments{\item{x}{a \code{column.analysis}...
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.800335188...
/meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615845635-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
735
r
testlist <- list(Rs = numeric(0), atmp = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.56898424065867e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.800335188...
#' Make all HTTP requests return a fake response #' #' In this context, HTTP verb functions raise a 'message' so that test code can #' assert that the requests are made. As in [without_internet()], the message #' raised has a well-defined shape, made of three #' elements, separated by space: (1) the request #' method (...
/R/fake-http.R
no_license
cran/httptest
R
false
false
4,371
r
#' Make all HTTP requests return a fake response #' #' In this context, HTTP verb functions raise a 'message' so that test code can #' assert that the requests are made. As in [without_internet()], the message #' raised has a well-defined shape, made of three #' elements, separated by space: (1) the request #' method (...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rankclust.R \name{rankclust} \alias{rankclust} \title{Model-based clustering for multivariate partial ranking} \usage{ rankclust( data, m = ncol(data), K = 1, criterion = "bic", Qsem = 100, Bsem = 20, RjSE = m * (m - 1)/2, RjM...
/fuzzedpackages/Rankcluster/man/rankclust.Rd
no_license
akhikolla/testpackages
R
false
true
4,216
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rankclust.R \name{rankclust} \alias{rankclust} \title{Model-based clustering for multivariate partial ranking} \usage{ rankclust( data, m = ncol(data), K = 1, criterion = "bic", Qsem = 100, Bsem = 20, RjSE = m * (m - 1)/2, RjM...
# Loading provided datasets - loading from local machine NEI <- readRDS("~/Exploratory_Data_Analysis/Assignment_2/summarySCC_PM25.rds") SCC <- readRDS("~/Exploratory_Data_Analysis/Assignment_2/Source_Classification_Code.rds") # Sampling NEI_sampling <- NEI[sample(nrow(NEI), size=5000, replace=F), ] # Subset data an...
/Assignment2/plot2.R
no_license
yewwah/Exploratory-Data-Analysis
R
false
false
877
r
# Loading provided datasets - loading from local machine NEI <- readRDS("~/Exploratory_Data_Analysis/Assignment_2/summarySCC_PM25.rds") SCC <- readRDS("~/Exploratory_Data_Analysis/Assignment_2/Source_Classification_Code.rds") # Sampling NEI_sampling <- NEI[sample(nrow(NEI), size=5000, replace=F), ] # Subset data an...
require(tidyverse) require(shiny) require(ggplot2) require(plotly) require(viridis) require(hrbrthemes) require(gtools) require(shinythemes) require(shinyWidgets) require(shinymaterial) require(DT) scores_df <- read.csv("data:/scoresspread.csv") team_input <- selectInput( inputId = "team_input", choices = sort(un...
/shiny:/ui.R
no_license
mneils-9/ac-group3-final-project
R
false
false
19,089
r
require(tidyverse) require(shiny) require(ggplot2) require(plotly) require(viridis) require(hrbrthemes) require(gtools) require(shinythemes) require(shinyWidgets) require(shinymaterial) require(DT) scores_df <- read.csv("data:/scoresspread.csv") team_input <- selectInput( inputId = "team_input", choices = sort(un...
use_gitlab_ci <- function(path = ".", force = is_force(), ignore = TRUE) { pkg <- as.package(path) use_template("dot_gitlab-ci.yml", ".gitlab-ci.yml", ignore = ignore, force = force, pkg = pkg) use_directory(".gitlab-ci", ignore = TRUE, pkg = pkg) ...
/R/gitlab.R
no_license
jimsforks/packager
R
false
false
4,853
r
use_gitlab_ci <- function(path = ".", force = is_force(), ignore = TRUE) { pkg <- as.package(path) use_template("dot_gitlab-ci.yml", ".gitlab-ci.yml", ignore = ignore, force = force, pkg = pkg) use_directory(".gitlab-ci", ignore = TRUE, pkg = pkg) ...
library(tidyverse) library(phyloseq) library(vegan) setwd('') ps <- readRDS('Data/PhyloseqObject_filtered.rds') ps <- transform_sample_counts(ps, function(otu) {otu/sum(otu)}) setseed(3) # Subset the data, then call psn <- subset_samples(ps, Run=='2' & Gonad=='intact') multiBeta(psn, "Run2 Intact XXF vs XYF", "vega...
/src/NMDS_With_Ellipse.R
no_license
NielInfante/WV_16S
R
false
false
2,224
r
library(tidyverse) library(phyloseq) library(vegan) setwd('') ps <- readRDS('Data/PhyloseqObject_filtered.rds') ps <- transform_sample_counts(ps, function(otu) {otu/sum(otu)}) setseed(3) # Subset the data, then call psn <- subset_samples(ps, Run=='2' & Gonad=='intact') multiBeta(psn, "Run2 Intact XXF vs XYF", "vega...
#Zadanie1 ma1 = matrix(0:11, nrow = 3, ncol = 4) ma2 = matrix(2, nrow = 3, ncol = 4) ma3 = matrix(sample(1:3, 3), nrow = 3, ncol = 4) #Zadanie2 ma1 + ma2 ma1 - ma2 ma1 * ma2 ma1 / ma2 ma1 + ma3 ma1 - ma3 ma1 * ma3 ma1 / ma3 #Obliczenia działają w sposób zbliczony do matematycznego. #Działania arytmety...
/Jedrzej-Kowal.R
no_license
Kowal-Jedrzej/zlozone-obiekty
R
false
false
1,268
r
#Zadanie1 ma1 = matrix(0:11, nrow = 3, ncol = 4) ma2 = matrix(2, nrow = 3, ncol = 4) ma3 = matrix(sample(1:3, 3), nrow = 3, ncol = 4) #Zadanie2 ma1 + ma2 ma1 - ma2 ma1 * ma2 ma1 / ma2 ma1 + ma3 ma1 - ma3 ma1 * ma3 ma1 / ma3 #Obliczenia działają w sposób zbliczony do matematycznego. #Działania arytmety...
mutate_cond <- function(.data, condition, ..., envir = parent.frame()) { condition <- eval(substitute(condition), .data, envir) .data[condition , ] <- .data[condition, ] %>% mutate(..., na.rm = TRUE) .data } data <- data.frame(col1 = rep(c("A", "B", "C", "D", "E"), each = 10), c...
/data_cleaning_scripts/extra_code/TEST_mutate_cond.R
permissive
Canderson156/Arctic-shorebird-RSF-V3
R
false
false
661
r
mutate_cond <- function(.data, condition, ..., envir = parent.frame()) { condition <- eval(substitute(condition), .data, envir) .data[condition , ] <- .data[condition, ] %>% mutate(..., na.rm = TRUE) .data } data <- data.frame(col1 = rep(c("A", "B", "C", "D", "E"), each = 10), c...
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
/IntervalSurgeon/inst/testfiles/rcpp_depth/AFL_rcpp_depth/rcpp_depth_valgrind_files/1609856921-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
713
r
testlist <- list(pts = integer(0), ends = NULL, starts = NULL, sorted_ends = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0...
# This file is part of the standard setup for testthat. # It is recommended that you do not modify it. # # Where should you do additional test configuration? # Learn more about the roles of various files in: # * https://r-pkgs.org/tests.html # * https://testthat.r-lib.org/reference/test_package.html#special-files libr...
/tests/testthat.R
permissive
milanwiedemann/suddengains
R
false
false
382
r
# This file is part of the standard setup for testthat. # It is recommended that you do not modify it. # # Where should you do additional test configuration? # Learn more about the roles of various files in: # * https://r-pkgs.org/tests.html # * https://testthat.r-lib.org/reference/test_package.html#special-files libr...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/mepstrends/hc_ins/json/code/r/pctPOP__education__ins_ge65__.r
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
3,335
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
library(stringr) train_data <- read.table("UCI HAR Dataset//train//X_train.txt") train_data_y <- read.table("UCI HAR Dataset//train//y_train.txt") train_data <- cbind(train_data_y, train_data) test_data <- read.table("UCI HAR Dataset//test//X_test.txt") test_data_y <- read.table("UCI HAR Dataset//test//y_test.txt") t...
/run_analysis.R
no_license
jillpoilj/getdata_project
R
false
false
848
r
library(stringr) train_data <- read.table("UCI HAR Dataset//train//X_train.txt") train_data_y <- read.table("UCI HAR Dataset//train//y_train.txt") train_data <- cbind(train_data_y, train_data) test_data <- read.table("UCI HAR Dataset//test//X_test.txt") test_data_y <- read.table("UCI HAR Dataset//test//y_test.txt") t...
#' Compare champion with challengers globally #' #' The function creates objects that present global model perfromance using various measures. Those date can be easily #' ploted with \code{plot} function. It uses \code{auditor} package to create \code{\link[auditor]{model_performance}} of all passed #' explainers. Keep...
/R/overall_comparison.R
no_license
pragyanaischool/DALEXtra
R
false
false
6,612
r
#' Compare champion with challengers globally #' #' The function creates objects that present global model perfromance using various measures. Those date can be easily #' ploted with \code{plot} function. It uses \code{auditor} package to create \code{\link[auditor]{model_performance}} of all passed #' explainers. Keep...
data("diamonds") View(diamonds) ####Histogram of diamond price###### ggplot(data=diamonds) + geom_histogram(binwidth=500, aes(x=diamonds$price) ) + ggtitle("Diamond Price Distribution") + xlab("Diamond Price U$") + ylab("Frequency") + theme_classic() ##Mean## mean(diamonds$price) ###Median### median(diamon...
/Diamond.R
no_license
Surbhi273/Exploratory-Analysis-on-Diamond-Dataset
R
false
false
4,625
r
data("diamonds") View(diamonds) ####Histogram of diamond price###### ggplot(data=diamonds) + geom_histogram(binwidth=500, aes(x=diamonds$price) ) + ggtitle("Diamond Price Distribution") + xlab("Diamond Price U$") + ylab("Frequency") + theme_classic() ##Mean## mean(diamonds$price) ###Median### median(diamon...
#page no. 275 #problem 18 # formula used : area of regular hexagon =6*((1/2)*base*height) # 6 times area of triangle area_triangle = function(b,h) { return((b*h)/2) } #given: base = 8 b = base/2 #base of right angle triangle hypo = base #hypotenuse of right angle t...
/Basic_Engineering_Mathematics_by_John_Bird/CH26/EX26.18/Ex26_18.R
permissive
prashantsinalkar/R_TBC_Uploads
R
false
false
414
r
#page no. 275 #problem 18 # formula used : area of regular hexagon =6*((1/2)*base*height) # 6 times area of triangle area_triangle = function(b,h) { return((b*h)/2) } #given: base = 8 b = base/2 #base of right angle triangle hypo = base #hypotenuse of right angle t...
#------------------------------------------------------------------------------- # Environment Set-up #------------------------------------------------------------------------------- rm(list=ls(all=TRUE)) gc() procStartTime <- Sys.time() Version <- "6" .libPaths("E:/R-Packages") # Link Dropbox # library(RStudioAMI) ...
/model/xgboost_cv/rfs/xgboost_cv_rfs_6.R
no_license
vikasnitk85/Homesite
R
false
false
6,296
r
#------------------------------------------------------------------------------- # Environment Set-up #------------------------------------------------------------------------------- rm(list=ls(all=TRUE)) gc() procStartTime <- Sys.time() Version <- "6" .libPaths("E:/R-Packages") # Link Dropbox # library(RStudioAMI) ...
# --------------------------------------------------------------- # INPUT DATA ---------------------------------------------------- # --------------------------------------------------------------- data.loc = '/data_2017-2018' # location of data file(s) data.file = 'Table_1.3_Primary_Energy_Consumption_by_Sou...
/scripts/archive/Energy_Primary Energy Consumption by Source.R
no_license
S3researchUSC/ene505-figures
R
false
false
23,214
r
# --------------------------------------------------------------- # INPUT DATA ---------------------------------------------------- # --------------------------------------------------------------- data.loc = '/data_2017-2018' # location of data file(s) data.file = 'Table_1.3_Primary_Energy_Consumption_by_Sou...
# season1_co-usage_heatmap.r # calculate character co-usage rates for each character based on anther's ladder wii u season 1 data # co-usage rate is defined as [...] library(tidyverse) library(png) library(grid) library(gridExtra) library(RMySQL) cnx <- dbConnect(MySQL(), dbname='anthers_02_02_2016') df <- dbGetQue...
/anther_season1_co-usage/season1_co-usage_heatmap.r
no_license
rmuraglia/SmashViz
R
false
false
10,446
r
# season1_co-usage_heatmap.r # calculate character co-usage rates for each character based on anther's ladder wii u season 1 data # co-usage rate is defined as [...] library(tidyverse) library(png) library(grid) library(gridExtra) library(RMySQL) cnx <- dbConnect(MySQL(), dbname='anthers_02_02_2016') df <- dbGetQue...
source('./batters.r') source('./positions.r') write.csv(batters, file="./2018-score-batters.csv")
/score.r
no_license
MarkBorcherding/baseballs
R
false
false
103
r
source('./batters.r') source('./positions.r') write.csv(batters, file="./2018-score-batters.csv")
setwd("C:/Users/Tong/Desktop/Coursera/data") household_data <- read.table("household_power_consumption.txt",sep = ";",header = FALSE,col.names = c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3"),na.strings ="?",skip = grep("31/...
/plot2.R
no_license
tongsupakit/ExData_Plotting1
R
false
false
860
r
setwd("C:/Users/Tong/Desktop/Coursera/data") household_data <- read.table("household_power_consumption.txt",sep = ";",header = FALSE,col.names = c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3"),na.strings ="?",skip = grep("31/...