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
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{length-zero-default} \alias{length-zero-default} \alias{\%|0|\%} \title{Default value for `length(x) == 0`.} \usage{ x \%|0|\% y } \arguments{ \item{x, y}{If `length(x) == 0`, will return `y`; otherwise returns `x`.} } \descript...
/man/length-zero-default.Rd
no_license
GarrettMooney/moonmisc
R
false
true
531
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{length-zero-default} \alias{length-zero-default} \alias{\%|0|\%} \title{Default value for `length(x) == 0`.} \usage{ x \%|0|\% y } \arguments{ \item{x, y}{If `length(x) == 0`, will return `y`; otherwise returns `x`.} } \descript...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class-recall.R \name{recall} \alias{recall} \alias{recall.data.frame} \alias{recall_vec} \title{Recall} \usage{ recall(data, ...) \method{recall}{data.frame}(data, truth, estimate, estimator = NULL, na_rm = TRUE, ...) recall_vec(truth, es...
/man/recall.Rd
no_license
meta00/yardstick
R
false
true
5,364
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/class-recall.R \name{recall} \alias{recall} \alias{recall.data.frame} \alias{recall_vec} \title{Recall} \usage{ recall(data, ...) \method{recall}{data.frame}(data, truth, estimate, estimator = NULL, na_rm = TRUE, ...) recall_vec(truth, es...
remove(list = ls()) options(stringsAsFactors = FALSE) options(scipen = 999) library(tidyverse) commute_mode <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-11-05/commute.csv") %>% mutate(state = case_when( state == "Ca" ~ "California", state =...
/tidy_tuesday_2019_modes_less_traveled/code.R
no_license
Nhiemth1985/rviz
R
false
false
4,859
r
remove(list = ls()) options(stringsAsFactors = FALSE) options(scipen = 999) library(tidyverse) commute_mode <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2019/2019-11-05/commute.csv") %>% mutate(state = case_when( state == "Ca" ~ "California", state =...
#Function to display interaction contrast matrices plotcontrast <- function(cmat){ if(!is.matrix(cmat) || !is.numeric(cmat)){stop("cmat must be a matrix with numeric entries")} if(is.null(rownames(cmat))){rownames(cmat)<-paste("c", 1:nrow(cmat), sep="")} dcm <- melt(cmat, varnames = c("comparison", "treatment...
/R/plotcontrast.R
no_license
schaarschmidt/statint
R
false
false
708
r
#Function to display interaction contrast matrices plotcontrast <- function(cmat){ if(!is.matrix(cmat) || !is.numeric(cmat)){stop("cmat must be a matrix with numeric entries")} if(is.null(rownames(cmat))){rownames(cmat)<-paste("c", 1:nrow(cmat), sep="")} dcm <- melt(cmat, varnames = c("comparison", "treatment...
#' create a barplot #' #' @param iter number of iterations #' @param n number of bernoulli trials #' @param p probability of success #' #' @return it return a barplot of the proportions and table of relative frequencies #' @export #' #' @examples #' mybin(100,10,0.5) mybin=function(iter=100,n=10, p=0.5){ # make a mat...
/R/mybin.R
no_license
jiawei313/Rpack
R
false
false
946
r
#' create a barplot #' #' @param iter number of iterations #' @param n number of bernoulli trials #' @param p probability of success #' #' @return it return a barplot of the proportions and table of relative frequencies #' @export #' #' @examples #' mybin(100,10,0.5) mybin=function(iter=100,n=10, p=0.5){ # make a mat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse_mgf.R \name{parse_mgf} \alias{parse_mgf} \title{Parse mgf} \usage{ parse_mgf(mgf_path) } \arguments{ \item{mgf_path}{path to mgf} } \value{ data.table with cols pepmass, charge, scan, and col containing json representation of mass/i...
/man/parse_mgf.Rd
permissive
chasemc/mgfparse
R
false
true
357
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/parse_mgf.R \name{parse_mgf} \alias{parse_mgf} \title{Parse mgf} \usage{ parse_mgf(mgf_path) } \arguments{ \item{mgf_path}{path to mgf} } \value{ data.table with cols pepmass, charge, scan, and col containing json representation of mass/i...
library(stringr) library(ggplot2) library(cowplot) source("~/Documents/Bioinformatik/Master/Masterarbeit/R_Scripts/marker_genes.R") source("~/Documents/Bioinformatik/Master/Masterarbeit/R_Scripts/Simulation.R") ### Helper functions evaluate = function(row){ ind = which.max(row) name = names(row)[ind] } evaluat...
/R-Code/robustness_benchmark_bulk.R
no_license
janniklas93/Masterarbeit
R
false
false
8,323
r
library(stringr) library(ggplot2) library(cowplot) source("~/Documents/Bioinformatik/Master/Masterarbeit/R_Scripts/marker_genes.R") source("~/Documents/Bioinformatik/Master/Masterarbeit/R_Scripts/Simulation.R") ### Helper functions evaluate = function(row){ ind = which.max(row) name = names(row)[ind] } evaluat...
library(shiny) library(tidyverse) library(here) library(janitor) library(fs) library(reactable) library(htmltools) library(httr) library(bslib) library(shinyjs) library(shinyvalidate) source(paste0(here(), "/ud_adp_helpers.R")) trace(grDevices:::png, quote({ if (missing(type) && missing(antialias)) { type <- "c...
/server.R
no_license
tomdicato/UnderdogADPAnalyzer
R
false
false
41,305
r
library(shiny) library(tidyverse) library(here) library(janitor) library(fs) library(reactable) library(htmltools) library(httr) library(bslib) library(shinyjs) library(shinyvalidate) source(paste0(here(), "/ud_adp_helpers.R")) trace(grDevices:::png, quote({ if (missing(type) && missing(antialias)) { type <- "c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rankwithranges.R \name{rankwithranges} \alias{rankwithranges} \title{Rank With Ranges} \usage{ rankwithranges(x, b) } \arguments{ \item{x}{Observed value in the raw data table} \item{b}{First two columns of the ranking subtable} } \value{ ra...
/man/rankwithranges.Rd
no_license
hannahjallen/response
R
false
true
651
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rankwithranges.R \name{rankwithranges} \alias{rankwithranges} \title{Rank With Ranges} \usage{ rankwithranges(x, b) } \arguments{ \item{x}{Observed value in the raw data table} \item{b}{First two columns of the ranking subtable} } \value{ ra...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/models.R \name{h2o.get_ntrees_actual} \alias{h2o.get_ntrees_actual} \title{Retrieve actual number of trees for tree algorithms} \usage{ h2o.get_ntrees_actual(object) } \arguments{ \item{object}{An \linkS4class{H2OModel} object.} } \descriptio...
/man/h2o.get_ntrees_actual.Rd
no_license
cran/h2o
R
false
true
377
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/models.R \name{h2o.get_ntrees_actual} \alias{h2o.get_ntrees_actual} \title{Retrieve actual number of trees for tree algorithms} \usage{ h2o.get_ntrees_actual(object) } \arguments{ \item{object}{An \linkS4class{H2OModel} object.} } \descriptio...
library(dplyr) library(readr) # srun -J interactive --pty bash # module load r/3.3.3 chr <- list.files("/scratch/nmr15102/sweepfinder/counts",pattern="^chr.*gz",full.names=TRUE) ugh <- read.table("~/fhet_genome/fst_dxy_allpops_liftover.txt", stringsAsFactors=FALSE) for(k in 1:length(chr)){ # genomic windows to use ...
/sweepfinder/counts_to_input.R
no_license
nreid/het_grand
R
false
false
2,896
r
library(dplyr) library(readr) # srun -J interactive --pty bash # module load r/3.3.3 chr <- list.files("/scratch/nmr15102/sweepfinder/counts",pattern="^chr.*gz",full.names=TRUE) ugh <- read.table("~/fhet_genome/fst_dxy_allpops_liftover.txt", stringsAsFactors=FALSE) for(k in 1:length(chr)){ # genomic windows to use ...
#!/applications/R/R-3.5.0/bin/Rscript # Plot average coverage profiles with 95% CIs around peak quantiles # Usage: # csmit -m 50G -c 3 "/applications/R/R-3.5.0/bin/Rscript quantile_peaks_avgProfileRibbon_cMMb_exome_SNPs.R DMC1_Rep1_ChIP DMC1 'Agenome_euchromatin,Bgenome_euchromatin,Dgenome_euchromatin' cMMb 4 both 40...
/DMC1/snakemake_ChIPseq/mapped/DMC1peakProfiles/quantiles/quantile_peaks_avgProfileRibbon_cMMb_exome_SNPs.R
no_license
ajtock/wheat
R
false
false
26,854
r
#!/applications/R/R-3.5.0/bin/Rscript # Plot average coverage profiles with 95% CIs around peak quantiles # Usage: # csmit -m 50G -c 3 "/applications/R/R-3.5.0/bin/Rscript quantile_peaks_avgProfileRibbon_cMMb_exome_SNPs.R DMC1_Rep1_ChIP DMC1 'Agenome_euchromatin,Bgenome_euchromatin,Dgenome_euchromatin' cMMb 4 both 40...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fevd.varshrinkest.R \name{fevd.varshrinkest} \alias{fevd.varshrinkest} \title{Forecast Error Variance Decomposition} \usage{ \method{fevd}{varshrinkest}(x, n.ahead = 10, ...) } \arguments{ \item{x}{Object of class 'varshrinkest'; ge...
/man/fevd.varshrinkest.Rd
no_license
Allisterh/VARshrink-1
R
false
true
652
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fevd.varshrinkest.R \name{fevd.varshrinkest} \alias{fevd.varshrinkest} \title{Forecast Error Variance Decomposition} \usage{ \method{fevd}{varshrinkest}(x, n.ahead = 10, ...) } \arguments{ \item{x}{Object of class 'varshrinkest'; ge...
-- @@stderr -- cat: invalid option -- 'D' Try 'cat --help' for more information. dtrace: failed to compile script /dev/stdin: Preprocessor failed to process input program
/test/unittest/options/tst.cpppath.r
permissive
oracle/dtrace-utils
R
false
false
171
r
-- @@stderr -- cat: invalid option -- 'D' Try 'cat --help' for more information. dtrace: failed to compile script /dev/stdin: Preprocessor failed to process input program
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/golem_utils_ui.R \name{sliderInput} \alias{sliderInput} \title{Modified shiny sliderInput func} \usage{ sliderInput( inputId, label, min, max, value, step = NULL, round = FALSE, format = NULL, locale = NULL, ticks = TRUE, ...
/man/sliderInput.Rd
permissive
igemsoftware2020/ClusteRsy-Linkoping
R
false
true
579
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/golem_utils_ui.R \name{sliderInput} \alias{sliderInput} \title{Modified shiny sliderInput func} \usage{ sliderInput( inputId, label, min, max, value, step = NULL, round = FALSE, format = NULL, locale = NULL, ticks = TRUE, ...
#' Extract Numeric Values from Character Strings #' #' Given a character string, this function will attempt to extract digits and return the result as #' a numeric value. #' #' @param string A single string of \code{class} string to parse for digits. #' @param sequence A second character string, matching one of the fol...
/R/numextract.R
permissive
rpkyle/cscmisc
R
false
false
4,040
r
#' Extract Numeric Values from Character Strings #' #' Given a character string, this function will attempt to extract digits and return the result as #' a numeric value. #' #' @param string A single string of \code{class} string to parse for digits. #' @param sequence A second character string, matching one of the fol...
# Testing function at the bottom of the file # 0. Building value box function ------------------------------------------ ### Arguments : DT, the data set. Build_valuebox <- function(DT){ DT <- as.data.table(DT) # turnover of sales turnover_sales <- (sum( DT[tdt_type_detail=='sale'...
/helpers.R
no_license
ahmedjoubest/Preview-Shinyapp
R
false
false
24,283
r
# Testing function at the bottom of the file # 0. Building value box function ------------------------------------------ ### Arguments : DT, the data set. Build_valuebox <- function(DT){ DT <- as.data.table(DT) # turnover of sales turnover_sales <- (sum( DT[tdt_type_detail=='sale'...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nearest_RIT.R \name{nearest_rit} \alias{nearest_rit} \title{find nearest RIT score for a student, by date} \usage{ nearest_rit(mapvizieR_obj, studentid, measurementscale, target_date, num_days = 180, forward = TRUE) } \arguments{ \i...
/man/nearest_rit.Rd
no_license
rabare/mapvizieR
R
false
false
798
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/nearest_RIT.R \name{nearest_rit} \alias{nearest_rit} \title{find nearest RIT score for a student, by date} \usage{ nearest_rit(mapvizieR_obj, studentid, measurementscale, target_date, num_days = 180, forward = TRUE) } \arguments{ \i...
library(dplyr) en_afa <- read.table(file = "/home/pokoro/data/mesa_models/split_mesa/results/all_chr_AFA_model_summaries.txt", header = TRUE) en_afa$gene_id <- as.character(en_afa$gene_id) en_afa <- en_afa[,c(1,10)] names(en_afa) <- c("gene", "cvR2") en_afa <- subset(en_afa, cvR2 > -1) #start df for dot plots ML v. EN ...
/ml_paper_figs/make_cvr2_df_pauls-paper.R
no_license
okoropaulc/mesa_scripts
R
false
false
7,160
r
library(dplyr) en_afa <- read.table(file = "/home/pokoro/data/mesa_models/split_mesa/results/all_chr_AFA_model_summaries.txt", header = TRUE) en_afa$gene_id <- as.character(en_afa$gene_id) en_afa <- en_afa[,c(1,10)] names(en_afa) <- c("gene", "cvR2") en_afa <- subset(en_afa, cvR2 > -1) #start df for dot plots ML v. EN ...
squeeze arrive person monitor sand present elderly publisher recognition singer primary fifty respondent detail race herself broad remaining account variety estimate operation short pool morning employee consideration gain Mexican debt through fighter middle mother warn tomorrow advice regard layer near bone style enab...
/src/test/resources/ioset/58i.r
permissive
OzGhost/qpro
R
false
false
7,242
r
squeeze arrive person monitor sand present elderly publisher recognition singer primary fifty respondent detail race herself broad remaining account variety estimate operation short pool morning employee consideration gain Mexican debt through fighter middle mother warn tomorrow advice regard layer near bone style enab...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 2.87905896347792e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615779075-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
348
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 2.87905896347792e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
data.clean1<-data.clean[data.clean$AmbiguityCondition!='No Ambiguity',] data.clean1$AmbiguityCondition<-droplevels(data.clean1$AmbiguityCondition) #####Analysis 1##### analysis_1<-data.clean1[data.clean1$AmbiguityCondition!='75% Positive Ambiguity' & data.clean1$AmbiguityCondition!='75% Negative Ambiguity',] analysis_...
/AnalyseData.R
no_license
lauken13/Ambiguity
R
false
false
10,155
r
data.clean1<-data.clean[data.clean$AmbiguityCondition!='No Ambiguity',] data.clean1$AmbiguityCondition<-droplevels(data.clean1$AmbiguityCondition) #####Analysis 1##### analysis_1<-data.clean1[data.clean1$AmbiguityCondition!='75% Positive Ambiguity' & data.clean1$AmbiguityCondition!='75% Negative Ambiguity',] analysis_...
\name{HWPosterior} \alias{HWPosterior} \title{ Calculation of posterior probabilities and Bayes factors for Hardy-Weinberg tests at X-chromosomal variants. } \description{ Function \code{HWPosterior} calculates posterior probabilities and Bayes factors for tests for Hardy-Weinberg equilibrium of autosomal and X...
/HardyWeinberg/man/HWPosterior.Rd
no_license
akhikolla/InformationHouse
R
false
false
2,369
rd
\name{HWPosterior} \alias{HWPosterior} \title{ Calculation of posterior probabilities and Bayes factors for Hardy-Weinberg tests at X-chromosomal variants. } \description{ Function \code{HWPosterior} calculates posterior probabilities and Bayes factors for tests for Hardy-Weinberg equilibrium of autosomal and X...
library(methods) library(magrittr) tcga_path = "/home/cliu18/liucj/projects/6.autophagy/TCGA" expr_path <- "/home/cliu18/liucj/projects/6.autophagy/02_autophagy_expr/" expr_path_a <- file.path(expr_path, "03_a_gene_expr") load(file = file.path(expr_path_a, ".rda_03_h_coca.rda")) # expr expr_matrix %>% t() -> expr_...
/01.expr/03_h_coca_cc.R
permissive
zhangyupisa/autophagy-in-cancer
R
false
false
14,298
r
library(methods) library(magrittr) tcga_path = "/home/cliu18/liucj/projects/6.autophagy/TCGA" expr_path <- "/home/cliu18/liucj/projects/6.autophagy/02_autophagy_expr/" expr_path_a <- file.path(expr_path, "03_a_gene_expr") load(file = file.path(expr_path_a, ".rda_03_h_coca.rda")) # expr expr_matrix %>% t() -> expr_...
#' add_row_annotation #' #' Adds annotation heatmaps for one or more qualitative or quantitative #' annotations for each row of a main heatmap. #' @param p \code{link{Iheatmap-class}} object #' @param annotation data.frame or object that can be converted to data frame #' @param colors list of color palettes, with on...
/R/annotations.R
permissive
fboehm/iheatmapr
R
false
false
8,197
r
#' add_row_annotation #' #' Adds annotation heatmaps for one or more qualitative or quantitative #' annotations for each row of a main heatmap. #' @param p \code{link{Iheatmap-class}} object #' @param annotation data.frame or object that can be converted to data frame #' @param colors list of color palettes, with on...
\name{USstocks-package} \alias{USstocks-package} \alias{USstocks} \docType{package} \title{ What the package does (short line) ~~ USstocks ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab USstocks\cr Type...
/man/USstocks-package.Rd
no_license
andyyao95/USstocks
R
false
false
1,026
rd
\name{USstocks-package} \alias{USstocks-package} \alias{USstocks} \docType{package} \title{ What the package does (short line) ~~ USstocks ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab USstocks\cr Type...
# Part 2 Wk 5 # Pre-Lab film <- FilmData View(film) # Show how many films are in each group table(film$Rating) # Calculate avg film budget of each group aggregate(Budget~Rating,film,mean) # Calculate sd of film budget within each group aggregate(Budget~Rating,film,sd) # Visualize the group means and variability box...
/Part2-Wk5.R
no_license
linusyoung/RStudy-FoDA
R
false
false
1,949
r
# Part 2 Wk 5 # Pre-Lab film <- FilmData View(film) # Show how many films are in each group table(film$Rating) # Calculate avg film budget of each group aggregate(Budget~Rating,film,mean) # Calculate sd of film budget within each group aggregate(Budget~Rating,film,sd) # Visualize the group means and variability box...
library(tidyLPA) ### Name: print.tidyProfile ### Title: Print tidyProfile ### Aliases: print.tidyProfile ### ** Examples ## Not run: ##D if(interactive()){ ##D tmp <- iris %>% ##D select(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) %>% ##D estimate_profiles(3) ##D tmp[[2]] ##D } ## End(Not run) ...
/data/genthat_extracted_code/tidyLPA/examples/print.tidyProfile.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
322
r
library(tidyLPA) ### Name: print.tidyProfile ### Title: Print tidyProfile ### Aliases: print.tidyProfile ### ** Examples ## Not run: ##D if(interactive()){ ##D tmp <- iris %>% ##D select(Sepal.Length, Sepal.Width, Petal.Length, Petal.Width) %>% ##D estimate_profiles(3) ##D tmp[[2]] ##D } ## End(Not run) ...
#' Group all the functions #' #' @note downloads data from the Local Area Unemployment Statistics from the BLS #' #' Data is split and tidy #' Download LAU County dataset from directly from the BLS website #' #' @param which_data what kind of data download: default are the county files #' @param path_data where ...
/R/get_lau.R
permissive
eloualiche/entrydatar
R
false
false
1,782
r
#' Group all the functions #' #' @note downloads data from the Local Area Unemployment Statistics from the BLS #' #' Data is split and tidy #' Download LAU County dataset from directly from the BLS website #' #' @param which_data what kind of data download: default are the county files #' @param path_data where ...
library(lsr) ### Name: rmAll ### Title: Remove all objects ### Aliases: rmAll ### ** Examples # equivalent to rm(list = objects()) rmAll(ask = FALSE)
/data/genthat_extracted_code/lsr/examples/rmAll.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
158
r
library(lsr) ### Name: rmAll ### Title: Remove all objects ### Aliases: rmAll ### ** Examples # equivalent to rm(list = objects()) rmAll(ask = FALSE)
#------------------------------------------------------------------------------------------------------------------- #TODO #1. Make 'ranger' method work for fitting models on control and treatment data #2. Prune RFModel_c and RFModel_t #-----------------------------------------------------------------------------------...
/Before LP/berry_base.R
no_license
sandeepgangarapu/hte
R
false
false
11,942
r
#------------------------------------------------------------------------------------------------------------------- #TODO #1. Make 'ranger' method work for fitting models on control and treatment data #2. Prune RFModel_c and RFModel_t #-----------------------------------------------------------------------------------...
#INSTALLATION library(annotate) library(Biostrings) #DNAStringSet Object library(rBLAST) library(rMSA) library(devtools) library(magrittr) library(seqinr) library(ape) #read.dna, write.fasta library(data.table) library(lubridate) library(RCurl) library(magrittr) library(R.utils) library(downloader) library(ggplot2) li...
/MCLab_Function.R
no_license
Poissonfish/M.C.Lab
R
false
false
17,805
r
#INSTALLATION library(annotate) library(Biostrings) #DNAStringSet Object library(rBLAST) library(rMSA) library(devtools) library(magrittr) library(seqinr) library(ape) #read.dna, write.fasta library(data.table) library(lubridate) library(RCurl) library(magrittr) library(R.utils) library(downloader) library(ggplot2) li...
lineChart <- function(chart.matrix, series.line.width, series.marker.show) { ErrorIfNotEnoughData(chart.matrix) no.data.in.series <- colSums(is.na(chart.matrix)) >= length(chart.matrix[, 1]) if (any(no.data.in.series)) chart.matrix <- chart.matrix[, !no.da...
/R/deprecated_linechart.R
no_license
neraunzaran/flipStandardCharts
R
false
false
782
r
lineChart <- function(chart.matrix, series.line.width, series.marker.show) { ErrorIfNotEnoughData(chart.matrix) no.data.in.series <- colSums(is.na(chart.matrix)) >= length(chart.matrix[, 1]) if (any(no.data.in.series)) chart.matrix <- chart.matrix[, !no.da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cv_predictiveness_update.R \name{cv_predictiveness_update} \alias{cv_predictiveness_update} \title{Estimate the influence function for an estimator of predictiveness} \usage{ cv_predictiveness_update( fitted_values, y, folds, weights ...
/man/cv_predictiveness_update.Rd
permissive
jjfeng/vimp
R
false
true
1,284
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cv_predictiveness_update.R \name{cv_predictiveness_update} \alias{cv_predictiveness_update} \title{Estimate the influence function for an estimator of predictiveness} \usage{ cv_predictiveness_update( fitted_values, y, folds, weights ...
# Logistic Regression # Importing the dataset dataset = read.csv('Wine.csv') #dataset = dataset[3:5] # Feature Scaling training_set[-14] = scale(training_set[-14]) test_set[-14] = scale(test_set[-14]) # Encoding the target feature as factor #dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) ...
/Part 9 - Dimensionality Reduction/Section 44 - Linear Discriminant Analysis (LDA)/LDA/myLDA.R
no_license
Sash-github-account/ML_A_to_Z
R
false
false
2,051
r
# Logistic Regression # Importing the dataset dataset = read.csv('Wine.csv') #dataset = dataset[3:5] # Feature Scaling training_set[-14] = scale(training_set[-14]) test_set[-14] = scale(test_set[-14]) # Encoding the target feature as factor #dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1)) ...
#' Title: fars_read_years #' Description: For each input, this function will call the make_filename function, #' which produces the files name for the info in that year, #' then loads the generated filename into R using the fars_read function, #' and then filters the data to just month and years as the cols. #' If a fi...
/R/fars_read_years.R
no_license
latsa001/Coursera-Assignment-Build-an-R-Package
R
false
false
1,165
r
#' Title: fars_read_years #' Description: For each input, this function will call the make_filename function, #' which produces the files name for the info in that year, #' then loads the generated filename into R using the fars_read function, #' and then filters the data to just month and years as the cols. #' If a fi...
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Ready workspace # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Identify git directory and remove previous objects if not already done if (!exists("git.dir")) { rm(list = ls(all = T)) wd <- c("C...
/rscripts/mobi_paper_tissue2.R
no_license
jhhughes256/len_pbpk
R
false
false
5,632
r
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Ready workspace # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Identify git directory and remove previous objects if not already done if (!exists("git.dir")) { rm(list = ls(all = T)) wd <- c("C...
dir = "./" oname = paste0(dir, "genot_difference_") data <- NULL for (g in c("Rad53K", "Mrc1d", "Rad9d")) { ofile = paste0(oname, g, ".tsv") if (!file.exists(ofile)) next a <- read.table(ofile, header=T, sep="\t") a <- a[,c(2, 6)] colnames(a) = c(paste0("log2FC_", g), paste0("padj_", g)) if (is...
/rna_analysis/script/merge_de_result.R
permissive
carushi/yeast_coexp_analysis
R
false
false
2,735
r
dir = "./" oname = paste0(dir, "genot_difference_") data <- NULL for (g in c("Rad53K", "Mrc1d", "Rad9d")) { ofile = paste0(oname, g, ".tsv") if (!file.exists(ofile)) next a <- read.table(ofile, header=T, sep="\t") a <- a[,c(2, 6)] colnames(a) = c(paste0("log2FC_", g), paste0("padj_", g)) if (is...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/getNewsfeed.R \name{getNewsfeed} \alias{getNewsfeed} \title{Download recent posts from the authenticated user's newsfeed} \usage{ getNewsfeed(token, n = 200) } \arguments{ \item{token}{Either a temporary access token created at \url{h...
/Rfacebook/man/getNewsfeed.Rd
no_license
kwang557/Rfacebook
R
false
false
878
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/getNewsfeed.R \name{getNewsfeed} \alias{getNewsfeed} \title{Download recent posts from the authenticated user's newsfeed} \usage{ getNewsfeed(token, n = 200) } \arguments{ \item{token}{Either a temporary access token created at \url{h...
##----------source the R file that downloads and reads the data--------- source("readPowerData.R") ##---------make the plots---------------------- par(mfrow=c(2,2)) # ------Global_active_power plot(powerConsumptionDataFiltered$Time, powerConsumptionDataFiltered$Global_active_power, type="l", xlab="", ylab="Global Acti...
/plot4.R
no_license
mlopezlago/ExData_Plotting1
R
false
false
1,322
r
##----------source the R file that downloads and reads the data--------- source("readPowerData.R") ##---------make the plots---------------------- par(mfrow=c(2,2)) # ------Global_active_power plot(powerConsumptionDataFiltered$Time, powerConsumptionDataFiltered$Global_active_power, type="l", xlab="", ylab="Global Acti...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wgroup.R \name{[.WGroup} \alias{[.WGroup} \title{subset WGroup} \usage{ \method{[}{WGroup}(x, i) } \arguments{ \item{x}{a WGroup object} \item{i}{integer indexing element} } \value{ a subset of WGroup or NULL } \description{ subset WGroup }
/man/sub-.WGroup.Rd
no_license
zwdzwd/wheatmap
R
false
true
320
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/wgroup.R \name{[.WGroup} \alias{[.WGroup} \title{subset WGroup} \usage{ \method{[}{WGroup}(x, i) } \arguments{ \item{x}{a WGroup object} \item{i}{integer indexing element} } \value{ a subset of WGroup or NULL } \description{ subset WGroup }
# imports library(rEDM) library(plyr) library(ggplot2) # load data df <- read.csv("data/steering.csv") # segment into library/prediction sets n <- NROW(df) lib <- c(1, floor(2/3 * n)) pred <- c(floor(2/3 * n) + 1, n) # segregate the columns steering <- df[c("Time", "Steering.wheel.angle")] left <- df[c("Time", "Left...
/thesis/appendix/edm.R
no_license
david-crow/afit
R
false
false
5,272
r
# imports library(rEDM) library(plyr) library(ggplot2) # load data df <- read.csv("data/steering.csv") # segment into library/prediction sets n <- NROW(df) lib <- c(1, floor(2/3 * n)) pred <- c(floor(2/3 * n) + 1, n) # segregate the columns steering <- df[c("Time", "Steering.wheel.angle")] left <- df[c("Time", "Left...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/imbalanceMetrics.R \name{I1} \alias{I1} \title{I1} \usage{ I1(tree) } \arguments{ \item{tree}{A tree of class \code{phylo} or \code{treeshape}.} } \value{ An object of class \code{numeric}. } \description{ This calculates I1, a weight...
/man/I1.Rd
permissive
dverac/treeImbalance
R
false
false
1,370
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/imbalanceMetrics.R \name{I1} \alias{I1} \title{I1} \usage{ I1(tree) } \arguments{ \item{tree}{A tree of class \code{phylo} or \code{treeshape}.} } \value{ An object of class \code{numeric}. } \description{ This calculates I1, a weight...
compliment <- function(name) { if (!is.character(name)) { stop("The input must be a character string.") } words <- paste0("Hello ", name, ", I like your face.") print(words) } # compliment("Sally")
/functions/compliment_func.R
no_license
cjarayata/UpennCarpentry
R
false
false
211
r
compliment <- function(name) { if (!is.character(name)) { stop("The input must be a character string.") } words <- paste0("Hello ", name, ", I like your face.") print(words) } # compliment("Sally")
.peprow <- function(n,x,prot){ pprot <- prot[which(prot$protid==x$protid[n]),] pr <- data.frame(pep.protid=pprot$protid, pep.start=pprot$start+1, pep.end=pprot$start+pprot$len, pep.mass=x$pep.mass[n], pep.xlsite=x$pep.xlsite[n], pep.seq=pprot$seq) names(pr) <- sub("pep",paste0("pep",n),...
/R/xlink_table.R
no_license
heckendorfc/BTDR
R
false
false
2,608
r
.peprow <- function(n,x,prot){ pprot <- prot[which(prot$protid==x$protid[n]),] pr <- data.frame(pep.protid=pprot$protid, pep.start=pprot$start+1, pep.end=pprot$start+pprot$len, pep.mass=x$pep.mass[n], pep.xlsite=x$pep.xlsite[n], pep.seq=pprot$seq) names(pr) <- sub("pep",paste0("pep",n),...
#!/usr/bin/env Rscript ###################### # rCNV Project # ###################### # Copyright (c) 2020 Ryan L. Collins and the Talkowski Laboratory # Distributed under terms of the MIT License (see LICENSE) # Contact: Ryan L. Collins <rlcollins@g.harvard.edu> # Plot dummy Miami for graphical abstract of rC...
/analysis/paper/plot/misc/plot_dummy_miami.R
permissive
JPMirandaM/rCNV2
R
false
false
7,570
r
#!/usr/bin/env Rscript ###################### # rCNV Project # ###################### # Copyright (c) 2020 Ryan L. Collins and the Talkowski Laboratory # Distributed under terms of the MIT License (see LICENSE) # Contact: Ryan L. Collins <rlcollins@g.harvard.edu> # Plot dummy Miami for graphical abstract of rC...
# Exercise 6: Husky Football 2016 Season # Read in the Husky Football 2016 game data into a variable called `husky.games.2016` husky.games.2016 <- read.csv('data/huskies_2016.csv') # Create a vector of the teams that the Huskies played against during that season # Call this vector `not.huskies`. You'll need to convert...
/exercise-6/exercise.R
permissive
EmmanuelRobi/m10-dataframes
R
false
false
2,528
r
# Exercise 6: Husky Football 2016 Season # Read in the Husky Football 2016 game data into a variable called `husky.games.2016` husky.games.2016 <- read.csv('data/huskies_2016.csv') # Create a vector of the teams that the Huskies played against during that season # Call this vector `not.huskies`. You'll need to convert...
rm(list=ls()) library(WebGestaltR) WebGestaltR(enrichMethod="NTA", organism="hsapiens", enrichDatabase="network_PPI_BIOGRID", interestGeneFile="HALLMARK_HYPOXIA.geneset.txt", interestGeneType="ensembl_gene_id",sigMethod="fdr", outputDirectory=getwd(), highlightType = 'Neighbors', neighborNum = 10, netw...
/Data/MSigDB.go.pathway/HALLMARK_HYPOXIA/WebGestalt.R
no_license
haoboguo/NetBAS
R
false
false
363
r
rm(list=ls()) library(WebGestaltR) WebGestaltR(enrichMethod="NTA", organism="hsapiens", enrichDatabase="network_PPI_BIOGRID", interestGeneFile="HALLMARK_HYPOXIA.geneset.txt", interestGeneType="ensembl_gene_id",sigMethod="fdr", outputDirectory=getwd(), highlightType = 'Neighbors', neighborNum = 10, netw...
#' @title create_df_discus #' @description Template for storm discussions dataframe #' @return empty dataframe #' @seealso \code{\link{get_discus}} #' @keywords internal create_df_discus <- function() { df <- tibble::data_frame("Status" = character(), "Name" = character(), # Allow for in...
/R/discus.R
permissive
mraza007/rrricanes
R
false
false
2,720
r
#' @title create_df_discus #' @description Template for storm discussions dataframe #' @return empty dataframe #' @seealso \code{\link{get_discus}} #' @keywords internal create_df_discus <- function() { df <- tibble::data_frame("Status" = character(), "Name" = character(), # Allow for in...
library(stringr) #1 print("\"") cat("\"") cat("DSO\n545") # \n = newline cat("DSO\t545") # \t = Tab #2 cat(":-\\") cat("(^_^\")") cat("@_'-'") cat("\\m/") #3 ?str_locate ?str_sub #4 str_locate(string = "great", pattern = "a") str_locate("fantastic","a") str_locate_all("fantastic","a") str_locate("super","a")...
/class10.R
no_license
yichengx/Strings_in_R
R
false
false
1,574
r
library(stringr) #1 print("\"") cat("\"") cat("DSO\n545") # \n = newline cat("DSO\t545") # \t = Tab #2 cat(":-\\") cat("(^_^\")") cat("@_'-'") cat("\\m/") #3 ?str_locate ?str_sub #4 str_locate(string = "great", pattern = "a") str_locate("fantastic","a") str_locate_all("fantastic","a") str_locate("super","a")...
### Scripts used for transcriptome analysis ############################################################################################# ############################################################################################# ###################################################################################...
/transcriptome.R
no_license
segalmicrobiomelab/BARTB_Naidoo_Paper
R
false
false
10,097
r
### Scripts used for transcriptome analysis ############################################################################################# ############################################################################################# ###################################################################################...
library(tidyverse) library(pipeR) library(gridExtra) loadNamespace('cowplot') setwd('/Volumes/DR8TB2/tcga_rare_germ/top_driver_gene') write_df= function(x, path, delim='\t', na='NA', append=FALSE, col_names=!append, ...) { file = if (grepl('gz$', path)) { gzfile(path, ...) } else if (grepl('bz2$', path)) { ...
/cumulative_analysis/top_driver_genes/truncating_cumulative_allrace.R
no_license
Kazuki526/tcga_germ
R
false
false
12,216
r
library(tidyverse) library(pipeR) library(gridExtra) loadNamespace('cowplot') setwd('/Volumes/DR8TB2/tcga_rare_germ/top_driver_gene') write_df= function(x, path, delim='\t', na='NA', append=FALSE, col_names=!append, ...) { file = if (grepl('gz$', path)) { gzfile(path, ...) } else if (grepl('bz2$', path)) { ...
setwd("D://") getwd() df<-read.csv("Demog_Data.csv") summary(df) library(readr) head(df) demo<- df head(demo) tail(demo ) rm(df) # cntrl L to remove everything from console dim(demo) # dim function is for checking dimension names(demo) # to check the names of the dataframe (only for dataframe) colnames(...
/Marketing_analytics 1.R
no_license
Gauravyadav2806/New-file
R
false
false
2,216
r
setwd("D://") getwd() df<-read.csv("Demog_Data.csv") summary(df) library(readr) head(df) demo<- df head(demo) tail(demo ) rm(df) # cntrl L to remove everything from console dim(demo) # dim function is for checking dimension names(demo) # to check the names of the dataframe (only for dataframe) colnames(...
source('fonctions-tp3/ceuc.R') source('fonctions-tp3/distXY.R') source('fonctions-tp3/front.ceuc.R') source('fonctions-tp3/front.kppv.R') source('fonctions-tp3/kppv.R') source('fonctions-tp3/separ1.R') source('fonctions-tp3/separ2.R') source('fonctions-tp3/EspVarPI.R') source('fonctions-tp3/errorCEUC.R') source('fonct...
/TP03/fonctions-tp3/script1.R
no_license
ValentinMntp/SY09-Data-Mining
R
false
false
1,299
r
source('fonctions-tp3/ceuc.R') source('fonctions-tp3/distXY.R') source('fonctions-tp3/front.ceuc.R') source('fonctions-tp3/front.kppv.R') source('fonctions-tp3/kppv.R') source('fonctions-tp3/separ1.R') source('fonctions-tp3/separ2.R') source('fonctions-tp3/EspVarPI.R') source('fonctions-tp3/errorCEUC.R') source('fonct...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{cities.list} \alias{cities.list} \title{Retrieves a list of cities, possibly filtered.} \usage{ cities.list(profileId, countryDartIds = NULL, dartIds = NULL, namePrefix = NULL, regionDartIds = NULL) } \argumen...
/googledfareportingv26.auto/man/cities.list.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
1,165
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dfareporting_functions.R \name{cities.list} \alias{cities.list} \title{Retrieves a list of cities, possibly filtered.} \usage{ cities.list(profileId, countryDartIds = NULL, dartIds = NULL, namePrefix = NULL, regionDartIds = NULL) } \argumen...
### merge results library(tidyverse) library(tidyr) ### work flow ## upload time stats ## converge all nodes per species ## converge all species ## calculate suitability per node position ## calculate suitability per node (if 1 position suitable, node is suitable) # setwd("/Users/katieirving/Documents/git/SOC_tier_3/o...
/code/S1e_suitability_willow_streampower_50.R
no_license
ksirving/SOC_tier_3
R
false
false
3,854
r
### merge results library(tidyverse) library(tidyr) ### work flow ## upload time stats ## converge all nodes per species ## converge all species ## calculate suitability per node position ## calculate suitability per node (if 1 position suitable, node is suitable) # setwd("/Users/katieirving/Documents/git/SOC_tier_3/o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mllomax.R \name{mllomax} \alias{mllomax} \title{Lomax distribution maximum likelihood estimation} \usage{ mllomax(x, na.rm = FALSE, ...) } \arguments{ \item{x}{a (non-empty) numeric vector of data values.} \item{na.rm}{logical. Sh...
/man/mllomax.Rd
no_license
cran/univariateML
R
false
true
2,134
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mllomax.R \name{mllomax} \alias{mllomax} \title{Lomax distribution maximum likelihood estimation} \usage{ mllomax(x, na.rm = FALSE, ...) } \arguments{ \item{x}{a (non-empty) numeric vector of data values.} \item{na.rm}{logical. Sh...
Mydata <- data.frame( attr = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), type = c(1, 3, 1, 1, 1, 5, 1, 1, 8, 1) ) split(Mydata, cumsum(Mydata$type != 1))
/stackoverflow/split_neq1.R
no_license
Zedseayou/reprexes
R
false
false
148
r
Mydata <- data.frame( attr = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), type = c(1, 3, 1, 1, 1, 5, 1, 1, 8, 1) ) split(Mydata, cumsum(Mydata$type != 1))
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findLocalMax.R \name{findLocalMax} \alias{findLocalMax} \alias{findLocalMax.EEM} \alias{findLocalMax.matrix} \alias{findLocalMax.numeric} \title{Find local maximum peaks} \usage{ findLocalMax(data, ...) \method{findLocalMax}{EEM}(...
/man/findLocalMax.Rd
no_license
cran/EEM
R
false
true
1,737
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/findLocalMax.R \name{findLocalMax} \alias{findLocalMax} \alias{findLocalMax.EEM} \alias{findLocalMax.matrix} \alias{findLocalMax.numeric} \title{Find local maximum peaks} \usage{ findLocalMax(data, ...) \method{findLocalMax}{EEM}(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funcDT.R \name{isLogicalDT} \alias{isLogicalDT} \title{Testing if a set of columns of a data.table object corresponds to the logical/boolean data type} \usage{ isLogicalDT(inputDT, colNamesToBeChecked = NULL, returnNames = FALSE) } \a...
/man/isLogicalDT.Rd
no_license
cran/R2DT
R
false
true
1,622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funcDT.R \name{isLogicalDT} \alias{isLogicalDT} \title{Testing if a set of columns of a data.table object corresponds to the logical/boolean data type} \usage{ isLogicalDT(inputDT, colNamesToBeChecked = NULL, returnNames = FALSE) } \a...
library(magrittr) dia <- "2021-07-17" url_base <- "https://mananciais.sabesp.com.br/api/" endpoint <- "Mananciais/ResumoSistemas/" u <- paste0(url_base, endpoint, dia) httr::GET( "https://mananciais.sabesp.com.br/api/Mananciais/ResumoSistemas/2021-07-17", httr::config(ssl_verifypeer = FALSE) ) ## não funciona ...
/praticas/02-sabesp.R
no_license
arpanosso/webscraping
R
false
false
2,090
r
library(magrittr) dia <- "2021-07-17" url_base <- "https://mananciais.sabesp.com.br/api/" endpoint <- "Mananciais/ResumoSistemas/" u <- paste0(url_base, endpoint, dia) httr::GET( "https://mananciais.sabesp.com.br/api/Mananciais/ResumoSistemas/2021-07-17", httr::config(ssl_verifypeer = FALSE) ) ## não funciona ...
# Replication and updating of Rigby & Dorling 2007, Mortality in relation to sex in the affluent world rm(list=ls()) # Prerequisite packages --------------------------------------------------- require(readr) require(readxl) require(plyr) require(stringr) require(tidyr) require(dplyr) require(lattice) require(latt...
/scripts/replication_of_original_figs.R
no_license
JonMinton/mortality_sex_affluent_world
R
false
false
6,838
r
# Replication and updating of Rigby & Dorling 2007, Mortality in relation to sex in the affluent world rm(list=ls()) # Prerequisite packages --------------------------------------------------- require(readr) require(readxl) require(plyr) require(stringr) require(tidyr) require(dplyr) require(lattice) require(latt...
local_comparison_data <- sagemaker::abalone[1:100, ] %>% magrittr::set_names(paste0("X", 1:11)) test_that("reading from s3 works", { s3_read_path <- s3(s3_bucket(), "tests", "read-write-test.csv") expect_equal(read_s3(s3_read_path) , local_comparison_data) }) test_that("writing to s3 works", { s3_write_path <...
/tests/testthat/test-aa-read-write.R
permissive
tmastny/sagemaker
R
false
false
485
r
local_comparison_data <- sagemaker::abalone[1:100, ] %>% magrittr::set_names(paste0("X", 1:11)) test_that("reading from s3 works", { s3_read_path <- s3(s3_bucket(), "tests", "read-write-test.csv") expect_equal(read_s3(s3_read_path) , local_comparison_data) }) test_that("writing to s3 works", { s3_write_path <...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SurveyAnalysisLib.r \name{summarizeLicPop} \alias{summarizeLicPop} \title{Summarize Licence Population} \usage{ summarizeLicPop(elic_data, vendor_sales_data, survey_dates) } \arguments{ \item{elic_data}{Electronic licences data} \item{vendor...
/man/summarizeLicPop.Rd
permissive
Pacific-salmon-assess/iRecAnalysisPkg
R
false
true
586
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SurveyAnalysisLib.r \name{summarizeLicPop} \alias{summarizeLicPop} \title{Summarize Licence Population} \usage{ summarizeLicPop(elic_data, vendor_sales_data, survey_dates) } \arguments{ \item{elic_data}{Electronic licences data} \item{vendor...
# Create a path to the raw data wd_path = "C:/Users/Nardus/Documents/coursera/Data Science/Course 4 - Exploratory Data Analysis/Week 1/Assignment data" setwd(wd_path) # Import data raw_set = read.table("household_power_consumption.txt", sep = ";", header = TRUE) library(magrittr) raw_set = raw_set %>% ...
/plot3.R
no_license
blolivier/ExData_Plotting1
R
false
false
1,714
r
# Create a path to the raw data wd_path = "C:/Users/Nardus/Documents/coursera/Data Science/Course 4 - Exploratory Data Analysis/Week 1/Assignment data" setwd(wd_path) # Import data raw_set = read.table("household_power_consumption.txt", sep = ";", header = TRUE) library(magrittr) raw_set = raw_set %>% ...
# Assuming the input is a stored binomial GLM object Concordance = function(GLM.binomial) { outcome_and_fitted_col = cbind(GLM.binomial$y, GLM.binomial$fitted.values) # get a subset of outcomes where the event actually happened ones = outcome_and_fitted_col[outcome_and_fitted_col[,1] == 1,] # get a subse...
/Concordance.R
no_license
akspiyush/Proactive-Attrition-Management--Logistic-Regression
R
false
false
2,000
r
# Assuming the input is a stored binomial GLM object Concordance = function(GLM.binomial) { outcome_and_fitted_col = cbind(GLM.binomial$y, GLM.binomial$fitted.values) # get a subset of outcomes where the event actually happened ones = outcome_and_fitted_col[outcome_and_fitted_col[,1] == 1,] # get a subse...
# Script for New Brunswick PD dispatch logs #setwd("~/911 Data/Original") library(tidyverse) library(leaflet) library(leaflet.extras) library(sqldf) library(lubridate) # Read in the data files nb_calls <- read_csv("geocode2.csv") # Combine into one dataframe combined_calls <- bind_rows(march_calls, april_calls, may...
/newbrunswick.r
no_license
gavinrozzi/911-data-analysis
R
false
false
1,199
r
# Script for New Brunswick PD dispatch logs #setwd("~/911 Data/Original") library(tidyverse) library(leaflet) library(leaflet.extras) library(sqldf) library(lubridate) # Read in the data files nb_calls <- read_csv("geocode2.csv") # Combine into one dataframe combined_calls <- bind_rows(march_calls, april_calls, may...
# Purpose : Speading up ordinary kriging (e.g. of the regression residuals); # Maintainer : Tomislav Hengl (tom.hengl@wur.nl); # Contributions : ; # Status : pre-alpha # Note : this function is ONLY useful for highly clustered point data sets; spline.krige <- function(formula, loca...
/R/spline.krige.R
no_license
GreatEmerald/GSIF
R
false
false
6,973
r
# Purpose : Speading up ordinary kriging (e.g. of the regression residuals); # Maintainer : Tomislav Hengl (tom.hengl@wur.nl); # Contributions : ; # Status : pre-alpha # Note : this function is ONLY useful for highly clustered point data sets; spline.krige <- function(formula, loca...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/documentation.R \docType{data} \name{phone} \alias{phone} \title{Phone} \format{A \code{\link{data.frame}}.} \source{ Tim Bock. } \usage{ phone } \description{ A survey about mobile phones, conducted from a sample of 725 friends and family of...
/man/phone.Rd
no_license
gkalnytskyi/flipExampleData
R
false
true
383
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/documentation.R \docType{data} \name{phone} \alias{phone} \title{Phone} \format{A \code{\link{data.frame}}.} \source{ Tim Bock. } \usage{ phone } \description{ A survey about mobile phones, conducted from a sample of 725 friends and family of...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bcrypt.R \name{bcrypt} \alias{bcrypt} \alias{gensalt} \alias{hashpw} \alias{checkpw} \title{Bcrypt password hashing} \usage{ gensalt(log_rounds = 12) hashpw(password, salt = gensalt()) checkpw(password, hash) } \arguments{ \item{log_rounds}...
/man/bcrypt.Rd
no_license
cran/bcrypt
R
false
true
2,033
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bcrypt.R \name{bcrypt} \alias{bcrypt} \alias{gensalt} \alias{hashpw} \alias{checkpw} \title{Bcrypt password hashing} \usage{ gensalt(log_rounds = 12) hashpw(password, salt = gensalt()) checkpw(password, hash) } \arguments{ \item{log_rounds}...
#' Determine Fmsy for a given operating model #' #' Runs an operating model over a range of fishing mortality levels to #' determine the profile of F values from which Fmsy can be determined. #' #' @param om_in A directory for an \pkg{ss3sim} operating model. #' @param results_out A directory to place the results #' @p...
/R/profile_fmsy.r
no_license
heavywatal/ss3sim
R
false
false
4,332
r
#' Determine Fmsy for a given operating model #' #' Runs an operating model over a range of fishing mortality levels to #' determine the profile of F values from which Fmsy can be determined. #' #' @param om_in A directory for an \pkg{ss3sim} operating model. #' @param results_out A directory to place the results #' @p...
library(shiny) library(shiny) ui <- fluidPage( headerPanel("Example reactive"), mainPanel( # action buttons actionButton("button1","Button 1"), actionButton("button2","Button 2") ) ) server <- function(input, output) { # observe button 1 press. observe({...
/sh_practice_observe.R
no_license
plus4u/Shiny
R
false
false
540
r
library(shiny) library(shiny) ui <- fluidPage( headerPanel("Example reactive"), mainPanel( # action buttons actionButton("button1","Button 1"), actionButton("button2","Button 2") ) ) server <- function(input, output) { # observe button 1 press. observe({...
library(dashBootstrapComponents) library(dashHtmlComponents) card <- dbcCard( dbcListGroup( list( dbcListGroupItem("Item 1"), dbcListGroupItem("Item 2"), dbcListGroupItem("Item 3") ), flush = TRUE ), style = list(width = "18rem") )
/docs/components/card/list_group.R
no_license
AnnMarieW/R-dash-bootstrap-components
R
false
false
272
r
library(dashBootstrapComponents) library(dashHtmlComponents) card <- dbcCard( dbcListGroup( list( dbcListGroupItem("Item 1"), dbcListGroupItem("Item 2"), dbcListGroupItem("Item 3") ), flush = TRUE ), style = list(width = "18rem") )
library(shiny) library(ggplot2) library(shinydashboard) library(e1071) pal <- c('lightgray', 'darkblue', 'red') def <- par(bty="l", las=1, bg="#F0F0F0", col.axis="#434343", col.main="#343434", cex=0.85, cex.axis=0.8) makePlot <- function(dat, xvar, yva...
/usn-predictor/global.R
permissive
luciahao/neair-predictives
R
false
false
7,102
r
library(shiny) library(ggplot2) library(shinydashboard) library(e1071) pal <- c('lightgray', 'darkblue', 'red') def <- par(bty="l", las=1, bg="#F0F0F0", col.axis="#434343", col.main="#343434", cex=0.85, cex.axis=0.8) makePlot <- function(dat, xvar, yva...
# Plot3: with legend library(dplyr) #x1 <- household_power_consumption #names(x1) #x1 <- household_power_consumption %>% #mutate(Global_active_power = as.numeric(Global_active_power)) x1 <- household_power_consumption %>% mutate (Date = as.Date(Date, format = "%d/%m/%Y"))%>% mutate(Global_active_pow...
/Plot3.R
no_license
sgargary/Plot_Project-1_Electric-power-consumption
R
false
false
1,528
r
# Plot3: with legend library(dplyr) #x1 <- household_power_consumption #names(x1) #x1 <- household_power_consumption %>% #mutate(Global_active_power = as.numeric(Global_active_power)) x1 <- household_power_consumption %>% mutate (Date = as.Date(Date, format = "%d/%m/%Y"))%>% mutate(Global_active_pow...
## code to prepare `ACS_CC` and `ACS_CP` datasets rm(list=ls(all=T)) library(readr) seed = 345346 set.seed(seed) ACS_case = read.table("data-raw/ACS_cases.csv",header=T,sep=",") colnames(ACS_case) = c("age", "married", "ind", "baplus", "topincome") n_case = nrow(ACS_case) ACS_control = read.table("data-...
/data-raw/ACS.R
no_license
lbiagini75/ciccr
R
false
false
1,983
r
## code to prepare `ACS_CC` and `ACS_CP` datasets rm(list=ls(all=T)) library(readr) seed = 345346 set.seed(seed) ACS_case = read.table("data-raw/ACS_cases.csv",header=T,sep=",") colnames(ACS_case) = c("age", "married", "ind", "baplus", "topincome") n_case = nrow(ACS_case) ACS_control = read.table("data-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coor2index.R \name{idx2chr} \alias{idx2chr} \title{get the chromosome from continuous index} \usage{ idx2chr(idx, chrS) } \arguments{ \item{idx}{index position for which chromosome information is reported} \item{chrS}{the chromosome index, i...
/man/idx2chr.Rd
no_license
raim/segmenTools
R
false
true
536
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/coor2index.R \name{idx2chr} \alias{idx2chr} \title{get the chromosome from continuous index} \usage{ idx2chr(idx, chrS) } \arguments{ \item{idx}{index position for which chromosome information is reported} \item{chrS}{the chromosome index, i...
## version: 1.35 ## method: post ## path: /commit ## code: 201 ## response: {"Id": "string"} list(id = "string")
/tests/testthat/sample_responses/v1.35/image_commit.R
no_license
cran/stevedore
R
false
false
113
r
## version: 1.35 ## method: post ## path: /commit ## code: 201 ## response: {"Id": "string"} list(id = "string")
library(shiny) library(ggplot2) library(gridExtra, quietly =T) shinyUI(fluidPage( # Application title titlePanel("Diferenciales de selección"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( sliderInput("dif", label = "diferencial s", min=-2, max=2, value = 0, ste...
/ui.R
no_license
santiagombv/selection.cov
R
false
false
467
r
library(shiny) library(ggplot2) library(gridExtra, quietly =T) shinyUI(fluidPage( # Application title titlePanel("Diferenciales de selección"), # Sidebar with a slider input for number of bins sidebarLayout( sidebarPanel( sliderInput("dif", label = "diferencial s", min=-2, max=2, value = 0, ste...
\name{clusterRun} \alias{clusterRun} \title{ Submit command-line tools to cluster } \description{ Submits non-R command-line software to queueing/scheduling systems of compute clusters using run specifications defined by functions similar to \code{runCommandline}. \code{clusterRun} can be used with most queueing system...
/man/clusterRun.Rd
no_license
Feigeliudan01/systemPipeR
R
false
false
6,026
rd
\name{clusterRun} \alias{clusterRun} \title{ Submit command-line tools to cluster } \description{ Submits non-R command-line software to queueing/scheduling systems of compute clusters using run specifications defined by functions similar to \code{runCommandline}. \code{clusterRun} can be used with most queueing system...
#' Base url #' #' @return #' @export base_url <- function() { 'https://api-gtm.grubhub.com' } add_headers <- function() { httr::add_headers( 'Accept'='text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Encoding'= 'gzip, deflate, br', 'Accept-Language'='en-US,en;q=0.5'...
/R/client.R
no_license
bill-ash/hungryr
R
false
false
545
r
#' Base url #' #' @return #' @export base_url <- function() { 'https://api-gtm.grubhub.com' } add_headers <- function() { httr::add_headers( 'Accept'='text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Encoding'= 'gzip, deflate, br', 'Accept-Language'='en-US,en;q=0.5'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MV04_LM.R \name{asymp_MV04} \alias{asymp_MV04} \title{Critical values from MV04 paper, p.1831} \usage{ asymp_MV04(alpha = c(0.01, 0.05, 0.1), M = c(1, 2, 3), type = c("no", "const", "trend")) } \description{ Critical values from M...
/LongMemoryTS/man/asymp_MV04.Rd
no_license
akhikolla/TestedPackages-NoIssues
R
false
true
362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/MV04_LM.R \name{asymp_MV04} \alias{asymp_MV04} \title{Critical values from MV04 paper, p.1831} \usage{ asymp_MV04(alpha = c(0.01, 0.05, 0.1), M = c(1, 2, 3), type = c("no", "const", "trend")) } \description{ Critical values from M...
#q4: position_factor <- as.factor(my.dataframe$Club_Position) levels(position_factor)
/IntroToR/q4.r
no_license
Soroosh-Bsl/ProbabilityStatistics---Fall2017-2018
R
false
false
85
r
#q4: position_factor <- as.factor(my.dataframe$Club_Position) levels(position_factor)
## STATIC SIMULATION MODEL ## BASE MODEL ## SCENARIO: ## ORIGINAL: TOR TOLHURST (OCT/2014) ## LAST UPDATE: Scott Biden (Aug/2017) ## LAST UPDATE: ## CHOOSE FIRST QUARTER TO SHOCK qtr <- c(3, 4, 1, 2) source("beef/code-version2/step-0 preliminaries.R") for (i in qtr) { # column name equivalent of i (to run in dif...
/code-version2/step-1 base_model.R
no_license
Scobid/Beef-model
R
false
false
10,556
r
## STATIC SIMULATION MODEL ## BASE MODEL ## SCENARIO: ## ORIGINAL: TOR TOLHURST (OCT/2014) ## LAST UPDATE: Scott Biden (Aug/2017) ## LAST UPDATE: ## CHOOSE FIRST QUARTER TO SHOCK qtr <- c(3, 4, 1, 2) source("beef/code-version2/step-0 preliminaries.R") for (i in qtr) { # column name equivalent of i (to run in dif...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
/r/tests/testthat/test-dplyr-arrange.R
permissive
tianchen92/arrow
R
false
false
4,292
r
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TESTCN.R \name{testCn_} \alias{testCn_} \title{Edf Test for Poisson Distribution \eqn{Cn*}} \usage{ testCn_(x, n.boot) } \arguments{ \item{x}{vector of nonnegative integers, the sample data} \item{n.boot}{number of bootstrap repli...
/man/testCn_.Rd
no_license
MMH1997/TestPoissonity
R
false
true
1,678
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/TESTCN.R \name{testCn_} \alias{testCn_} \title{Edf Test for Poisson Distribution \eqn{Cn*}} \usage{ testCn_(x, n.boot) } \arguments{ \item{x}{vector of nonnegative integers, the sample data} \item{n.boot}{number of bootstrap repli...
data(votes.repub) head(votes.repub) library(dplyr) library(viridis) #Using Virdis library for color pallette votes.repub %>% tbl_df() %>% mutate(state = rownames(votes.repub), state = tolower(state)) %>% right_join(us_map, by = c("state" = "region")) %>% ggplot(aes(x = long, y = lat, gr...
/mapping-2.R
no_license
SurajMalpani/BootcampR2018
R
false
false
1,356
r
data(votes.repub) head(votes.repub) library(dplyr) library(viridis) #Using Virdis library for color pallette votes.repub %>% tbl_df() %>% mutate(state = rownames(votes.repub), state = tolower(state)) %>% right_join(us_map, by = c("state" = "region")) %>% ggplot(aes(x = long, y = lat, gr...
find_spells <- function(x, threshold = 0.001, rule = "cut", na.rm = TRUE, warn = TRUE, complete = "none") { x %>% .append_flow_state(threshold = threshold) %>% summarize_spell(rule = rule, na.rm = na.rm, warn = warn, complete = complete) } summarize_spell <- functi...
/R/events.R
no_license
lhmet/smires
R
false
false
5,035
r
find_spells <- function(x, threshold = 0.001, rule = "cut", na.rm = TRUE, warn = TRUE, complete = "none") { x %>% .append_flow_state(threshold = threshold) %>% summarize_spell(rule = rule, na.rm = na.rm, warn = warn, complete = complete) } summarize_spell <- functi...
# ----------------------------------------------------------------------- # # DEMAND PREDICTION PIPELINE - format the data frames # Antoine - Version 2.0, 11.07.2016 # ----------------------------------------------------------------------- # # Description: # this script contains 2 types of functions. # # 1. gener...
/Demand_format.R
no_license
madhudharmav/DemandPrediction_ZJ
R
false
false
16,159
r
# ----------------------------------------------------------------------- # # DEMAND PREDICTION PIPELINE - format the data frames # Antoine - Version 2.0, 11.07.2016 # ----------------------------------------------------------------------- # # Description: # this script contains 2 types of functions. # # 1. gener...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tfunctions.r \name{tprod} \alias{tprod} \title{Tucker product} \usage{ tprod(A, B, modes = 1:length(B)) } \arguments{ \item{A}{a real valued array} \item{B}{a list of matrices, the second dimension of each matching the dimensions of A} \ite...
/man/tprod.Rd
no_license
MikeKozelMSU/mcmcFunc
R
false
true
664
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tfunctions.r \name{tprod} \alias{tprod} \title{Tucker product} \usage{ tprod(A, B, modes = 1:length(B)) } \arguments{ \item{A}{a real valued array} \item{B}{a list of matrices, the second dimension of each matching the dimensions of A} \ite...
#setwd('~/Dropbox/arber/') #===================================================================== #===============================DATA INPUT============================ #===================================================================== #load expression table expTable = read.delim('/grail/projects/arber2/cufflinks...
/arber_heatmaps.R
no_license
linlabbcm/arber_ep_tpo
R
false
false
5,429
r
#setwd('~/Dropbox/arber/') #===================================================================== #===============================DATA INPUT============================ #===================================================================== #load expression table expTable = read.delim('/grail/projects/arber2/cufflinks...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_functions.R \name{files.update} \alias{files.update} \title{Updates a file's metadata and/or content with patch semantics.} \usage{ files.update(File, fileId, addParents = NULL, keepRevisionForever = NULL, ocrLanguage = NULL, removePa...
/googledrivev3.auto/man/files.update.Rd
permissive
GVersteeg/autoGoogleAPI
R
false
true
2,289
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drive_functions.R \name{files.update} \alias{files.update} \title{Updates a file's metadata and/or content with patch semantics.} \usage{ files.update(File, fileId, addParents = NULL, keepRevisionForever = NULL, ocrLanguage = NULL, removePa...
elefanGaModule <- function(input, output, session) { elefan_ga <- reactiveValues() elefanGaUploadVreResult <- reactiveValues() inputElefanGaData <- reactiveValues() fileGaState <- reactiveValues( upload = NULL ) elefanGaFileData <- reactive({ if (is.null(input$fileGa) || is.null(fileGaState...
/server/elefan/elefanGaServer.R
no_license
pink-sh/StockMonitoringTool
R
false
false
11,436
r
elefanGaModule <- function(input, output, session) { elefan_ga <- reactiveValues() elefanGaUploadVreResult <- reactiveValues() inputElefanGaData <- reactiveValues() fileGaState <- reactiveValues( upload = NULL ) elefanGaFileData <- reactive({ if (is.null(input$fileGa) || is.null(fileGaState...
library('forecast') ######################################### mobile.ts <- ts(mobile.Date$gmb, frequency=52*7, start=c(2010,1)) plot_mobile.ts <- plot.ts(mobile.ts) #mobile agg forecast arima_mobile <- auto.arima(mobile.ts,seasonal=TRUE,stepwise=FALSE,approx=FALSE) plot(forecast(arima_mobile)) arima_mobile.ts <- ts(a...
/forecast.R
no_license
li-frank/mForecast
R
false
false
3,937
r
library('forecast') ######################################### mobile.ts <- ts(mobile.Date$gmb, frequency=52*7, start=c(2010,1)) plot_mobile.ts <- plot.ts(mobile.ts) #mobile agg forecast arima_mobile <- auto.arima(mobile.ts,seasonal=TRUE,stepwise=FALSE,approx=FALSE) plot(forecast(arima_mobile)) arima_mobile.ts <- ts(a...
library(sqldf) ## Read in the data file using sql to filter the dates we are interested in df<-read.csv.sql("../Data/household_power_consumption.txt", sql='select * from file where Date="1/2/2007" OR Date="2/2/2007"' ,sep=";",header=T) closeAllConnections() ## Close sql connection ##...
/plot2.R
no_license
Bspangehl/ExData_Plotting1
R
false
false
589
r
library(sqldf) ## Read in the data file using sql to filter the dates we are interested in df<-read.csv.sql("../Data/household_power_consumption.txt", sql='select * from file where Date="1/2/2007" OR Date="2/2/2007"' ,sep=";",header=T) closeAllConnections() ## Close sql connection ##...
#Read data from text file data<-read.table("household_power_consumption.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, na.strings="?") #Target data from 2007-02-01 to 2007-02-02 dates<- data$Date=="1/2/2007"|data$Date=="2/2/2007" targetdata<-data[dates,] targetdata$Date <- as.Date(targetdata$Date, format = ...
/plot1.R
no_license
kctoh/ExData_Plotting1
R
false
false
551
r
#Read data from text file data<-read.table("household_power_consumption.txt", header=TRUE, sep=";", stringsAsFactors=FALSE, na.strings="?") #Target data from 2007-02-01 to 2007-02-02 dates<- data$Date=="1/2/2007"|data$Date=="2/2/2007" targetdata<-data[dates,] targetdata$Date <- as.Date(targetdata$Date, format = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract.stringCode.R \name{to.TreeCode} \alias{to.TreeCode} \title{to.TreeCode} \usage{ to.TreeCode(SITE, PLOT, SUBPLOT, TAG = NULL) }
/modules/data.land/man/to.TreeCode.Rd
permissive
Kah5/pecan
R
false
true
213
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract.stringCode.R \name{to.TreeCode} \alias{to.TreeCode} \title{to.TreeCode} \usage{ to.TreeCode(SITE, PLOT, SUBPLOT, TAG = NULL) }
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.54001464073754e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615782588-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
329
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.54001464073754e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(8L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist) st...
########################################################################################################## #Replication Files for Housing Discrimination and the Toxics Exposure Gap in the United States: #Evidence from the Rental Market by Peter Christensen, Ignacio Sarmiento-Barbieri and Christopher Timmins #########...
/scripts/Rscripts/5_TableA2.R
permissive
uiuc-bdeep/Housing_Discrimination_Pollution_Exposures
R
false
false
4,163
r
########################################################################################################## #Replication Files for Housing Discrimination and the Toxics Exposure Gap in the United States: #Evidence from the Rental Market by Peter Christensen, Ignacio Sarmiento-Barbieri and Christopher Timmins #########...
#test.id = seq(1, 2930, by=3) set.seed(8871) install.packages("robustHD") install.packages("caTools") install.packages("DescTools") install.packages("caret") install.packages("randomForest") install.packages("xgboost") install.packages("corrplot") install.packages("Rmisc") install.packages("ggrepel") install.packages(...
/Project_1_8871_kvn3.R
no_license
KarthikJVN/STAT542_StatisticalLearning
R
false
false
14,800
r
#test.id = seq(1, 2930, by=3) set.seed(8871) install.packages("robustHD") install.packages("caTools") install.packages("DescTools") install.packages("caret") install.packages("randomForest") install.packages("xgboost") install.packages("corrplot") install.packages("Rmisc") install.packages("ggrepel") install.packages(...