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
## Introduction to MCMC 1: Estimating a posterior binomial probability ## Steve Bellan 2015 ## Meaningful Modeling of Epidemiologic Data, 2012 AIMS, Muizenberg ###################################################################### ## By the end of this tutorial you should… ## * Understand how to write a flexible p...
/ICI3D_Lab7_MCMC-Binomial.R
no_license
nistara/RTutorials
R
false
false
9,974
r
## Introduction to MCMC 1: Estimating a posterior binomial probability ## Steve Bellan 2015 ## Meaningful Modeling of Epidemiologic Data, 2012 AIMS, Muizenberg ###################################################################### ## By the end of this tutorial you should… ## * Understand how to write a flexible p...
# Exercise 6: dplyr join operations # Install the `"nycflights13"` package. Load (`library()`) the package. # You'll also need to load `dplyr` #install.packages("nycflights13") # should be done already library("nycflights13") library("dplyr") # Create a dataframe of the average arrival delays for each _destination_,...
/exercise-6/exercise_6.R
permissive
Arasant/chapter-11-exercises
R
false
false
1,325
r
# Exercise 6: dplyr join operations # Install the `"nycflights13"` package. Load (`library()`) the package. # You'll also need to load `dplyr` #install.packages("nycflights13") # should be done already library("nycflights13") library("dplyr") # Create a dataframe of the average arrival delays for each _destination_,...
require(apTreeshape) require(phangorn) source("../R/prop.dist.R") source("../R/stemmy.R") nulltrs <- read.tree("../simulations/nulltrees.tre") longtrs <- read.tree("../simulations/longesttrees.tre") load("../simulations/hetdata_18.Rdata") hettrs <- lapply(het_18, function(x) x[[1]]) folders <- c("nulldataGTR","nulldata...
/simulation_results/process_sim_accuracy.R
no_license
duchene/GenomeAdequacy
R
false
false
1,541
r
require(apTreeshape) require(phangorn) source("../R/prop.dist.R") source("../R/stemmy.R") nulltrs <- read.tree("../simulations/nulltrees.tre") longtrs <- read.tree("../simulations/longesttrees.tre") load("../simulations/hetdata_18.Rdata") hettrs <- lapply(het_18, function(x) x[[1]]) folders <- c("nulldataGTR","nulldata...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/integrate.R \name{mod_activity} \alias{mod_activity} \title{# Determine module activity based on limma} \usage{ mod_activity(analyses, comp_group, subject_col) } \arguments{ \item{analyses}{List of \code{CEMiTool} objects} \item{comp_group}{...
/man/mod_activity.Rd
no_license
lubianat/CEMiTool
R
false
true
675
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/integrate.R \name{mod_activity} \alias{mod_activity} \title{# Determine module activity based on limma} \usage{ mod_activity(analyses, comp_group, subject_col) } \arguments{ \item{analyses}{List of \code{CEMiTool} objects} \item{comp_group}{...
# By Ludovic G. ###=========================================### ### Anova + Tukey ### ###=========================================### # Chargement et mise en forme des donnes data(iris) attach(iris) library(ggplot2) my_names = c("Species","Part","Measure","Value") iris.tidy = data.frame(mat...
/ANOVA_and_Tukey.R
no_license
LudovicGardy/R_Educational_Content
R
false
false
1,816
r
# By Ludovic G. ###=========================================### ### Anova + Tukey ### ###=========================================### # Chargement et mise en forme des donnes data(iris) attach(iris) library(ggplot2) my_names = c("Species","Part","Measure","Value") iris.tidy = data.frame(mat...
#' clean_corpus Function #' #' This function allows you to clean corpus. #' @param corpus input corpus #' @keywords corpus #' @export #' @examples #' clean-corpus(corpus) clean_corpus <- function(corpus){ corpus <- tm_map(corpus, stripWhitespace) corpus <- tm_map(corpus, removeNumbers) corpus <- tm...
/R/clean_corpus.R
no_license
yha2017/emadri3
R
false
false
495
r
#' clean_corpus Function #' #' This function allows you to clean corpus. #' @param corpus input corpus #' @keywords corpus #' @export #' @examples #' clean-corpus(corpus) clean_corpus <- function(corpus){ corpus <- tm_map(corpus, stripWhitespace) corpus <- tm_map(corpus, removeNumbers) corpus <- tm...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clfo.R \name{clfo} \alias{clfo} \title{Apparent clearance (observed) of drug} \usage{ clfo(aucinfo = NULL, dose = NULL) } \arguments{ \item{aucinfo}{The AUCINFO data (given in a vector form)} \item{dose}{The dose data (given in a vector form...
/openNCA/man/clfo.Rd
permissive
oillen/openNCA
R
false
true
3,184
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clfo.R \name{clfo} \alias{clfo} \title{Apparent clearance (observed) of drug} \usage{ clfo(aucinfo = NULL, dose = NULL) } \arguments{ \item{aucinfo}{The AUCINFO data (given in a vector form)} \item{dose}{The dose data (given in a vector form...
plot.cv.clogitL1 = function (x, ...) { matplot(x=x$lambda, y=cbind(x$mean_cv + x$se_cv, x$mean_cv - x$se_cv), type="p", pch=c("-","-"), col=c("gray", "gray"), xlab="log(lambda)", ylab="Conditional likelihood deviance", ...) matlines (x=rbind(x$lambda, x$lambda), y=rbind(x$mean_cv + x$se_cv, x$mean_cv - x$se_cv), ...
/clogitL1/R/plot.cv.clogitL1.R
no_license
akhikolla/InformationHouse
R
false
false
575
r
plot.cv.clogitL1 = function (x, ...) { matplot(x=x$lambda, y=cbind(x$mean_cv + x$se_cv, x$mean_cv - x$se_cv), type="p", pch=c("-","-"), col=c("gray", "gray"), xlab="log(lambda)", ylab="Conditional likelihood deviance", ...) matlines (x=rbind(x$lambda, x$lambda), y=rbind(x$mean_cv + x$se_cv, x$mean_cv - x$se_cv), ...
#Energetic Functional Space Expansion #Manuscript: "Functional space expansion driven by transitions between advantageous traits across a deep-sea energetic gradient" #Authors: S. River D. Bryant & Craig R. McClain ##Null Model ##Code Author: River Bryant ##################### Set-Up ############################...
/energetic_func_div_null_model.R
no_license
crmcclain/allenbivalves
R
false
false
6,263
r
#Energetic Functional Space Expansion #Manuscript: "Functional space expansion driven by transitions between advantageous traits across a deep-sea energetic gradient" #Authors: S. River D. Bryant & Craig R. McClain ##Null Model ##Code Author: River Bryant ##################### Set-Up ############################...
library(dplyr) features <- read.table("features.txt", col.names = c("n","functions")) activities <- read.table("activity_labels.txt", col.names = c("code", "activity")) subject_test <- read.table("test/subject_test.txt", col.names = "subject") x_train <- read.table("X_train.txt", col.names = features$functions) x_test...
/run_analysis.R
no_license
nnnachet/getandcleandata
R
false
false
1,873
r
library(dplyr) features <- read.table("features.txt", col.names = c("n","functions")) activities <- read.table("activity_labels.txt", col.names = c("code", "activity")) subject_test <- read.table("test/subject_test.txt", col.names = "subject") x_train <- read.table("X_train.txt", col.names = features$functions) x_test...
.onAttach <- function(...) { if (interactive()) { msg <- paste0("Using popEpi. See ?popEpi for info and ", "news(package = \"popEpi\") for news.") packageStartupMessage(msg) } using_r_devel <- grepl(pattern = "devel", x = base::R.version$status) if (using_r_dev...
/R/startup_message.R
no_license
cran/popEpi
R
false
false
832
r
.onAttach <- function(...) { if (interactive()) { msg <- paste0("Using popEpi. See ?popEpi for info and ", "news(package = \"popEpi\") for news.") packageStartupMessage(msg) } using_r_devel <- grepl(pattern = "devel", x = base::R.version$status) if (using_r_dev...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eventFrameApi.r \name{eventFrame$createEventFrame} \alias{eventFrame$createEventFrame} \title{Create an event frame as a child of the specified event frame.} \arguments{ \item{webId}{The ID of the parent event frame on which to create the eve...
/man/eventFrame-cash-createEventFrame.Rd
permissive
aj9253/PI-Web-API-Client-R
R
false
true
566
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eventFrameApi.r \name{eventFrame$createEventFrame} \alias{eventFrame$createEventFrame} \title{Create an event frame as a child of the specified event frame.} \arguments{ \item{webId}{The ID of the parent event frame on which to create the eve...
################################################################### ## ## ## This file stores global variables and initializes the project ## ## ## ################################################...
/src/00c_main.r
permissive
sachijay/project_template
R
false
false
452
r
################################################################### ## ## ## This file stores global variables and initializes the project ## ## ## ################################################...
library(ggforce) ### Name: position_jitternormal ### Title: Jitter points with normally distributed random noise ### Aliases: position_jitternormal ### ** Examples # Example data df <- data.frame( x = sample(1:3, 1500, TRUE), y = sample(1:3, 1500, TRUE) ) # position_jitter results in rectangular clusters ggplo...
/data/genthat_extracted_code/ggforce/examples/position_jitternormal.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,000
r
library(ggforce) ### Name: position_jitternormal ### Title: Jitter points with normally distributed random noise ### Aliases: position_jitternormal ### ** Examples # Example data df <- data.frame( x = sample(1:3, 1500, TRUE), y = sample(1:3, 1500, TRUE) ) # position_jitter results in rectangular clusters ggplo...
# Assigning sims to scenarios and experiments within the Hurlbert & Stegen model params = read.table('clipboard', header = T, sep = '\t', stringsAsFactors = F) params$scenario[params$sim.id >= 6245 & params$energy.gradient=='on'] = 'K' params$scenario[params$sim.id >= 6245 & params$specn.gradient == 'on'] = 'S' params...
/code/hurlbert_stegen_experiment_assignments.r
no_license
sELDIG/SimulationStudy
R
false
false
1,552
r
# Assigning sims to scenarios and experiments within the Hurlbert & Stegen model params = read.table('clipboard', header = T, sep = '\t', stringsAsFactors = F) params$scenario[params$sim.id >= 6245 & params$energy.gradient=='on'] = 'K' params$scenario[params$sim.id >= 6245 & params$specn.gradient == 'on'] = 'S' params...
# set up ------------------------------------------------------------------ library(here) library(tidyverse) library(scales) library(tidylog) library(janitor) library(readxl) library(ggrepel) here() # Graph colors ----------------------------------------------------- THF_red <- "#dd0031" THF_red_25pct <- "#f7bfcc" ...
/R/00_SetUp.R
permissive
HFAnalyticsLab/IAPT
R
false
false
3,216
r
# set up ------------------------------------------------------------------ library(here) library(tidyverse) library(scales) library(tidylog) library(janitor) library(readxl) library(ggrepel) here() # Graph colors ----------------------------------------------------- THF_red <- "#dd0031" THF_red_25pct <- "#f7bfcc" ...
library(ape) library(phangorn) library(stringr) library(tidyverse) source("~/Dropbox/Bird_body_size-analysis/bird_body_size/scripts/00_functions.R") # load temp data temp.df <- read.csv("~/Dropbox/Bird_body_size-analysis/bird_body_size/data/temp_data.csv") regexp <- "[[:digit:]]+" #regex to extract year from column na...
/scripts/03_stats_cleaning.R
no_license
elinck/bird_body_size
R
false
false
20,601
r
library(ape) library(phangorn) library(stringr) library(tidyverse) source("~/Dropbox/Bird_body_size-analysis/bird_body_size/scripts/00_functions.R") # load temp data temp.df <- read.csv("~/Dropbox/Bird_body_size-analysis/bird_body_size/data/temp_data.csv") regexp <- "[[:digit:]]+" #regex to extract year from column na...
#' Generalized Turnbull's Estimator #' #' The \code{gte} function computes the generalized Turnbull's estimator proposed by Dehghan and Duchesne (2011). #' It is a nonparametric estimator of a conditional survival function given a vector of continuous covariates #' that can handle interval-censored lifetimes. ...
/gte/R/gte-package.R
no_license
ingted/R-Examples
R
false
false
2,050
r
#' Generalized Turnbull's Estimator #' #' The \code{gte} function computes the generalized Turnbull's estimator proposed by Dehghan and Duchesne (2011). #' It is a nonparametric estimator of a conditional survival function given a vector of continuous covariates #' that can handle interval-censored lifetimes. ...
# Script to analyse Riaz et al RNaseq Dataset to find correlation of CCL5 and IL12 to response to PD-1 # performed by Marcel P. Trefny for manuscript of Kirchhammer et al STM 2020 # BiocManager::install(c("GOstats", "limma","TxDb.Hsapiens.UCSC.hg38.knownGene", "NbClust", "edgeR", "locfit","RColorBrewer", "grDevices", ...
/Riaz2017_RNAseq_reanalysis/201030_Riaz_Cell2017_edgeR_Analysis.R
no_license
advodan/Deposition_KirchhammerSTM2022
R
false
false
35,610
r
# Script to analyse Riaz et al RNaseq Dataset to find correlation of CCL5 and IL12 to response to PD-1 # performed by Marcel P. Trefny for manuscript of Kirchhammer et al STM 2020 # BiocManager::install(c("GOstats", "limma","TxDb.Hsapiens.UCSC.hg38.knownGene", "NbClust", "edgeR", "locfit","RColorBrewer", "grDevices", ...
message("Create an auto-closing SSH tunnel in the backgroud") system("ssh -f -o ExitOnForwardFailure=yes stat1006.eqiad.wmnet -L 3307:analytics-slave.eqiad.wmnet:3306 sleep 10") library(RMySQL) con <- dbConnect(MySQL(), host = "127.0.0.1", group = "client", dbname = "log", port = 3307) #query testsatisfaction dataset...
/T187827/Feb2018Report/full_desktop_data_Feb18.R
no_license
MeganNeisler/SDoC-Baseline-Metrics-Redux
R
false
false
8,763
r
message("Create an auto-closing SSH tunnel in the backgroud") system("ssh -f -o ExitOnForwardFailure=yes stat1006.eqiad.wmnet -L 3307:analytics-slave.eqiad.wmnet:3306 sleep 10") library(RMySQL) con <- dbConnect(MySQL(), host = "127.0.0.1", group = "client", dbname = "log", port = 3307) #query testsatisfaction dataset...
# 차원축소 # 변수 4개인 4차원 데이터에 대한 산점도 그리는 것 => 4차원을 2차원으로 축소 그림 install.packages("Rtsne") library(Rtsne) library(ggplot2) iris ds <- iris[, -5] #품종 정보 제외 ds # 중복 데이터 제거 : 102, 143 dup <- which(duplicated(ds)) dup #143번째 행 중복 ds <- ds[-dup, ] ds.y <- iris$Species[-dup] #중복을 제외한 품종 정보 ds.y # tsne ...
/workspace2/RLab_Chap08(데이터시각화)/RLab03.R
no_license
mjh1583/BigDataEducation
R
false
false
1,529
r
# 차원축소 # 변수 4개인 4차원 데이터에 대한 산점도 그리는 것 => 4차원을 2차원으로 축소 그림 install.packages("Rtsne") library(Rtsne) library(ggplot2) iris ds <- iris[, -5] #품종 정보 제외 ds # 중복 데이터 제거 : 102, 143 dup <- which(duplicated(ds)) dup #143번째 행 중복 ds <- ds[-dup, ] ds.y <- iris$Species[-dup] #중복을 제외한 품종 정보 ds.y # tsne ...
## Run this on JHPCE at ## /dcs04/lieber/lcolladotor/with10x_LIBD001/HumanPilot/Analysis/spatialLIBD_files library("SingleCellExperiment") library("here") library("sessioninfo") ## Output directory dir.create(here( "Analysis", "spatialLIBD_files" ), showWarnings = FALSE) ## Load data load( here( ...
/inst/scripts/make-data_spatialLIBD.R
no_license
LieberInstitute/spatialLIBD
R
false
false
14,177
r
## Run this on JHPCE at ## /dcs04/lieber/lcolladotor/with10x_LIBD001/HumanPilot/Analysis/spatialLIBD_files library("SingleCellExperiment") library("here") library("sessioninfo") ## Output directory dir.create(here( "Analysis", "spatialLIBD_files" ), showWarnings = FALSE) ## Load data load( here( ...
MissionHospital <- read_excel("D:/Projects/UIC/IDS 594 Healthcare/Assignment - 9 Mission Hospitals/MissionHospital.xlsx", sheet = "MissionHospital") View(MissionHospital) data <- as.data.frame(MissionHospital) attach(data) str(data) columns_to_delete <- c("MARRIED","CAD-VSD","other-general","BODY HEIGHT","ALERT"...
/Price_prediction_hospital.R
no_license
archjais1993/Package-Pricing-at-Mission-Hospital
R
false
false
3,108
r
MissionHospital <- read_excel("D:/Projects/UIC/IDS 594 Healthcare/Assignment - 9 Mission Hospitals/MissionHospital.xlsx", sheet = "MissionHospital") View(MissionHospital) data <- as.data.frame(MissionHospital) attach(data) str(data) columns_to_delete <- c("MARRIED","CAD-VSD","other-general","BODY HEIGHT","ALERT"...
library(Pusto) library(plyr) library(ARPobservation) rm(list=ls()) source("R/PIR-APP.R") source_obj <- ls() cluster <- start_parallel(source_obj) clusterEvalQ(cluster, library(ARPobservation)) #------------------------------------------------------ # Momentary time sampling #------------------------------------------...
/R/check information matrices.R
no_license
jepusto/PIR-APP
R
false
false
1,698
r
library(Pusto) library(plyr) library(ARPobservation) rm(list=ls()) source("R/PIR-APP.R") source_obj <- ls() cluster <- start_parallel(source_obj) clusterEvalQ(cluster, library(ARPobservation)) #------------------------------------------------------ # Momentary time sampling #------------------------------------------...
####Download data######## if (!file.exists('./get_clean_data')){dir.create('./get_clean_data')} fileurl<-'https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip' download.file(fileurl,destfile = './get_clean_data/actdata.zip') #####read file######### train<- read.table('./get_clean_data...
/run_analysis.R
no_license
zhounanvet/get_clean_data
R
false
false
2,233
r
####Download data######## if (!file.exists('./get_clean_data')){dir.create('./get_clean_data')} fileurl<-'https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip' download.file(fileurl,destfile = './get_clean_data/actdata.zip') #####read file######### train<- read.table('./get_clean_data...
library(dplyr, warn.conflicts = F, quietly = T) library(purrr, warn.conflicts = F, quietly = T) library(tidyr, warn.conflicts = F, quietly = T) library(bin2mi, warn.conflicts = F, quietly = T) pc <- 0.9 m2 <<- 0.1 pt <- pc - m2 n_obs <- 100 do_rate <- 0.3 num_n_mi <- 10 set_n <- 8 mp_y1 <- 0.325 x1 <- parallel::mcl...
/pgms_slurm/p2_mnar/ign/p2_mnar_ign_set_n8.R
no_license
yuliasidi/wilson_newcombe
R
false
false
7,863
r
library(dplyr, warn.conflicts = F, quietly = T) library(purrr, warn.conflicts = F, quietly = T) library(tidyr, warn.conflicts = F, quietly = T) library(bin2mi, warn.conflicts = F, quietly = T) pc <- 0.9 m2 <<- 0.1 pt <- pc - m2 n_obs <- 100 do_rate <- 0.3 num_n_mi <- 10 set_n <- 8 mp_y1 <- 0.325 x1 <- parallel::mcl...
##### info #### # file: microstegium_germination_model_2018_density_exp # author: Amy Kendig # date last edited: 10/16/20 # goal: analyze Microstegium germination #### set-up #### # clear all existing data rm(list=ls()) # load packages library(tidyverse) library(brms) # import data set1 <- read_csv("data/mv_germi...
/code/microstegium_germination_model_2018_density_exp.R
no_license
aekendig/microstegium-bipolaris
R
false
false
4,044
r
##### info #### # file: microstegium_germination_model_2018_density_exp # author: Amy Kendig # date last edited: 10/16/20 # goal: analyze Microstegium germination #### set-up #### # clear all existing data rm(list=ls()) # load packages library(tidyverse) library(brms) # import data set1 <- read_csv("data/mv_germi...
# Probabilidade ?dbinom # Probabilidade Cumulativa ?pbinom # dbinom(x, size, prob) # x = nº de sucessos # size = nº de experimentos # prob = probabilidade #1 # Problema: passar de 4 sinaleiras em 4 tempos, com probabilidade de 0, 1, 2, 3 e 4 # Nº de sucessos = 0, 1, 2, 3, 4 # Tamanho = 4 sinaleiras # Probabilidade = ...
/estatistica-1/distBinomial.r
no_license
ruthannee/dataTraining-R
R
false
false
634
r
# Probabilidade ?dbinom # Probabilidade Cumulativa ?pbinom # dbinom(x, size, prob) # x = nº de sucessos # size = nº de experimentos # prob = probabilidade #1 # Problema: passar de 4 sinaleiras em 4 tempos, com probabilidade de 0, 1, 2, 3 e 4 # Nº de sucessos = 0, 1, 2, 3, 4 # Tamanho = 4 sinaleiras # Probabilidade = ...
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(sf) library(readxl) library(tidyverse) library(lubridate) # Directories inputdir <- "data/da_sampling/2020_request/raw" outputdir <- "data/da_sampling/2020_request/processed"...
/data/da_sampling/2020_request/format_viscera_data_crabs.R
no_license
vrsaccomanno/dungeness
R
false
false
13,418
r
# Clear workspace rm(list = ls()) # Setup ################################################################################ # Packages library(sf) library(readxl) library(tidyverse) library(lubridate) # Directories inputdir <- "data/da_sampling/2020_request/raw" outputdir <- "data/da_sampling/2020_request/processed"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neuron_side.R \name{soma_side} \alias{soma_side} \alias{soma_side.neuronlist} \alias{soma_side.neuron} \alias{synapse_side_index} \alias{synapse_side_index.neuronlist} \alias{synapse_side_index.neuron} \title{Calculate which side of the brain...
/man/soma_side.Rd
no_license
natverse/hemibrainr
R
false
true
2,312
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neuron_side.R \name{soma_side} \alias{soma_side} \alias{soma_side.neuronlist} \alias{soma_side.neuron} \alias{synapse_side_index} \alias{synapse_side_index.neuronlist} \alias{synapse_side_index.neuron} \title{Calculate which side of the brain...
library(ggplot2) library(dplyr) # Quantitive analysis ---------------------------------- ## Number of tweets depends on publish time tweets2$when %>% table() %>% as.data.frame.table() %>% mutate(.data = ., Var1 = `.`) %>% select(2:3) %>% ggplot(data = ., aes(x = Var1, y = Freq)) + geom_bar(stat = "ident...
/quantitive analysis.R
no_license
SebastianKuzara/twitter-poleng
R
false
false
1,181
r
library(ggplot2) library(dplyr) # Quantitive analysis ---------------------------------- ## Number of tweets depends on publish time tweets2$when %>% table() %>% as.data.frame.table() %>% mutate(.data = ., Var1 = `.`) %>% select(2:3) %>% ggplot(data = ., aes(x = Var1, y = Freq)) + geom_bar(stat = "ident...
function(){ library(tidyverse) Advertising <- read_csv('http://faculty.marshall.usc.edu/gareth-james/ISL/Advertising.csv', col_types = cols(X1 = col_skip())) model_3_2 <- Advertising %>% lm(sales ~ TV, data = .) %>% coef() B0 <- seq(4.9, 9.1, length.out = 100) B1 <- seq(0...
/ISL_Graphics/3_Linear_Regression/Fig_3_2.R
no_license
ssh352/Behold-the-Vision
R
false
false
1,096
r
function(){ library(tidyverse) Advertising <- read_csv('http://faculty.marshall.usc.edu/gareth-james/ISL/Advertising.csv', col_types = cols(X1 = col_skip())) model_3_2 <- Advertising %>% lm(sales ~ TV, data = .) %>% coef() B0 <- seq(4.9, 9.1, length.out = 100) B1 <- seq(0...
#' Load migration data for given countries from Worldbank #' #' Data about countrywise migration in and out from given countries #' is obtained from the Worldbank database. #' #' @param countries a vector of country names #' #' @return migration.dat list of migration data #' #' @author Juuso Parkkinen \email{sorvi...
/R/worldbank.R
permissive
juusohaapanen/soRvi-dev
R
false
false
2,951
r
#' Load migration data for given countries from Worldbank #' #' Data about countrywise migration in and out from given countries #' is obtained from the Worldbank database. #' #' @param countries a vector of country names #' #' @return migration.dat list of migration data #' #' @author Juuso Parkkinen \email{sorvi...
#clean workspace rm(list = ls()) library(ggplot2) library(reshape2) library(tree) library(e1071) library(randomForest) library(pROC) library(xtable) library(DMwR) #sampling #set working directory to the current source file directory #dir.wd <- "Dropbox/R workspace/github/physionet_oversampling/" dir.wd <- '' source...
/physionet_oversampling.R
no_license
jasonpcasey/Physionet-EHG-imbalanced-data
R
false
false
18,481
r
#clean workspace rm(list = ls()) library(ggplot2) library(reshape2) library(tree) library(e1071) library(randomForest) library(pROC) library(xtable) library(DMwR) #sampling #set working directory to the current source file directory #dir.wd <- "Dropbox/R workspace/github/physionet_oversampling/" dir.wd <- '' source...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pagespeedonline_functions.R \name{is.NullOb} \alias{is.NullOb} \title{A helper function that tests whether an object is either NULL _or_ a list of NULLs} \usage{ is.NullOb(x) } \description{ A helper function that tests whether an object is e...
/googlepagespeedonlinev1.auto/man/is.NullOb.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
373
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pagespeedonline_functions.R \name{is.NullOb} \alias{is.NullOb} \title{A helper function that tests whether an object is either NULL _or_ a list of NULLs} \usage{ is.NullOb(x) } \description{ A helper function that tests whether an object is e...
# Data from: # Johns Hopkins University Center for System Science and Engineering (JHU CCSE) library(dplyr) library(tidyr) baseURL = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series" f1 = list(family="Courier New, monospace", size=12, color="rgb...
/server.R
no_license
shubham123ch/3.shiny-project-coursera
R
false
false
3,766
r
# Data from: # Johns Hopkins University Center for System Science and Engineering (JHU CCSE) library(dplyr) library(tidyr) baseURL = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series" f1 = list(family="Courier New, monospace", size=12, color="rgb...
# Funções auxiliares # Obs: Caso tenha problemas com a acentuação, consulte este link: # https://support.rstudio.com/hc/en-us/articles/200532197-Character-Encoding # Configurando o diretório de trabalho # Coloque entre aspas o diretório de trabalho que você está usando no seu computador # setwd("~/Dropbox/DSA/BigData...
/RScripts/utils.R
no_license
bertaglia/DSA_MPJ01_sentimentalAnalysis
R
false
false
2,237
r
# Funções auxiliares # Obs: Caso tenha problemas com a acentuação, consulte este link: # https://support.rstudio.com/hc/en-us/articles/200532197-Character-Encoding # Configurando o diretório de trabalho # Coloque entre aspas o diretório de trabalho que você está usando no seu computador # setwd("~/Dropbox/DSA/BigData...
rm(list=ls()) dailykos=read.csv("C:/users/zahid/downloads/dailykos.csv") str(dailykos) distances=dist(dailykos[2:1546], method="euclidean") str(distances) cluster=hclust(distances, method="ward") str(cluster) plot(cluster) clusterGroups=cutree(cluster,k=7) cluster1=subset(dailykos, clusterGroups==1) cluster2=subset(dai...
/Clustering(in Text analytics, articles).R
no_license
zahidmak/dataAnalysis
R
false
false
927
r
rm(list=ls()) dailykos=read.csv("C:/users/zahid/downloads/dailykos.csv") str(dailykos) distances=dist(dailykos[2:1546], method="euclidean") str(distances) cluster=hclust(distances, method="ward") str(cluster) plot(cluster) clusterGroups=cutree(cluster,k=7) cluster1=subset(dailykos, clusterGroups==1) cluster2=subset(dai...
# plot1 Histogram Global_active_power data<- read.table('household_power_consumption.txt', sep=';', header = TRUE, colClasses = c('character', 'character', 'numeric', 'numeric', 'numeric', 'numeric','numeric', 'numeric', 'numeric'),na.strings = '?') # Read data, convert dates and subset on two days d...
/plot1.R
no_license
JBGu/ExData_Plotting1
R
false
false
743
r
# plot1 Histogram Global_active_power data<- read.table('household_power_consumption.txt', sep=';', header = TRUE, colClasses = c('character', 'character', 'numeric', 'numeric', 'numeric', 'numeric','numeric', 'numeric', 'numeric'),na.strings = '?') # Read data, convert dates and subset on two days d...
# Support Vector Machine (SVM) # Data Preprocessing # Import Dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] # Encoding targer Feature as Factor dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) # Spliting Dataset Into Training and Test Set library(caTools) set.seed(123) spl...
/Support_Vector_Machine_R.R
no_license
keyur-gohel/Social-Network-Ads-Classification
R
false
false
2,302
r
# Support Vector Machine (SVM) # Data Preprocessing # Import Dataset dataset = read.csv('Social_Network_Ads.csv') dataset = dataset[3:5] # Encoding targer Feature as Factor dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) # Spliting Dataset Into Training and Test Set library(caTools) set.seed(123) spl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BayesAnalysis_HelperFunctions.R \name{calculateLikelihood} \alias{calculateLikelihood} \title{A CLDL Function} \usage{ calculateLikelihood(data, list_id_vars, measure_var_yep, measure_var_nope, hypothesis) } \arguments{ \item{data}{the data...
/Bayes/man/calculateLikelihood.Rd
no_license
nu-childlab/theRpackages
R
false
true
1,200
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BayesAnalysis_HelperFunctions.R \name{calculateLikelihood} \alias{calculateLikelihood} \title{A CLDL Function} \usage{ calculateLikelihood(data, list_id_vars, measure_var_yep, measure_var_nope, hypothesis) } \arguments{ \item{data}{the data...
# F分布 ---- ## Functions ---- f.func_p <- function(df1, df2) function(x) df(x, df1 = df1, df2 = df2, ncp = 0L) f.func_c <- function(df1, df2) function(x) pf(x, df1 = df1, df2 = df2, ncp = 0L) f.formula <- " f(x) = \\frac{1}{\\mathrm{B}(d_1/2, d_2/2)} \\; \\left(\\frac{d_1\\,x}{d_1\\,x + d_2}\\right)^{d_1/2} \\; ...
/distributions/continuous/F.R
permissive
pablo-vivas/ProbabilityDistributionsViewer
R
false
false
1,437
r
# F分布 ---- ## Functions ---- f.func_p <- function(df1, df2) function(x) df(x, df1 = df1, df2 = df2, ncp = 0L) f.func_c <- function(df1, df2) function(x) pf(x, df1 = df1, df2 = df2, ncp = 0L) f.formula <- " f(x) = \\frac{1}{\\mathrm{B}(d_1/2, d_2/2)} \\; \\left(\\frac{d_1\\,x}{d_1\\,x + d_2}\\right)^{d_1/2} \\; ...
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R") source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R") reps<-50 outerreps<-1000 size<-rev(round(10^seq(2, 5, 0.25)))[ 5 ] nc<-12 plan(strategy=multisession, workers=nc) map(rev(1:outerreps), function(x){ start<-Sys.time() out<-checkpl...
/scripts/checkplots_for_parallel_amarel/asy_364.R
no_license
dushoff/diversity_metrics
R
false
false
535
r
source("/home/mr984/diversity_metrics/scripts/checkplot_initials.R") source("/home/mr984/diversity_metrics/scripts/checkplot_inf.R") reps<-50 outerreps<-1000 size<-rev(round(10^seq(2, 5, 0.25)))[ 5 ] nc<-12 plan(strategy=multisession, workers=nc) map(rev(1:outerreps), function(x){ start<-Sys.time() out<-checkpl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transform.R \name{datetime_to_indices} \alias{datetime_to_indices} \title{Convert a datetime range to the indices range in the WIND Toolkit dataset} \usage{ datetime_to_indices(datetime_from, datetime_to) } \arguments{ \item{datetime_from}{Th...
/man/datetime_to_indices.Rd
no_license
floresfdev/wtkapi
R
false
true
787
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transform.R \name{datetime_to_indices} \alias{datetime_to_indices} \title{Convert a datetime range to the indices range in the WIND Toolkit dataset} \usage{ datetime_to_indices(datetime_from, datetime_to) } \arguments{ \item{datetime_from}{Th...
#ruth.keogh@lshtm.ac.uk #mixoutsamp is a function which gives out-of sampling predictions from a mixed model fitted using lme. #'@param model: this is a mixed model fitted using lme #'@param newdata: this is a new data set for which it is desired to make predictions. The columns in the data should have the same n...
/mixoutsamp_v2.R
no_license
ruthkeogh/landmark_CF
R
false
false
10,920
r
#ruth.keogh@lshtm.ac.uk #mixoutsamp is a function which gives out-of sampling predictions from a mixed model fitted using lme. #'@param model: this is a mixed model fitted using lme #'@param newdata: this is a new data set for which it is desired to make predictions. The columns in the data should have the same n...
# plot 3 - 7/6/2015 if(!require("data.table")) install.packages("data.table") library(data.table) Sys.setlocale("LC_TIME", "English") #set the working directory if neccessary #setwd("C:/Etudes/stats") datafile<-"household_power_consumption.txt" ###retrieve the variable names ColName<-names(fread(datafile,nrows=0,h...
/plot3.R
no_license
samuel92/ExData_Plotting1
R
false
false
1,282
r
# plot 3 - 7/6/2015 if(!require("data.table")) install.packages("data.table") library(data.table) Sys.setlocale("LC_TIME", "English") #set the working directory if neccessary #setwd("C:/Etudes/stats") datafile<-"household_power_consumption.txt" ###retrieve the variable names ColName<-names(fread(datafile,nrows=0,h...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filepath.R \name{normalizePath} \alias{normalizePath} \title{normalize a path} \usage{ normalizePath(path) } \arguments{ \item{path}{the path to normalize} } \value{ a vector of normalized path components } \description{ normalize a path }
/man/normalizePath.Rd
no_license
roverrobot/make
R
false
true
318
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/filepath.R \name{normalizePath} \alias{normalizePath} \title{normalize a path} \usage{ normalizePath(path) } \arguments{ \item{path}{the path to normalize} } \value{ a vector of normalized path components } \description{ normalize a path }
####Setup App Data#### #Author: Mia Moore #Date: 7/23/2021 #Purpose: Setup other data objects to be passed to the app #input: # data/KC_Data # wa_county_vaccines.Rdata # wa_counties_master.csv #output: # actuals.rds # ds.maxvals.rds #Contains the following immune states: load("../data/KC_Data/DATA_AGGR.Rdata") l...
/App_Forecasts/App_Supplementary_Data.R
no_license
FredHutch/COVID_modeling_schools
R
false
false
1,432
r
####Setup App Data#### #Author: Mia Moore #Date: 7/23/2021 #Purpose: Setup other data objects to be passed to the app #input: # data/KC_Data # wa_county_vaccines.Rdata # wa_counties_master.csv #output: # actuals.rds # ds.maxvals.rds #Contains the following immune states: load("../data/KC_Data/DATA_AGGR.Rdata") l...
## Coursera Getting and Cleaning Data Course Project ##Tina Putnam # runAnalysis.r File Description: # This script will perform the following steps on the UCI HAR Dataset downloaded from # https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # 1. Merge the tr...
/run_anaylsis.R
no_license
harishkumarchandra/Getting-and-Cleaning-Data-Project-1
R
false
false
4,350
r
## Coursera Getting and Cleaning Data Course Project ##Tina Putnam # runAnalysis.r File Description: # This script will perform the following steps on the UCI HAR Dataset downloaded from # https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # 1. Merge the tr...
\name{datasets} \alias{datasets} \keyword{datasets} \title{ Example Data Sets } \description{ Example data sets for use in MARSS vignettes for the \code{\link{MARSS-package}}. \itemize{ \item{\link{plankton} Plankton data sets: Lake WA plankton 32-year time series and Ives et al data from West Long Lake. } ...
/man/datasets.Rd
permissive
nwfsc-timeseries/MARSS
R
false
false
824
rd
\name{datasets} \alias{datasets} \keyword{datasets} \title{ Example Data Sets } \description{ Example data sets for use in MARSS vignettes for the \code{\link{MARSS-package}}. \itemize{ \item{\link{plankton} Plankton data sets: Lake WA plankton 32-year time series and Ives et al data from West Long Lake. } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autota.R \name{stop_addin} \alias{stop_addin} \title{Disable the AutoTA RSTudio addin. You can either run this directly, or run it through the RStudio Addins menu.} \usage{ stop_addin() } \description{ Disable the AutoTA RSTudio addin. You ca...
/man/stop_addin.Rd
no_license
cran/autota
R
false
true
438
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autota.R \name{stop_addin} \alias{stop_addin} \title{Disable the AutoTA RSTudio addin. You can either run this directly, or run it through the RStudio Addins menu.} \usage{ stop_addin() } \description{ Disable the AutoTA RSTudio addin. You ca...
##load packages library(lubridate) library(dplyr) ##import data power <- read.table("~/Downloads/household_power_consumption.txt", stringsAsFactors = FALSE, na.strings = "?", sep = ";", header = TRUE) power <- tbl_df(power) ##convert to date format power$Date <- dmy(power$Date) power <- mutate(power, datehms = paste...
/plot4.R
no_license
tsheezy917/ExData_Plotting1
R
false
false
1,276
r
##load packages library(lubridate) library(dplyr) ##import data power <- read.table("~/Downloads/household_power_consumption.txt", stringsAsFactors = FALSE, na.strings = "?", sep = ";", header = TRUE) power <- tbl_df(power) ##convert to date format power$Date <- dmy(power$Date) power <- mutate(power, datehms = paste...
seqs<-read.table('HBXRNA.txt',sep='\t',header=TRUE,stringsAsFactors = FALSE)
/alignments_lab/readin.R
no_license
joelfnogueira/Genomics-Technologies-and-Analysis-Course
R
false
false
77
r
seqs<-read.table('HBXRNA.txt',sep='\t',header=TRUE,stringsAsFactors = FALSE)
\name{intrinsic} \alias{intrinsic} \title{Intrinsic Prior Distribution for Coefficients in BMA Models} \description{Creates an object representing the intrinsic prior on g, a special case of the tCCH mixture of g-priors on coefficients for BAS. } \usage{intrinsic(n=NULL)} \arguments{ \item{n}{the sample size; ...
/man/intrinsic.Rd
no_license
aespar21/BAS
R
false
false
1,258
rd
\name{intrinsic} \alias{intrinsic} \title{Intrinsic Prior Distribution for Coefficients in BMA Models} \description{Creates an object representing the intrinsic prior on g, a special case of the tCCH mixture of g-priors on coefficients for BAS. } \usage{intrinsic(n=NULL)} \arguments{ \item{n}{the sample size; ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selectFeatures.R \name{selectFeatures} \alias{selectFeatures} \alias{selectFeatures.collocations} \alias{selectFeatures.dfm} \alias{selectFeatures.tokenizedTexts} \alias{selectFeatures.tokens} \title{select features from an object} \usage{ se...
/man/selectFeatures.Rd
no_license
tbs08/quanteda
R
false
true
8,874
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/selectFeatures.R \name{selectFeatures} \alias{selectFeatures} \alias{selectFeatures.collocations} \alias{selectFeatures.dfm} \alias{selectFeatures.tokenizedTexts} \alias{selectFeatures.tokens} \title{select features from an object} \usage{ se...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/chartist-package.R \docType{package} \name{chartist-package} \alias{chartist-package} \title{Chartist.js for R} \description{ Chartist.js for R }
/man/chartist-package.Rd
permissive
ramnathv/chartist
R
false
false
233
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/chartist-package.R \docType{package} \name{chartist-package} \alias{chartist-package} \title{Chartist.js for R} \description{ Chartist.js for R }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/swissparl.R \docType{package} \name{swissparl} \alias{swissparl} \title{\code{swissparl} package} \description{ The Swiss Parliament Webservices R API } \details{ See the README on \href{https://github.com/zumbov2/swissparl#readme}...
/man/swissparl.Rd
no_license
cran/swissparl
R
false
true
333
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/swissparl.R \docType{package} \name{swissparl} \alias{swissparl} \title{\code{swissparl} package} \description{ The Swiss Parliament Webservices R API } \details{ See the README on \href{https://github.com/zumbov2/swissparl#readme}...
library(DESeq2) library(GenomicRanges) library(ggplot2) library(reshape) ################################## # allele-specific counts over SNPs cov = read.table('.../aseReadCounts_c172_allF1_infSites_alleleCov_DESeqNormalized_STAR_duprem.txt',header=T) ref = cov[,which(grepl('REF',colnames(cov)))] alt = cov[,which(grep...
/SalinityASEnormLRTyne.r
permissive
baoqingding/verta_jones_elife_2019
R
false
false
7,305
r
library(DESeq2) library(GenomicRanges) library(ggplot2) library(reshape) ################################## # allele-specific counts over SNPs cov = read.table('.../aseReadCounts_c172_allF1_infSites_alleleCov_DESeqNormalized_STAR_duprem.txt',header=T) ref = cov[,which(grepl('REF',colnames(cov)))] alt = cov[,which(grep...
#install.packages('Lahman') library(Lahman) # baseball data library library(tidyverse) library(dslabs) ds_theme_set() Teams %>% filter(yearID %in% 1961:2001) %>% mutate(HR_per_game = HR / G, R_per_game = R / G) %>% ggplot(aes(HR_per_game, R_per_game)) + geom_point(alpha = 0.5) Teams %>% filter(yearI...
/baseball.R
no_license
ouakniny/R
R
false
false
1,174
r
#install.packages('Lahman') library(Lahman) # baseball data library library(tidyverse) library(dslabs) ds_theme_set() Teams %>% filter(yearID %in% 1961:2001) %>% mutate(HR_per_game = HR / G, R_per_game = R / G) %>% ggplot(aes(HR_per_game, R_per_game)) + geom_point(alpha = 0.5) Teams %>% filter(yearI...
#' Logistic Regression #' #' Perform the logistic regression of Y on X #' @param X an n x p matrix of explanatory variables #' @param Y is an n dimensional vector of responses #' @keywords Logistic Regression #' @export ## Expit/sigmoid function myLogistic <- function(X, Y){ ## Perform the l...
/6/Stats202ABP/Stats202ABP/R/myLogistic.R
no_license
greek-geek/Statistics-Programming
R
false
false
1,583
r
#' Logistic Regression #' #' Perform the logistic regression of Y on X #' @param X an n x p matrix of explanatory variables #' @param Y is an n dimensional vector of responses #' @keywords Logistic Regression #' @export ## Expit/sigmoid function myLogistic <- function(X, Y){ ## Perform the l...
\name{select.knots} \alias{select.knots} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Knots selection for P-spline smoothing } \description{ Construct knots from either quantiles of observed time points or equally-spaced time points. } \usage{ select.knots(t,knots=10,p=3,option="equally-spaced...
/man/select.knots.Rd
no_license
lxiao5/face
R
false
false
1,106
rd
\name{select.knots} \alias{select.knots} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Knots selection for P-spline smoothing } \description{ Construct knots from either quantiles of observed time points or equally-spaced time points. } \usage{ select.knots(t,knots=10,p=3,option="equally-spaced...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/TableInsertInto.R \docType{methods} \name{sqlTableInsertInto} \alias{sqlTableInsertInto} \alias{sqlTableInsertInto,DBIConnection-method} \title{Insert rows into a table.} \usage{ sqlTableInsertInto(con, table, values, ...) \S4method{...
/man/sqlTableInsertInto.Rd
no_license
patricksilva/SQL
R
false
false
878
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/TableInsertInto.R \docType{methods} \name{sqlTableInsertInto} \alias{sqlTableInsertInto} \alias{sqlTableInsertInto,DBIConnection-method} \title{Insert rows into a table.} \usage{ sqlTableInsertInto(con, table, values, ...) \S4method{...
# Escolhendo e carregando o arquivo em .csv data = read.csv(file.choose(), header = T, sep = ",") # Carregar apenas a variavel de interesse x = data[,1] # Essa funcao determina se o valor eh discreto ou nao, retornando um boolean discreto = function(valor) { if(round(valor) != valor) { return(FALSE) } else...
/epEstat.R
no_license
amandaventurin-zz/EP-ESTATISTICA
R
false
false
14,234
r
# Escolhendo e carregando o arquivo em .csv data = read.csv(file.choose(), header = T, sep = ",") # Carregar apenas a variavel de interesse x = data[,1] # Essa funcao determina se o valor eh discreto ou nao, retornando um boolean discreto = function(valor) { if(round(valor) != valor) { return(FALSE) } else...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matrix2latex.R \name{matrix2latex} \alias{matrix2latex} \title{Convert matrix to LaTeX equation} \usage{ matrix2latex(x, fractions = FALSE, brackets = TRUE, ...) } \arguments{ \item{x}{a matrix} \item{fractions}{logical; if \code{TRUE}, try ...
/man/matrix2latex.Rd
no_license
friendly/matlib
R
false
true
1,227
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matrix2latex.R \name{matrix2latex} \alias{matrix2latex} \title{Convert matrix to LaTeX equation} \usage{ matrix2latex(x, fractions = FALSE, brackets = TRUE, ...) } \arguments{ \item{x}{a matrix} \item{fractions}{logical; if \code{TRUE}, try ...
##Main server.R for beta tool source("sources.R") source("server_explore.R") source("server_pages.R") source("server_about.R") source("server_biome.R") shinyServer(function(input,output,session){ env_serv=environment() ########=======####### ##====BIOME PAGE====## ########=======####### ##=====Read in sha...
/data_portal/server.R
no_license
scheng87/ebc_portal
R
false
false
4,338
r
##Main server.R for beta tool source("sources.R") source("server_explore.R") source("server_pages.R") source("server_about.R") source("server_biome.R") shinyServer(function(input,output,session){ env_serv=environment() ########=======####### ##====BIOME PAGE====## ########=======####### ##=====Read in sha...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect_operations.R \name{connect_suspend_contact_recording} \alias{connect_suspend_contact_recording} \title{When a contact is being recorded, this API suspends recording the call} \usage{ connect_suspend_contact_recording(InstanceId, Conta...
/paws/man/connect_suspend_contact_recording.Rd
permissive
sanchezvivi/paws
R
false
true
1,257
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/connect_operations.R \name{connect_suspend_contact_recording} \alias{connect_suspend_contact_recording} \title{When a contact is being recorded, this API suspends recording the call} \usage{ connect_suspend_contact_recording(InstanceId, Conta...
setwd("~/Dropbox/UO/Dissertation/data/Processed files/Study 1") library(psych); library(dplyr); library(ggplot2) # this file has post-task ratings, IDs, RR ratings, and task results # it's long by participant and group (each row is one p in one group) # task: 1 = PS, 2 = LGD, 3 = LOM, 4 = social # s1grp<-read.csv("Stu...
/problem solving scoring.R
no_license
nmldesjardins/Dissertation
R
false
false
24,395
r
setwd("~/Dropbox/UO/Dissertation/data/Processed files/Study 1") library(psych); library(dplyr); library(ggplot2) # this file has post-task ratings, IDs, RR ratings, and task results # it's long by participant and group (each row is one p in one group) # task: 1 = PS, 2 = LGD, 3 = LOM, 4 = social # s1grp<-read.csv("Stu...
library(shiny) auto <- read.csv("../../../data/tema10/auto-mpg.csv") shinyServer(function(input, output) { output$output_text <- renderText(paste("mpg ~ ", input$x)) output$output_plot <- renderPlot(plot(as.formula(paste("mpg ~",input$x)), data = auto) ...
/scripts/tema10/IntroShinyWebApp/server.R
permissive
dabamascodes/r-course
R
false
false
603
r
library(shiny) auto <- read.csv("../../../data/tema10/auto-mpg.csv") shinyServer(function(input, output) { output$output_text <- renderText(paste("mpg ~ ", input$x)) output$output_plot <- renderPlot(plot(as.formula(paste("mpg ~",input$x)), data = auto) ...
### Figure 3B - Panel 3: Proportional Hazard Plot - Data ### library(tidyverse) library(survival) # Calculate the proportional hazard load("data/lookup_table_survival_immuno.RData") res.cox <- coxph( Surv(OS, status) ~ as.factor(randomization), data = df) res.cox prop_haz <- summary(res.cox)$coefficients[2] #Calculc...
/figure_3/scripts/figure_3b_data_panel_3.R
permissive
jeroencreemers/in-silico-clinical-trials
R
false
false
788
r
### Figure 3B - Panel 3: Proportional Hazard Plot - Data ### library(tidyverse) library(survival) # Calculate the proportional hazard load("data/lookup_table_survival_immuno.RData") res.cox <- coxph( Surv(OS, status) ~ as.factor(randomization), data = df) res.cox prop_haz <- summary(res.cox)$coefficients[2] #Calculc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/list.R \name{as.list.TidySet} \alias{as.list.TidySet} \title{Convert to list} \usage{ \method{as.list}{TidySet}(x, ...) } \arguments{ \item{x}{A TidySet object to be coerced to a list.} \item{...}{Placeholder for other arguments that could b...
/man/as.list.TidySet.Rd
permissive
ropensci/BaseSet
R
false
true
679
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/list.R \name{as.list.TidySet} \alias{as.list.TidySet} \title{Convert to list} \usage{ \method{as.list}{TidySet}(x, ...) } \arguments{ \item{x}{A TidySet object to be coerced to a list.} \item{...}{Placeholder for other arguments that could b...
rm(list=ls()) setwd("C:\\Users\\Richard\\Desktop\\Coursera\\Course - Data Cleaning\\Project\\UCI HAR Dataset") #I have already downloaded and unziped the data files #Loading training datasets x_train = read.table("./train/X_train.txt", header=FALSE) head(x_train) y_train = read.table("./train/y_train.txt", header=F...
/Getting and Cleaning Data/run_analysis.R
no_license
richardting88/datasciencecoursera
R
false
false
2,468
r
rm(list=ls()) setwd("C:\\Users\\Richard\\Desktop\\Coursera\\Course - Data Cleaning\\Project\\UCI HAR Dataset") #I have already downloaded and unziped the data files #Loading training datasets x_train = read.table("./train/X_train.txt", header=FALSE) head(x_train) y_train = read.table("./train/y_train.txt", header=F...
# Cutting tool life Design rm(list=ls()) prepare <- function(factors=list(A=1:3, B=1:3), k=4, runorder=TRUE, file="") { factors$Rep = 1:k df.g = expand.grid(factors) n = nrow(df.g) key = data.frame(r=runif(n, 0, 1), s=1:n) key = key[order(key$r),]$s df.h = data.frame( RunOrder = key, StdOrde...
/cutting.R
no_license
pbosetti/DCPP-rstudio
R
false
false
1,686
r
# Cutting tool life Design rm(list=ls()) prepare <- function(factors=list(A=1:3, B=1:3), k=4, runorder=TRUE, file="") { factors$Rep = 1:k df.g = expand.grid(factors) n = nrow(df.g) key = data.frame(r=runif(n, 0, 1), s=1:n) key = key[order(key$r),]$s df.h = data.frame( RunOrder = key, StdOrde...
#' Create a simple table #' #' Exposes interface to simple `CREATE TABLE` commands. The default #' method is ANSI SQL 99 compliant. #' This method is mostly useful for backend implementers. #' #' @section DBI-backends: #' If you implement one method (i.e. for strings or data frames), you need #' to implement both, othe...
/R/table-create.R
no_license
bedatadriven/DBI
R
false
false
2,129
r
#' Create a simple table #' #' Exposes interface to simple `CREATE TABLE` commands. The default #' method is ANSI SQL 99 compliant. #' This method is mostly useful for backend implementers. #' #' @section DBI-backends: #' If you implement one method (i.e. for strings or data frames), you need #' to implement both, othe...
plot4<-function(){ # Unzip data into temp file #getUrl<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" #td=tempdir() #tf=tempfile(tmpdir=td, fileext=".zip") #download.file(getUrl, tf, method="curl") # Read data into table, changing ? to NA fpath=file.path(td,fname) get_data...
/plot4.R
no_license
sussh1/ExData_Plotting1
R
false
false
1,668
r
plot4<-function(){ # Unzip data into temp file #getUrl<-"https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" #td=tempdir() #tf=tempfile(tmpdir=td, fileext=".zip") #download.file(getUrl, tf, method="curl") # Read data into table, changing ? to NA fpath=file.path(td,fname) get_data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pkg.R \docType{package} \name{sotu-package} \alias{sotu} \alias{sotu-package} \title{sotu: State of the Union Addresses} \description{ The President of the United States is constitutionally obligated to provide a report of the current state o...
/man/sotu-package.Rd
no_license
dhmontgomery/sotu
R
false
true
1,706
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pkg.R \docType{package} \name{sotu-package} \alias{sotu} \alias{sotu-package} \title{sotu: State of the Union Addresses} \description{ The President of the United States is constitutionally obligated to provide a report of the current state o...
SamplingDist <- function(samples = 50, sample_size = 100, mean = 0, sd = 1){ if(samples <= 0){ stop("The number of samples needs to be greater than 0") } if(sd <= 0){ stop("The standard devaition cannot be 0") } sampleMeans <- rep(NA, samples) for(i in 1:samples){ x <- rnorm(sample_size, mean ...
/R/sampdis.R
no_license
kig3434/DStools
R
false
false
412
r
SamplingDist <- function(samples = 50, sample_size = 100, mean = 0, sd = 1){ if(samples <= 0){ stop("The number of samples needs to be greater than 0") } if(sd <= 0){ stop("The standard devaition cannot be 0") } sampleMeans <- rep(NA, samples) for(i in 1:samples){ x <- rnorm(sample_size, mean ...
## Unzip the data zip file present in the working directory unzip("getdata-projectfiles-UCI HAR Dataset.zip") ## Load the test data for subject, activity and reading test_subject <- read.table("UCI\ HAR\ Dataset/test/subject_test.txt") test_reading <- read.table("UCI\ HAR\ Dataset/test/X_test.txt") test_activity <- rea...
/run_analysis.R
no_license
SivasankarM/GetDataCourseProject
R
false
false
2,966
r
## Unzip the data zip file present in the working directory unzip("getdata-projectfiles-UCI HAR Dataset.zip") ## Load the test data for subject, activity and reading test_subject <- read.table("UCI\ HAR\ Dataset/test/subject_test.txt") test_reading <- read.table("UCI\ HAR\ Dataset/test/X_test.txt") test_activity <- rea...
test_that("Package pkgdown site can be built ", { # This test requires internet skip_on_cran() destination <- file.path(tempdir(), "testPkgdown", "docs") build_output <- capture.output({ build_site( path = "testPkgdown", override = list(destination = destination) ) }, type = c("output"))...
/tests/testthat/test-build-site.R
no_license
ricciardi/devtools
R
false
false
938
r
test_that("Package pkgdown site can be built ", { # This test requires internet skip_on_cran() destination <- file.path(tempdir(), "testPkgdown", "docs") build_output <- capture.output({ build_site( path = "testPkgdown", override = list(destination = destination) ) }, type = c("output"))...
library(BiocSingular) library(TENxPBMCData) library(irlba) library(DelayedArray) tenx <- TENxPBMCData("pbmc8k") c.matrix <- as.matrix(counts(tenx)) wh <- which(rowSums(c.matrix) != 0) c.matrix <- c.matrix[wh,] cT.matrix <- t(c.matrix) centers <- rowMeans(c.matrix) scales <- rowSds(c.matrix) cT.DA_memory <- DelayedAr...
/bench.R
no_license
kasperdanielhansen/bench_pca
R
false
false
1,091
r
library(BiocSingular) library(TENxPBMCData) library(irlba) library(DelayedArray) tenx <- TENxPBMCData("pbmc8k") c.matrix <- as.matrix(counts(tenx)) wh <- which(rowSums(c.matrix) != 0) c.matrix <- c.matrix[wh,] cT.matrix <- t(c.matrix) centers <- rowMeans(c.matrix) scales <- rowSds(c.matrix) cT.DA_memory <- DelayedAr...
library(stm) ### Name: textProcessor ### Title: Process a vector of raw texts ### Aliases: textProcessor print.textProcessor head.textProcessor ### summary.textProcessor ### ** Examples ## Not run: ##D ##D head(gadarian) ##D #Process the data for analysis. ##D temp<-textProcessor(documents=gadarian$open.ended....
/data/genthat_extracted_code/stm/examples/textProcessor.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
543
r
library(stm) ### Name: textProcessor ### Title: Process a vector of raw texts ### Aliases: textProcessor print.textProcessor head.textProcessor ### summary.textProcessor ### ** Examples ## Not run: ##D ##D head(gadarian) ##D #Process the data for analysis. ##D temp<-textProcessor(documents=gadarian$open.ended....
library(splm) ### Name: summary.splm ### Title: summary method for class splm ### Aliases: summary.splm ### Keywords: spatial ### ** Examples data(Produc, package = "plm") data(usaww) GM <- spgm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, listw=usaww, moments = "fullweights", spatial.error ...
/data/genthat_extracted_code/splm/examples/summary.splm.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
343
r
library(splm) ### Name: summary.splm ### Title: summary method for class splm ### Aliases: summary.splm ### Keywords: spatial ### ** Examples data(Produc, package = "plm") data(usaww) GM <- spgm(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc, listw=usaww, moments = "fullweights", spatial.error ...
# library library(ggridges) library(ggplot2) # ЧАСТЬ-1 для тектоники # шаг-1. вчитываем таблицу. делаем датафрейм. MDF <- read.csv("Morphology.csv", header=TRUE, sep = ",") MDF <- na.omit(MDF) row.has.na <- apply(MDF, 1, function(x){any(is.na(x))}) sum(row.has.na) head(MDF) # шаг-2. сшиваем столбцы по категориям (...
/Ridgeline-Mariana.R
permissive
paulinelemenkova/35-R-Ridgelines
R
false
false
3,820
r
# library library(ggridges) library(ggplot2) # ЧАСТЬ-1 для тектоники # шаг-1. вчитываем таблицу. делаем датафрейм. MDF <- read.csv("Morphology.csv", header=TRUE, sep = ",") MDF <- na.omit(MDF) row.has.na <- apply(MDF, 1, function(x){any(is.na(x))}) sum(row.has.na) head(MDF) # шаг-2. сшиваем столбцы по категориям (...
## makeCacheMatrix # # Cached matrix structure constructor. # # It offers a cache to store a matrix and its inverse, together with an API to set and get values. # # Input: # x - matrix to be stored # # Returns: # a list with cached structure together with functions that comprise an API to manipulate the matrix a...
/assignment-2/cachematrix.R
no_license
sandrovicente/coursera-r
R
false
false
1,722
r
## makeCacheMatrix # # Cached matrix structure constructor. # # It offers a cache to store a matrix and its inverse, together with an API to set and get values. # # Input: # x - matrix to be stored # # Returns: # a list with cached structure together with functions that comprise an API to manipulate the matrix a...
## 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 setMatrix <- function(my_matrix) { x <<- my_matrix m <<- NULL } ...
/cachematrix.R
no_license
datacesar/datasciencecoursera-1
R
false
false
1,049
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 setMatrix <- function(my_matrix) { x <<- my_matrix m <<- NULL } ...
#myArgs <- commandArgs(trailingOnly = TRUE) #eRFMScriptLocation <- myArgs[1] #eRFMScriptLocation <- "~/Documents/Proposals & Works/Profiler/Elemis" #installing necessary libraries #source(paste(eRFMScriptLocation,"/profiling_script/utils/exception_handling.R",sep=""), chdir=TRUE) #source(paste(eRFMScriptLocation,"/eR...
/run_eRFM.R
no_license
mostafa-zakaria/Python_R_Automation-Tests
R
false
false
3,174
r
#myArgs <- commandArgs(trailingOnly = TRUE) #eRFMScriptLocation <- myArgs[1] #eRFMScriptLocation <- "~/Documents/Proposals & Works/Profiler/Elemis" #installing necessary libraries #source(paste(eRFMScriptLocation,"/profiling_script/utils/exception_handling.R",sep=""), chdir=TRUE) #source(paste(eRFMScriptLocation,"/eR...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make_annotations.R \name{make_annotations} \alias{make_annotations} \title{Creating gene annotations} \usage{ make_annotations(data, listA, listB) } \arguments{ \item{data}{2-column matrix, each row a pair indicating a relationship or interac...
/EGAD/man/make_annotations.Rd
no_license
kantale/EGAD
R
false
true
1,003
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/make_annotations.R \name{make_annotations} \alias{make_annotations} \title{Creating gene annotations} \usage{ make_annotations(data, listA, listB) } \arguments{ \item{data}{2-column matrix, each row a pair indicating a relationship or interac...
qat_add_description <- function(workflowlist, listelem, description_text) { # functionality: add or replace a description to a test # author: André Düsterhus # date: 03.07.2010 # version: A0.1 # input: to do-list of analysing steps # output: edited to do-list of analysing steps # library("XML") bool_added <- FALSE # ...
/R/qat_add_description.R
no_license
cran/qat
R
false
false
2,291
r
qat_add_description <- function(workflowlist, listelem, description_text) { # functionality: add or replace a description to a test # author: André Düsterhus # date: 03.07.2010 # version: A0.1 # input: to do-list of analysing steps # output: edited to do-list of analysing steps # library("XML") bool_added <- FALSE # ...
\name{get_pkg_attribute} \alias{get_pkg_attribute} \alias{get_pkg_author} \alias{get_pkg_citation} \alias{get_pkg_compilation} \alias{get_pkg_date} \alias{get_pkg_depends} \alias{get_pkg_imports} \alias{get_pkg_license} \alias{get_pkg_maintainer} \alias{get_pkg_materials} \alias{get_pkg_rev_depends} \alias{get_pkg_rev_...
/man/get_pkg_attribute.Rd
no_license
gastonstat/cranium
R
false
false
719
rd
\name{get_pkg_attribute} \alias{get_pkg_attribute} \alias{get_pkg_author} \alias{get_pkg_citation} \alias{get_pkg_compilation} \alias{get_pkg_date} \alias{get_pkg_depends} \alias{get_pkg_imports} \alias{get_pkg_license} \alias{get_pkg_maintainer} \alias{get_pkg_materials} \alias{get_pkg_rev_depends} \alias{get_pkg_rev_...
### R code from vignette source 'mixor.Rnw' ################################################### ### code chunk number 1: mixor.Rnw:159-160 ################################################### options(prompt = "R> ", continue = "+ ", width = 70, useFancyQuotes = FALSE) ########################################...
/data/genthat_extracted_code/mixor/vignettes/mixor.R
no_license
surayaaramli/typeRrh
R
false
false
6,536
r
### R code from vignette source 'mixor.Rnw' ################################################### ### code chunk number 1: mixor.Rnw:159-160 ################################################### options(prompt = "R> ", continue = "+ ", width = 70, useFancyQuotes = FALSE) ########################################...
############################################################################# ## ## This file contains various workings and try-outs ## ############################################################################# source("ReadLocalTop500Lists.R") # read file function start.year <- 1993 # Initial year to read the Top ...
/Workings.R
no_license
tsloan/Top500
R
false
false
3,033
r
############################################################################# ## ## This file contains various workings and try-outs ## ############################################################################# source("ReadLocalTop500Lists.R") # read file function start.year <- 1993 # Initial year to read the Top ...
#This is the plotting script called by preseq.sh to plot an individual library's complexity curve and to append the sequencing effort required to achieve a genome fraction of 5% to stdout. ##################################################################################################################################...
/se-alignment_pipeline/sspipe(server-SE)/scripts/11-plot-one-preseq.R
no_license
zhamadeh/Alignment-Pipeline
R
false
false
3,675
r
#This is the plotting script called by preseq.sh to plot an individual library's complexity curve and to append the sequencing effort required to achieve a genome fraction of 5% to stdout. ##################################################################################################################################...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/kidney.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('./kidney_038.txt',append=TRUE)...
/Model/EN/Classifier/kidney/kidney_038.R
no_license
esbgkannan/QSMART
R
false
false
350
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Classifier/kidney.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('./kidney_038.txt',append=TRUE)...
\name{Column-wise MLE of some univariate distributions} \alias{collognorm.mle} \alias{collogitnorm.mle} \alias{colborel.mle} \alias{colhalfnorm.mle} \alias{colordinal.mle} \title{ Column-wise MLE of some univariate distributions } \description{ Column-wise MLE of some univariate distributions. } \usage{ collognorm.m...
/man/collognorm.mle.Rd
no_license
happylearning423/Rfast2
R
false
false
2,266
rd
\name{Column-wise MLE of some univariate distributions} \alias{collognorm.mle} \alias{collogitnorm.mle} \alias{colborel.mle} \alias{colhalfnorm.mle} \alias{colordinal.mle} \title{ Column-wise MLE of some univariate distributions } \description{ Column-wise MLE of some univariate distributions. } \usage{ collognorm.m...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/eye.R \name{eye} \alias{eye} \title{Generate Random Vector of Eye Colors} \usage{ eye(n, x = c("Brown", "Blue", "Green", "Hazel", "Gray"), prob = c(0.44, 0.3, 0.13, 0.09, 0.04), name = "Eye") } \arguments{ \item{n}{The number elemen...
/man/eye.Rd
no_license
ds4ci/wakefield
R
false
false
2,803
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/eye.R \name{eye} \alias{eye} \title{Generate Random Vector of Eye Colors} \usage{ eye(n, x = c("Brown", "Blue", "Green", "Hazel", "Gray"), prob = c(0.44, 0.3, 0.13, 0.09, 0.04), name = "Eye") } \arguments{ \item{n}{The number elemen...
library(tidyverse) library(moments) x <- read.csv("pop_by_country.csv", fileEncoding = 'UTF-8') x <- select(x,Country.Name,Country.Code,X2015) x <- rename(x, country_name = Country.Name, country_code = Country.Code, pop2015 = X2015) y <- read.csv("metadata1.csv", fileEncoding = 'UTF-8') y <- select(y, Country.Code, R...
/quant2018/Assignment4.R
no_license
taehuA/forhandin
R
false
false
765
r
library(tidyverse) library(moments) x <- read.csv("pop_by_country.csv", fileEncoding = 'UTF-8') x <- select(x,Country.Name,Country.Code,X2015) x <- rename(x, country_name = Country.Name, country_code = Country.Code, pop2015 = X2015) y <- read.csv("metadata1.csv", fileEncoding = 'UTF-8') y <- select(y, Country.Code, R...
# Import a CSV file csv_file<-read.csv(file.choose()) csv_file<-read.csv(file="d://out5.csv") # View the file View(csv_file) # Edit the file csv_file<-edit(csv_file) # Export CSV file write.csv(csv_file,file.choose()) # Import a text file txt_file<-read.table(file="d://out5.csv",header=TRUE,sep=" ...
/4_import_export.r
no_license
shraban020/r-analytics
R
false
false
924
r
# Import a CSV file csv_file<-read.csv(file.choose()) csv_file<-read.csv(file="d://out5.csv") # View the file View(csv_file) # Edit the file csv_file<-edit(csv_file) # Export CSV file write.csv(csv_file,file.choose()) # Import a text file txt_file<-read.table(file="d://out5.csv",header=TRUE,sep=" ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_water_year.R \name{calc_water_year} \alias{calc_water_year} \title{calc_water_year} \usage{ calc_water_year(date.vec) } \arguments{ \item{date.vec}{Vector with a string of dates} } \value{ Vector of the water year in which the given date...
/man/calc_water_year.Rd
permissive
lindsayplatt/trainR
R
false
true
806
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calc_water_year.R \name{calc_water_year} \alias{calc_water_year} \title{calc_water_year} \usage{ calc_water_year(date.vec) } \arguments{ \item{date.vec}{Vector with a string of dates} } \value{ Vector of the water year in which the given date...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 24 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 24 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/exque...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/exquery_query24_1344/exquery_query24_1344.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
692
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 24 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 24 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/exque...
# Average AverageList <- function(dfTemp,year){ # Sum or average the ones with the same names cnames <- unique(names(dfTemp)) totnames <- names(dfTemp) is.nan.data.frame <- function(x) do.call(cbind, lapply(x, is.nan)) dfTempNew <- list() for (i in 1:length(cnames)){ tmpidx <- which(cnames[i] ==...
/analysis/includes/size_spectra/AverageList.R
permissive
Philipp-Neubauer/large-marine-sizespectrum
R
false
false
2,404
r
# Average AverageList <- function(dfTemp,year){ # Sum or average the ones with the same names cnames <- unique(names(dfTemp)) totnames <- names(dfTemp) is.nan.data.frame <- function(x) do.call(cbind, lapply(x, is.nan)) dfTempNew <- list() for (i in 1:length(cnames)){ tmpidx <- which(cnames[i] ==...
library(knitr) library(sqldf) if (!('pchShow' %in% ls())){ # define pchShow example(points, ask = FALSE) } knit('index.Rmd') file.rename('index.md', '../index.md') if (file.exists('../figure')) { for (figure in list.files('../figure')) { file.remove(paste0('../figure/',figure)) } file.remove('../figure')...
/r-curses-for-data-witches/source/build.R
no_license
tlevine/dada.pink
R
false
false
358
r
library(knitr) library(sqldf) if (!('pchShow' %in% ls())){ # define pchShow example(points, ask = FALSE) } knit('index.Rmd') file.rename('index.md', '../index.md') if (file.exists('../figure')) { for (figure in list.files('../figure')) { file.remove(paste0('../figure/',figure)) } file.remove('../figure')...