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
#' Retrieve aa subpart level information data from ghg database #' #' @param FACILITY_ID e.g. '1000166'. See Details. #' @param REPORTING_YEAR e.g. '2011'. See Details. #' @param GHG_NAME e.g. 'Carbon Dioxide'. See Details. #' @param GHG_QUANTITY e.g. '27668.9'. See Details. #' @export ghg_aa_subpart_level_informatio...
/R/ghg_aa_subpart_level_information.R
no_license
markwh/envirofacts
R
false
false
638
r
#' Retrieve aa subpart level information data from ghg database #' #' @param FACILITY_ID e.g. '1000166'. See Details. #' @param REPORTING_YEAR e.g. '2011'. See Details. #' @param GHG_NAME e.g. 'Carbon Dioxide'. See Details. #' @param GHG_QUANTITY e.g. '27668.9'. See Details. #' @export ghg_aa_subpart_level_informatio...
runExample("01_hello") # a histogram runExample("02_text") # tables and data frames runExample("03_reactivity") # a reactive expression runExample("04_mpg") # global variables runExample("05_sliders") # slider bars runExample("06_tabsets") # tabbed panels runExample("07_widgets") # help text and submit buttons runExamp...
/Test/shinyTutorial.R
permissive
Pablo1990/BioinformaticsJobs
R
false
false
500
r
runExample("01_hello") # a histogram runExample("02_text") # tables and data frames runExample("03_reactivity") # a reactive expression runExample("04_mpg") # global variables runExample("05_sliders") # slider bars runExample("06_tabsets") # tabbed panels runExample("07_widgets") # help text and submit buttons runExamp...
#' add_phenology creates a new dataset. #' @title Create a new dataset or add a timeserie to a previous dataset. #' @author Marc Girondot #' @return Return a list of formated data that can be used ith fit_phenology() #' @param previous Previous data formated with add_phenology or NULL [default] if no previous data exis...
/phenology/R/add_phenology.R
no_license
ingted/R-Examples
R
false
false
10,112
r
#' add_phenology creates a new dataset. #' @title Create a new dataset or add a timeserie to a previous dataset. #' @author Marc Girondot #' @return Return a list of formated data that can be used ith fit_phenology() #' @param previous Previous data formated with add_phenology or NULL [default] if no previous data exis...
library(apTreeshape) ### Name: simulate_kingman ### Title: Ranked topology with Kingman's coalescent depths ### Aliases: simulate_kingman ### ** Examples # Simulate a tree set.seed(813) tree=simulate_kingman(epsilon=0.001,alpha=-1,beta=-1,N=20,equal.ab=FALSE,eta=1.5) # Plot the tree with dots at tips that have siz...
/data/genthat_extracted_code/apTreeshape/examples/simulate_kingman.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
555
r
library(apTreeshape) ### Name: simulate_kingman ### Title: Ranked topology with Kingman's coalescent depths ### Aliases: simulate_kingman ### ** Examples # Simulate a tree set.seed(813) tree=simulate_kingman(epsilon=0.001,alpha=-1,beta=-1,N=20,equal.ab=FALSE,eta=1.5) # Plot the tree with dots at tips that have siz...
#!/usr/bin/Rscript ##Plots go here: outdir="/home/isac/Dropbox/Data/Genetics/MethSeq/170120_chicken" plotdir=file.path(outdir,"plots") ##All alignment data lives here datdir="/atium/Data/NGS/Aligned/170120_chicken" analysisdir=file.path(datdir,"analysis") rdadir=file.path(datdir,"rdas") ##Load libraries and sources l...
/analysis/chickenBsseqTstats.R~
no_license
kyounghyoun/chicken
R
false
false
4,642
#!/usr/bin/Rscript ##Plots go here: outdir="/home/isac/Dropbox/Data/Genetics/MethSeq/170120_chicken" plotdir=file.path(outdir,"plots") ##All alignment data lives here datdir="/atium/Data/NGS/Aligned/170120_chicken" analysisdir=file.path(datdir,"analysis") rdadir=file.path(datdir,"rdas") ##Load libraries and sources l...
df <- data.frame(var1 = c(4, 3, 8), var2 = c(2, 6, 1)) df #create derived variable df$var_sum <- df$var1 + df$var2 df df$var_mean <- (df$var1 + df$var2) / 2 df #mpg 통합 연비 변수 만들기 mpg$total <- (mpg$cty + mpg$hwy) /2 head(mpg) #조건문을 활용해 파생변수 만들기 summary(mpg$total) hist(mpg$total)...
/r_fast/der_var.R
no_license
diligejy/r_train
R
false
false
1,339
r
df <- data.frame(var1 = c(4, 3, 8), var2 = c(2, 6, 1)) df #create derived variable df$var_sum <- df$var1 + df$var2 df df$var_mean <- (df$var1 + df$var2) / 2 df #mpg 통합 연비 변수 만들기 mpg$total <- (mpg$cty + mpg$hwy) /2 head(mpg) #조건문을 활용해 파생변수 만들기 summary(mpg$total) hist(mpg$total)...
video<-read.csv("data/examples/ronnie_mav_kerfuffle.csv",header=TRUE) video$ti<-c(1:length(video$time)) timemax<-length(video$x) # number of frames (and observations - so no interpolation needed) gname<-paste("g",video$ti,".tif", sep="") # holds the names of the picture files # draw graphs for (i in 1:timemax) { ti...
/r/moving chart.R
no_license
MoniqueLadds/Time-energy_budgets_from_accelerometers
R
false
false
628
r
video<-read.csv("data/examples/ronnie_mav_kerfuffle.csv",header=TRUE) video$ti<-c(1:length(video$time)) timemax<-length(video$x) # number of frames (and observations - so no interpolation needed) gname<-paste("g",video$ti,".tif", sep="") # holds the names of the picture files # draw graphs for (i in 1:timemax) { ti...
#' sparcc wrapper #' #' @param data Community count data matrix #' @param iter Number of iterations in the outer loop #' @param inner_iter Number of iterations in the inner loop #' @param th absolute value of correlations below this threshold are considered zero by the inner SparCC loop. #' @export sparcc <- function(d...
/R/spaRcc.R
no_license
fanyanghenu/SpiecEasi
R
false
false
7,158
r
#' sparcc wrapper #' #' @param data Community count data matrix #' @param iter Number of iterations in the outer loop #' @param inner_iter Number of iterations in the inner loop #' @param th absolute value of correlations below this threshold are considered zero by the inner SparCC loop. #' @export sparcc <- function(d...
testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788751108176e+185 )) result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist) str(result)
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615837641-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
230
r
testlist <- list(doy = c(1.60693846973121e+226, 0, 0, 0, 0, 0, 0, 0, 0, 0 ), latitude = numeric(0), temp = c(-6.16249584696239e+100, 2.61788751108176e+185 )) result <- do.call(meteor:::ET0_ThornthwaiteWilmott,testlist) str(result)
# highest-spike.R library(tibbletime) library(lubridate) do_aggregation <- function(intensities, behavior = NULL, properties = NULL) { if (!is.null(properties) & !is.null(properties$window)) { window_duration <- as.duration(properties$window) } else { window_duration <- duration(31, "minutes") } re...
/aggregations/highest-spike.R
permissive
Henning-Schulz/forecastic
R
false
false
2,056
r
# highest-spike.R library(tibbletime) library(lubridate) do_aggregation <- function(intensities, behavior = NULL, properties = NULL) { if (!is.null(properties) & !is.null(properties$window)) { window_duration <- as.duration(properties$window) } else { window_duration <- duration(31, "minutes") } re...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/state.R \name{StateChoropleth} \alias{StateChoropleth} \title{Create a state-level choropleth} \description{ Create a state-level choropleth Create a state-level choropleth } \section{Super classes}{ \code{\link[choroplethr:Choropleth]{choro...
/man/StateChoropleth.Rd
no_license
arilamstein/choroplethr
R
false
true
7,642
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/state.R \name{StateChoropleth} \alias{StateChoropleth} \title{Create a state-level choropleth} \description{ Create a state-level choropleth Create a state-level choropleth } \section{Super classes}{ \code{\link[choroplethr:Choropleth]{choro...
page_blocks13_vs_4 = function(ConfigList, st){ ConfigList = SetState(ConfigList, st, "PB13vs4") set.seed(0) old <- Sys.time() # get start time data = read.table("D:/RProjects/OptTask/Data/fernandezMain/imbalanced/page_blocks13_vs_4/page_blocks13_vs_4.dat", sep=",", ...
/page_blocks13_vs_4.R
no_license
zefreh/Sources20171236
R
false
false
4,397
r
page_blocks13_vs_4 = function(ConfigList, st){ ConfigList = SetState(ConfigList, st, "PB13vs4") set.seed(0) old <- Sys.time() # get start time data = read.table("D:/RProjects/OptTask/Data/fernandezMain/imbalanced/page_blocks13_vs_4/page_blocks13_vs_4.dat", sep=",", ...
#' plot.gfpop #' @description Plot the result of the gfpop function with the data-points #' @param x a gfpop class object #' @param ... Other parameters #' @param data the data from which we get the gfpop result #' @return plot data and the inferred gfpop segments plot.gfpop <- function(x, ..., data) { n <- 1:length...
/R/plot.R
no_license
as4378/gfpop
R
false
false
542
r
#' plot.gfpop #' @description Plot the result of the gfpop function with the data-points #' @param x a gfpop class object #' @param ... Other parameters #' @param data the data from which we get the gfpop result #' @return plot data and the inferred gfpop segments plot.gfpop <- function(x, ..., data) { n <- 1:length...
#' A checkFunction for identifying outliers Turkey Boxstole style #' #' A checkFunction to be called from \code{\link{check}} that identifies outlier values #' in a numeric/integer/Date variable by use of the Turkey Boxplot method (consistent witht the #' \code{\link{boxplot}} function). #' #' @param v A numeric, integ...
/R/identifyOutliersTBStyle.R
no_license
ekstroem/dataMaid
R
false
false
4,680
r
#' A checkFunction for identifying outliers Turkey Boxstole style #' #' A checkFunction to be called from \code{\link{check}} that identifies outlier values #' in a numeric/integer/Date variable by use of the Turkey Boxplot method (consistent witht the #' \code{\link{boxplot}} function). #' #' @param v A numeric, integ...
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
/epiphy/inst/testfiles/costTotCPP/AFL_costTotCPP/costTotCPP_valgrind_files/1615926950-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
1,101
r
testlist <- list(cost = structure(c(1.44888560957826e+135, 1.6249392498385e+65, 5.27956628994611e-134, 1.56839475268612e-251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 5L)), flow = structure(c(3.80768289350145e+125, 8.58414828913381e+155, 3.37787969964034e+43, 2.83184518248624e-19...
##Automl in R: library(data.table) library(h2o) library(GGally) # https://www.kaggle.com/uciml/pima-indians-diabetes-database link to data diab <- read.csv("diabetes.csv", header = T, stringsAsFactors = F) summary(diab) str(diab) setDT(diab) setnames(diab, "Outcome", "diabetes") head(diab) ggcorr(d...
/diab_automl.R
no_license
sm925/automl
R
false
false
1,043
r
##Automl in R: library(data.table) library(h2o) library(GGally) # https://www.kaggle.com/uciml/pima-indians-diabetes-database link to data diab <- read.csv("diabetes.csv", header = T, stringsAsFactors = F) summary(diab) str(diab) setDT(diab) setnames(diab, "Outcome", "diabetes") head(diab) ggcorr(d...
library(XML) items <- readHTMLTable("http://www.w3schools.com/html/html_tables.asp", which=1) head(items)
/packages.R
no_license
cpbuckingham/r
R
false
false
105
r
library(XML) items <- readHTMLTable("http://www.w3schools.com/html/html_tables.asp", which=1) head(items)
# Load Libraries ---------------------------------------------------------- library("doParallel") library("sva") source('Common/preparing_data_helper.R') source('Common/comGENE.R') source("Common/generate_random_partition.R") source("Common/ordering_by_similarity.R") # Load GDSC Cell line data -----------------------...
/Docetaxel/script/docetaxel_homogenize_data.R
no_license
chengzhao41/CP2P
R
false
false
14,743
r
# Load Libraries ---------------------------------------------------------- library("doParallel") library("sva") source('Common/preparing_data_helper.R') source('Common/comGENE.R') source("Common/generate_random_partition.R") source("Common/ordering_by_similarity.R") # Load GDSC Cell line data -----------------------...
#' Queries Database and Returns Specified Table Rows for User #' #' This function Queries Database and Returns Specified Table Rows for User #' #' Requires: RPostgres #' #' @param table_name The table name to perform query. #' @param db_user_id The user ID for the table query. #' @return query_table The returned table ...
/rsellDB/R/DB_Read_Table_User.R
no_license
t2tech-corp/Rsell-Packages
R
false
false
3,556
r
#' Queries Database and Returns Specified Table Rows for User #' #' This function Queries Database and Returns Specified Table Rows for User #' #' Requires: RPostgres #' #' @param table_name The table name to perform query. #' @param db_user_id The user ID for the table query. #' @return query_table The returned table ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_delete_security_group} \alias{ec2_delete_security_group} \title{Deletes a security group} \usage{ ec2_delete_security_group(GroupId = NULL, GroupName = NULL, DryRun = NULL) } \arguments{ \item{GroupId}{The ID of the...
/cran/paws.compute/man/ec2_delete_security_group.Rd
permissive
paws-r/paws
R
false
true
995
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_delete_security_group} \alias{ec2_delete_security_group} \title{Deletes a security group} \usage{ ec2_delete_security_group(GroupId = NULL, GroupName = NULL, DryRun = NULL) } \arguments{ \item{GroupId}{The ID of the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neuronlist.R \name{neuronlist-dataframe-methods} \alias{neuronlist-dataframe-methods} \alias{[.neuronlist} \alias{[<-.neuronlist} \alias{droplevels.neuronlist} \alias{droplevels} \alias{with.neuronlist} \alias{with} \alias{head.neuronlist} \a...
/man/neuronlist-dataframe-methods.Rd
no_license
tomka/nat
R
false
true
3,316
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/neuronlist.R \name{neuronlist-dataframe-methods} \alias{neuronlist-dataframe-methods} \alias{[.neuronlist} \alias{[<-.neuronlist} \alias{droplevels.neuronlist} \alias{droplevels} \alias{with.neuronlist} \alias{with} \alias{head.neuronlist} \a...
library(keras) # Data Preparation ----------------------------------------------------- batch_size <- 128 num_classes <- 10 epochs <- 5 # Input image dimensions img_rows <- 28 img_cols <- 28 # The data, shuffled and split between train and test sets mnist <- dataset_mnist() x_train <- mnist$train$x y_train <- mnist...
/R/KERAS_train_MNIST_CNN.r
no_license
NlIceD/rvision_examples
R
false
false
1,888
r
library(keras) # Data Preparation ----------------------------------------------------- batch_size <- 128 num_classes <- 10 epochs <- 5 # Input image dimensions img_rows <- 28 img_cols <- 28 # The data, shuffled and split between train and test sets mnist <- dataset_mnist() x_train <- mnist$train$x y_train <- mnist...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_arrow_diagram.R \name{create_arrow_diagram} \alias{create_arrow_diagram} \title{Create arrow diagram} \usage{ create_arrow_diagram(object, topdef) } \arguments{ \item{object}{SummarizedExperiment} \item{topdef}{character(1): top defin...
/autonomics.find/man/create_arrow_diagram.Rd
no_license
metabdel/autonomics
R
false
true
582
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/create_arrow_diagram.R \name{create_arrow_diagram} \alias{create_arrow_diagram} \title{Create arrow diagram} \usage{ create_arrow_diagram(object, topdef) } \arguments{ \item{object}{SummarizedExperiment} \item{topdef}{character(1): top defin...
# Apriori # Data Processing # install.packages('arules') library(arules) dataset = read.csv('Market_Basket_Optimisation.csv', header = FALSE) dataset = read.transactions('Market_Basket_Optimisation.csv', sep = ',', rm.duplicates = TRUE) summary(dataset) itemFrequencyPlot(dataset, topN = 10) # Training Apriori on the ...
/Part 5 - Association Rule Learning/Section 28 - Apriori/Apriori/apriori_mine.R
no_license
leogretz2/Machine-Learning-A-Z-Template-Folder-Udemy
R
false
false
479
r
# Apriori # Data Processing # install.packages('arules') library(arules) dataset = read.csv('Market_Basket_Optimisation.csv', header = FALSE) dataset = read.transactions('Market_Basket_Optimisation.csv', sep = ',', rm.duplicates = TRUE) summary(dataset) itemFrequencyPlot(dataset, topN = 10) # Training Apriori on the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FindingsAbout.R \name{Findings About Domain} \alias{Findings About Domain} \title{Findings About Domain} \description{ The Findings About data of an ImmPort study is reformated to the CDISC SDTM Findings About (FA) domain model, and is a lis...
/man/Findings-About-Domain.Rd
no_license
rdshankar/RImmPort
R
false
true
459
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/FindingsAbout.R \name{Findings About Domain} \alias{Findings About Domain} \title{Findings About Domain} \description{ The Findings About data of an ImmPort study is reformated to the CDISC SDTM Findings About (FA) domain model, and is a lis...
require(spatialEco) require(sp) require(usedist) require(rgeos) require(raster) require(spatstat) require(igraph) require(sf) require(rgdal) require(gdistance) require(otuSummary) require(gdata) require(maptools) require(tidyverse) require(reshape2) require(data.table) #setwd("E:/LCP sensitivity test/ConnectivityHPC_in...
/Code/HPC_1000clusterspgyr50Rep2.R
no_license
ZacharyRobbins/TransferHPC
R
false
false
14,786
r
require(spatialEco) require(sp) require(usedist) require(rgeos) require(raster) require(spatstat) require(igraph) require(sf) require(rgdal) require(gdistance) require(otuSummary) require(gdata) require(maptools) require(tidyverse) require(reshape2) require(data.table) #setwd("E:/LCP sensitivity test/ConnectivityHPC_in...
# generic S3 method ------------------------------------------------------- "fitted.fusionModel" <- function(object, type = c("link","summary","full","latent"), ...){ if (class(object) != "fusionModel") stop("fusion.model must be an output of either fusionStan or fusionINLA") if (missing(type)) type <- "link" i...
/R/fusionFit.R
no_license
jcmartinmu/spatialfusion
R
false
false
10,155
r
# generic S3 method ------------------------------------------------------- "fitted.fusionModel" <- function(object, type = c("link","summary","full","latent"), ...){ if (class(object) != "fusionModel") stop("fusion.model must be an output of either fusionStan or fusionINLA") if (missing(type)) type <- "link" i...
library(ggplot2) n <- 15 c <- rnorm(n) m <- abs(c * 50) p <- data.frame(x = rnorm(n), y=rnorm(n), c, m) xmax <- max(p$x) xmin <- min(p$x) p$x <- (p$x - xmin) / (xmax - xmin) # ahora son de 0 a 1 ymax <- max(p$y) ymin <- min(p$y) p$y <- (p$y - ymin) / (ymax - ymin) # las y tambien cmax <- max(p$c) cmin <- mi...
/p9/nvop9.R
no_license
CitlaliOlvera/Programacion-en-Paralelo
R
false
false
2,756
r
library(ggplot2) n <- 15 c <- rnorm(n) m <- abs(c * 50) p <- data.frame(x = rnorm(n), y=rnorm(n), c, m) xmax <- max(p$x) xmin <- min(p$x) p$x <- (p$x - xmin) / (xmax - xmin) # ahora son de 0 a 1 ymax <- max(p$y) ymin <- min(p$y) p$y <- (p$y - ymin) / (ymax - ymin) # las y tambien cmax <- max(p$c) cmin <- mi...
options(digits = 7) library(tidyverse) library(factoextra) #### Schoeller Pheno data #### #names of Schoeller twins in alphabetical order (as that is how they are sorted in the S3 bucket originally) Names <- c("Allooh_Jonas","Allooh_Moses","Allooh_Noah","Andrews_Doug","Andrews_Ross", "Ayer_Carly","Ayer_Lily...
/R-scripts/ModelsCorPosePCs.R
no_license
WarrenSink/facial-bistability
R
false
false
89,800
r
options(digits = 7) library(tidyverse) library(factoextra) #### Schoeller Pheno data #### #names of Schoeller twins in alphabetical order (as that is how they are sorted in the S3 bucket originally) Names <- c("Allooh_Jonas","Allooh_Moses","Allooh_Noah","Andrews_Doug","Andrews_Ross", "Ayer_Carly","Ayer_Lily...
# Goal: find critical value for online CPD # Definition: training sample size: N, fixed window size: n, dimension: d, # and permutation steps: B # Note: Calibration is performed for all window frame captured within the trainning sample # yet only sigle window size n is applied library(MASS) libr...
/R Code/Permutation Calibration.R
no_license
sunywen/NIPS-supplementary
R
false
false
2,811
r
# Goal: find critical value for online CPD # Definition: training sample size: N, fixed window size: n, dimension: d, # and permutation steps: B # Note: Calibration is performed for all window frame captured within the trainning sample # yet only sigle window size n is applied library(MASS) libr...
library(locpol) library(R.matlab) # 3-month Treasury Bill yields Z <- read.table('w-gs1yr.txt') z <- Z[1:1735,2] # from Jan-05-1962 to Mar-31-1995 (cf. Fan and Yao) dates <- as.Date(as.character(Z[1:1735,1]),'%Y%m%d') # fit AR(5) yy <- z[6:1735] X <- cbind(z[5:1734],z[4:1733],z[3:1732],z[2:1731],z[1:1730]) lmfit ...
/Tbill/tbill_plot.R
no_license
won-j/joint_estim
R
false
false
7,233
r
library(locpol) library(R.matlab) # 3-month Treasury Bill yields Z <- read.table('w-gs1yr.txt') z <- Z[1:1735,2] # from Jan-05-1962 to Mar-31-1995 (cf. Fan and Yao) dates <- as.Date(as.character(Z[1:1735,1]),'%Y%m%d') # fit AR(5) yy <- z[6:1735] X <- cbind(z[5:1734],z[4:1733],z[3:1732],z[2:1731],z[1:1730]) lmfit ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statcheck-package.R, R/statcheck.R \name{statcheck} \alias{statcheck} \title{Extract statistics and recompute p-values} \usage{ statcheck( texts, stat = c("t", "F", "cor", "chisq", "Z", "Q"), OneTailedTests = FALSE, alpha = ...
/man/statcheck.Rd
no_license
cran/statcheck
R
false
true
5,966
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/statcheck-package.R, R/statcheck.R \name{statcheck} \alias{statcheck} \title{Extract statistics and recompute p-values} \usage{ statcheck( texts, stat = c("t", "F", "cor", "chisq", "Z", "Q"), OneTailedTests = FALSE, alpha = ...
setwd("/Users/thegirlfriend/Sites/boostingecosystems/csv/master") edges <- read.csv("edges.csv") places <- read.csv("lebanon/places.csv") nodes <- read.csv("nodes.csv") View(edges) View(places) View(nodes) nrow(startups) edges <- subset(edges, edges$label == "founded") startups <- merge(edges, nodes, by.x = "to...
/R/unique_startups.R
no_license
chrishaensel/boosting-ecosystems-me
R
false
false
848
r
setwd("/Users/thegirlfriend/Sites/boostingecosystems/csv/master") edges <- read.csv("edges.csv") places <- read.csv("lebanon/places.csv") nodes <- read.csv("nodes.csv") View(edges) View(places) View(nodes) nrow(startups) edges <- subset(edges, edges$label == "founded") startups <- merge(edges, nodes, by.x = "to...
attribution_string <- "@gabrieljmichael, www.gabrieljmichael.com" setwd("/Users/gjm/Documents/_Works in Progress/TPP/leak3/tpp-leaks") # Have to specify number of columns because read.table only looks at first 5 rows groups <- read.table("groups.csv", sep=",", header=FALSE,fill=TRUE,col.names=c(1:12), stringsAsFactors...
/circos.R
no_license
langelgjm/tpp-leaks
R
false
false
11,008
r
attribution_string <- "@gabrieljmichael, www.gabrieljmichael.com" setwd("/Users/gjm/Documents/_Works in Progress/TPP/leak3/tpp-leaks") # Have to specify number of columns because read.table only looks at first 5 rows groups <- read.table("groups.csv", sep=",", header=FALSE,fill=TRUE,col.names=c(1:12), stringsAsFactors...
#' Author: Ted Kwartler #' Date: 6-18-2018 #' Purpose: Lending Club Modeling, Cross Validation, Choose Algo #' # WD setwd('~/HarvardSummerStudent2018/lessons/7_July 25-Finance/day7_data/LC') # Libraries library(rpart) library(randomForest) library(dplyr) library(caret) library(e1071) library(vtreat) # I/O df <- read...
/lessons/7_July 25-Finance/day7_scripts/2_CreditModeling_C.R
no_license
anhnguyendepocen/HarvardSummerStudent2018
R
false
false
3,527
r
#' Author: Ted Kwartler #' Date: 6-18-2018 #' Purpose: Lending Club Modeling, Cross Validation, Choose Algo #' # WD setwd('~/HarvardSummerStudent2018/lessons/7_July 25-Finance/day7_data/LC') # Libraries library(rpart) library(randomForest) library(dplyr) library(caret) library(e1071) library(vtreat) # I/O df <- read...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seq.R \name{dtt_seq} \alias{dtt_seq} \alias{dtt_seq.Date} \alias{dtt_seq.POSIXct} \alias{dtt_seq.hms} \title{Sequence} \usage{ dtt_seq(from, to, units, length_out = NULL, ...) \method{dtt_seq}{Date}(from, to = from, units = "days", length_ou...
/man/dtt_seq.Rd
permissive
poissonconsulting/dttr2
R
false
true
1,440
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/seq.R \name{dtt_seq} \alias{dtt_seq} \alias{dtt_seq.Date} \alias{dtt_seq.POSIXct} \alias{dtt_seq.hms} \title{Sequence} \usage{ dtt_seq(from, to, units, length_out = NULL, ...) \method{dtt_seq}{Date}(from, to = from, units = "days", length_ou...
source("inits/problem.init.R") source("settings.R") # Available models. source("models/mod/mod.R") source("models/activesearch/activesearch.R") source("models/listnet/listnet.R") SETTINGS <- list() initMAB = function() { return (list( MOD$new(), ActiveSearch$new(), ListNet$new(max.iter=100) ) ) } # --------...
/inits/settings/legacy/config2_binary/11001.settings.init.R
no_license
karenenes/selectiveharvesting
R
false
false
2,172
r
source("inits/problem.init.R") source("settings.R") # Available models. source("models/mod/mod.R") source("models/activesearch/activesearch.R") source("models/listnet/listnet.R") SETTINGS <- list() initMAB = function() { return (list( MOD$new(), ActiveSearch$new(), ListNet$new(max.iter=100) ) ) } # --------...
mydata=read.csv(file.choose(), header=TRUE) mydata Depression=mydata$Depression State=mydata$State boxplot(Depression~State, main="Comparative Position of Depression Index", ylab="Depression Score", col=c("Red", "Green", "Blue")) Model=aov(Depression~State) summary(Model)
/Oneway-Anova.R
no_license
MSaldanaa/DS
R
false
false
278
r
mydata=read.csv(file.choose(), header=TRUE) mydata Depression=mydata$Depression State=mydata$State boxplot(Depression~State, main="Comparative Position of Depression Index", ylab="Depression Score", col=c("Red", "Green", "Blue")) Model=aov(Depression~State) summary(Model)
# KNN 41.53654% after scaling its 34.25% library(class) train <- read.csv(file="training.csv") test <- read.csv(file="test.csv") # Correct the data types train$relevance <- as.factor(train$relevance) # train$sig3 = log(train$sig3+1) # train$sig4 = log(train$sig4+1) # train$sig5 = log(train$sig5+1) # Because the KN...
/knn.R
no_license
anantham/Stats202
R
false
false
5,328
r
# KNN 41.53654% after scaling its 34.25% library(class) train <- read.csv(file="training.csv") test <- read.csv(file="test.csv") # Correct the data types train$relevance <- as.factor(train$relevance) # train$sig3 = log(train$sig3+1) # train$sig4 = log(train$sig4+1) # train$sig5 = log(train$sig5+1) # Because the KN...
# the "main" file for the shiny app # !diagnostics suppress=.APP_UI, .APP_SERVER # sources other shiny files start with `app_` for easy grouping # avoid ui.R and server.R so that [Run App] runs only this file # source constants, settings and engine only once source("main.R") # additional shiny libraries (not use...
/inst/examples/template/app.R
permissive
numeract/shinyXT
R
false
false
492
r
# the "main" file for the shiny app # !diagnostics suppress=.APP_UI, .APP_SERVER # sources other shiny files start with `app_` for easy grouping # avoid ui.R and server.R so that [Run App] runs only this file # source constants, settings and engine only once source("main.R") # additional shiny libraries (not use...
## These functions written in partial fulfillment of Coursera Data Science: ## R Programming Week 3 Assignment: Caching the Inverse of a Matrix ## This function Function makeCacheMatrix gets a matrix as an input, ## set the value of the matrix, get the value of the matrix, set the ## inverse Matrix and get the inve...
/cachematrix.R
no_license
Mukul55/ProgrammingAssignment2
R
false
false
1,789
r
## These functions written in partial fulfillment of Coursera Data Science: ## R Programming Week 3 Assignment: Caching the Inverse of a Matrix ## This function Function makeCacheMatrix gets a matrix as an input, ## set the value of the matrix, get the value of the matrix, set the ## inverse Matrix and get the inve...
# This file contains a collection of functions that can cache the inverse of a # matrix in a separate environment ## this function sets up a caching environment that stores a matrix and its ## inverse, and functions to read and write to the caching environment makeCacheMatrix <- function(x = matrix()) { inv <- N...
/cachematrix.R
no_license
NoMoneyNoSwiss/ProgrammingAssignment2
R
false
false
931
r
# This file contains a collection of functions that can cache the inverse of a # matrix in a separate environment ## this function sets up a caching environment that stores a matrix and its ## inverse, and functions to read and write to the caching environment makeCacheMatrix <- function(x = matrix()) { inv <- N...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mobr.R \name{get_overall_p} \alias{get_overall_p} \title{Auxillary function for effect_ functions Compute an overall p-value for one factor in the discrete case p-value is based on mean squared difference from zero summed across the scales} \...
/man/get_overall_p.Rd
no_license
rueuntal/mobr
R
false
true
594
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mobr.R \name{get_overall_p} \alias{get_overall_p} \title{Auxillary function for effect_ functions Compute an overall p-value for one factor in the discrete case p-value is based on mean squared difference from zero summed across the scales} \...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retrieve-metadata.R \name{sf_retrieve_metadata} \alias{sf_retrieve_metadata} \title{Make A Request to Retrieve the Metadata} \usage{ sf_retrieve_metadata(retrieve_request, filename = "package.zip", check_interval = 3, max_tries = 20, verbos...
/man/sf_retrieve_metadata.Rd
permissive
TonyWhiteSMS/salesforcer
R
false
true
1,796
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retrieve-metadata.R \name{sf_retrieve_metadata} \alias{sf_retrieve_metadata} \title{Make A Request to Retrieve the Metadata} \usage{ sf_retrieve_metadata(retrieve_request, filename = "package.zip", check_interval = 3, max_tries = 20, verbos...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/gradcols.R \name{gradcols} \alias{gradcols} \title{Get colors for plots} \usage{ gradcols(col_vec = NULL) } \arguments{ \item{col_vec}{chr string of plot colors to use. Any color palette from RColorBrewer can be used as a named input....
/man/gradcols.Rd
no_license
quatmo/SWMPr
R
false
false
713
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/gradcols.R \name{gradcols} \alias{gradcols} \title{Get colors for plots} \usage{ gradcols(col_vec = NULL) } \arguments{ \item{col_vec}{chr string of plot colors to use. Any color palette from RColorBrewer can be used as a named input....
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # shinyServer(function(input, output) { output$plot1 <- renderPlot({ set.seed(1984...
/server.R
no_license
oswaldopaz/Developing-Data-Prod.
R
false
false
1,061
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # shinyServer(function(input, output) { output$plot1 <- renderPlot({ set.seed(1984...
#' @param calibrate a logical for whether to use MAD calibrated t-stats. cate_nc <- function(Y, X, num_sv, control_genes, calibrate = FALSE) { calibrate <- as.logical(calibrate) cate_nc <- cate::cate(~Treatment, Y = Y, X.data = data.frame(Treatment = X[, 2]), ...
/simulator_sims/sims/adjustment_methods/cate_nc.R
no_license
Feigeliudan01/sim_code
R
false
false
779
r
#' @param calibrate a logical for whether to use MAD calibrated t-stats. cate_nc <- function(Y, X, num_sv, control_genes, calibrate = FALSE) { calibrate <- as.logical(calibrate) cate_nc <- cate::cate(~Treatment, Y = Y, X.data = data.frame(Treatment = X[, 2]), ...
fltr <- function(x, f, ...) { index <- map_lgl(x, f, ...) x[index] } map <- function(x, f, ...) { lapply(X = x, FUN = as_function(f), ...) } map_chr <- function(x, f, ...) { vapply(X = x, FUN = as_function(f), FUN.VALUE = character(1), ...) } map_dbl <- function(x, f, ...) { vapply(X = x, FUN = as_function...
/R/utils_functional.R
permissive
wlandau/crew
R
false
false
744
r
fltr <- function(x, f, ...) { index <- map_lgl(x, f, ...) x[index] } map <- function(x, f, ...) { lapply(X = x, FUN = as_function(f), ...) } map_chr <- function(x, f, ...) { vapply(X = x, FUN = as_function(f), FUN.VALUE = character(1), ...) } map_dbl <- function(x, f, ...) { vapply(X = x, FUN = as_function...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear_model.R \name{linear_model} \alias{linear_model} \title{linear_model() function} \usage{ linear_model(form, dataframe, contrasts = NULL) } \arguments{ \item{form}{a formula;} \item{dataframe}{a data frame;} \item{contrasts}{a list of...
/man/linear_model.Rd
no_license
Yannuo10/bis557
R
false
true
525
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/linear_model.R \name{linear_model} \alias{linear_model} \title{linear_model() function} \usage{ linear_model(form, dataframe, contrasts = NULL) } \arguments{ \item{form}{a formula;} \item{dataframe}{a data frame;} \item{contrasts}{a list of...
#' @importFrom stats sd IQR mergeDuplicate <- function(id,data,collapseMode="maxSD"){ data <- as.data.frame(data, stringsAsFactors=FALSE) if(!is.vector(id)){ stop("The input id should be a vector object!\n") } if(!is.matrix(data) && !is.data.frame(data)){ stop("The input data matrix should be a matrix or data....
/WebGestaltR/R/mergeDuplicate.R
no_license
akhikolla/InformationHouse
R
false
false
1,812
r
#' @importFrom stats sd IQR mergeDuplicate <- function(id,data,collapseMode="maxSD"){ data <- as.data.frame(data, stringsAsFactors=FALSE) if(!is.vector(id)){ stop("The input id should be a vector object!\n") } if(!is.matrix(data) && !is.data.frame(data)){ stop("The input data matrix should be a matrix or data....
\name{query.traits} \alias{query.traits} \title{Query trait data} \usage{ query.traits(spstr, priors, con = NULL) } \arguments{ \item{spstr}{string of species id's from trait database} \item{priors}{vector of parameters for which priors have been specified} \item{con}{} } \value{ dataframe with trait data...
/db/man/query.traits.Rd
permissive
kemball/pecan
R
false
false
659
rd
\name{query.traits} \alias{query.traits} \title{Query trait data} \usage{ query.traits(spstr, priors, con = NULL) } \arguments{ \item{spstr}{string of species id's from trait database} \item{priors}{vector of parameters for which priors have been specified} \item{con}{} } \value{ dataframe with trait data...
#' Shows proportion need to win #' #' Shows the porportion of remaining delegates candidate needs to win #' #' @param object of class Candidate #' @param remainingDelegates number of remaining delegates #' #' @return print each individual element of Candidate #' @author David Flaserstein #' @rdname propNeeded #' @expor...
/primaryRace/R/propNeeded.R
no_license
davidflast/PS6
R
false
false
696
r
#' Shows proportion need to win #' #' Shows the porportion of remaining delegates candidate needs to win #' #' @param object of class Candidate #' @param remainingDelegates number of remaining delegates #' #' @return print each individual element of Candidate #' @author David Flaserstein #' @rdname propNeeded #' @expor...
# # Copyright 2007-2017 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
/demo/MultipleRegression_MatrixCov.R
no_license
ktargows/OpenMx
R
false
false
4,154
r
# # Copyright 2007-2017 The OpenMx Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
Replace_Values_Map <- function(x, dictionary) { # replace all instances of multiple values with other values according to a dictionary x.f <- factor(x) dictionary <- dictionary[dictionary$original %in% x,] levels(x.f)[match(dictionary$original, levels(x.f))] <- dictionary$new return(as.characte...
/scripts/helper/Replace_Values_Map.R
no_license
FlightlessAlbatross/project_template
R
false
false
559
r
Replace_Values_Map <- function(x, dictionary) { # replace all instances of multiple values with other values according to a dictionary x.f <- factor(x) dictionary <- dictionary[dictionary$original %in% x,] levels(x.f)[match(dictionary$original, levels(x.f))] <- dictionary$new return(as.characte...
#!/usr/bin/Rscript --no-save # Voyage of the Rodgers library(GSDF.WeatherMap) library(GSDF) # Get the observations o<-read.fwf(file='../../imma_3+/Rodgers.imma', widths=c(4,2,2,4,5,6,84)) o$Longitude<-o$V6/100 o$Latitude<-o$V5/100 Options<-WeatherMap.set.option(NULL) Options<-WeatherMap.set.option(Options,'show.msl...
/ICOADS3+/Rodgers/plot_voyage.R
no_license
oldweather/oldWeather3
R
false
false
1,937
r
#!/usr/bin/Rscript --no-save # Voyage of the Rodgers library(GSDF.WeatherMap) library(GSDF) # Get the observations o<-read.fwf(file='../../imma_3+/Rodgers.imma', widths=c(4,2,2,4,5,6,84)) o$Longitude<-o$V6/100 o$Latitude<-o$V5/100 Options<-WeatherMap.set.option(NULL) Options<-WeatherMap.set.option(Options,'show.msl...
\name{get_segment_list} \alias{get_segment_list} \title{Make an Emu segment list from items in an item list} \usage{ get_segment_list(type = "", label = "") } \arguments{ \item{type}{Type of segments to extract} \item{label}{Value of labels to extract} } \value{ An Emu segment list } \description{ Traverses throug...
/man/get_segment_list.Rd
no_license
IntersectAustralia/alveo-r
R
false
false
641
rd
\name{get_segment_list} \alias{get_segment_list} \title{Make an Emu segment list from items in an item list} \usage{ get_segment_list(type = "", label = "") } \arguments{ \item{type}{Type of segments to extract} \item{label}{Value of labels to extract} } \value{ An Emu segment list } \description{ Traverses throug...
#Chapter 15 Higher Order Terms autompg = read.table( "http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data", quote = "\"", comment.char = "", stringsAsFactors = FALSE) colnames(autompg) = c("mpg", "cyl", "disp", "hp", "wt", "acc", "year", "origin", "name") auto...
/Week 9/Chapter 15 poly.R
no_license
memasanz/stats420
R
false
false
1,388
r
#Chapter 15 Higher Order Terms autompg = read.table( "http://archive.ics.uci.edu/ml/machine-learning-databases/auto-mpg/auto-mpg.data", quote = "\"", comment.char = "", stringsAsFactors = FALSE) colnames(autompg) = c("mpg", "cyl", "disp", "hp", "wt", "acc", "year", "origin", "name") auto...
library(e1071) NB <-naiveBayes(Business_Sourced ~ ., data = Train) summary(NB) pred= predict(NB,Train) table(pred, Train$Business_Sourced) accuracy <- mean(pred == Train$Business_Sourced) accuracy
/code/naiveBayes.R
no_license
AbhishekShetty1991/theSmartRecruit
R
false
false
200
r
library(e1071) NB <-naiveBayes(Business_Sourced ~ ., data = Train) summary(NB) pred= predict(NB,Train) table(pred, Train$Business_Sourced) accuracy <- mean(pred == Train$Business_Sourced) accuracy
rm(list = ls()) library(Daniel) library(dplyr) library(nnet) CalcCImultinom <- function(fit) { s <- summary(fit) coef <- s$coefficients ses <- s$standard.errors ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2] ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2] return(rbind(ci.1,ci.2)) } #key # A, B,C,D,E,F - betaE[2] =...
/Simulations/Scripts/R/Rare/Scenario 9a/CMPEn50KrareScen9aEE.R
no_license
yadevi/CausalMPE
R
false
false
4,221
r
rm(list = ls()) library(Daniel) library(dplyr) library(nnet) CalcCImultinom <- function(fit) { s <- summary(fit) coef <- s$coefficients ses <- s$standard.errors ci.1 <- coef[1,2] + c(-1, 1)*1.96*ses[1, 2] ci.2 <- coef[2,2] + c(-1, 1)*1.96*ses[2, 2] return(rbind(ci.1,ci.2)) } #key # A, B,C,D,E,F - betaE[2] =...
ComputeDER = function(df){ AB = sum(df$BFP, na.rm = TRUE) BB = sum(df$BB, na.rm = TRUE) HBP = sum(df$HBP, na.rm = TRUE) SH = sum(df$SH, na.rm = TRUE) SF = sum(df$SF, na.rm = TRUE) PA = AB + BB + HBP + SH + SF H = sum(df$H, na.rm = TRUE) HR = sum(df$HR,na.rm = TRUE) SO = sum(df$SO, na.rm = TRUE) ...
/11-14-16 Predicting Wins/ComputeDER.R
no_license
nkk36/Learning-Machine-Learning
R
false
false
430
r
ComputeDER = function(df){ AB = sum(df$BFP, na.rm = TRUE) BB = sum(df$BB, na.rm = TRUE) HBP = sum(df$HBP, na.rm = TRUE) SH = sum(df$SH, na.rm = TRUE) SF = sum(df$SF, na.rm = TRUE) PA = AB + BB + HBP + SH + SF H = sum(df$H, na.rm = TRUE) HR = sum(df$HR,na.rm = TRUE) SO = sum(df$SO, na.rm = TRUE) ...
filepath <- "C:\\Users\\zeugm_000\\Downloads\\hw1_data (1)\\hw1_data.csv" data <- read.csv(filepath) data[1:2,] # Print first two lines numRows <- dim(data)[1] # Number of rows print(numRows) data[(numRows-1):numRows,] # Last two rows, based on above result data[47,]["Ozone"] ozones <- data["Ozone"] naOzones <- ozones...
/ProgAssignment1.R
no_license
axiomabsolute/R-Class
R
false
false
872
r
filepath <- "C:\\Users\\zeugm_000\\Downloads\\hw1_data (1)\\hw1_data.csv" data <- read.csv(filepath) data[1:2,] # Print first two lines numRows <- dim(data)[1] # Number of rows print(numRows) data[(numRows-1):numRows,] # Last two rows, based on above result data[47,]["Ozone"] ozones <- data["Ozone"] naOzones <- ozones...
## Writing two functions in order to cache the value of the inverse of a matrix ## such that when we need it again, we can look up the cache rather than ## recompute it, which would be time consuming ## The first function creates a special matrix called makeCacheMatrix ## which is a matrix designed to set a null ...
/cachematrix.R
no_license
nicthegreat/ProgrammingAssignment2
R
false
false
1,620
r
## Writing two functions in order to cache the value of the inverse of a matrix ## such that when we need it again, we can look up the cache rather than ## recompute it, which would be time consuming ## The first function creates a special matrix called makeCacheMatrix ## which is a matrix designed to set a null ...
# Automatically generated from the noweb directory print.pyears <- function(x, ...) { if (!is.null(cl<- x$call)) { cat("Call:\n") #LUKI dput(cl) cat("\n") } if (is.null(x$data)) { if (!is.null(x$event)) cat("Total number of events:", format(sum(x$event)), "\n...
/Recommended/survival/R/print.pyears.R
no_license
katrinleinweber/ivory
R
false
false
16,030
r
# Automatically generated from the noweb directory print.pyears <- function(x, ...) { if (!is.null(cl<- x$call)) { cat("Call:\n") #LUKI dput(cl) cat("\n") } if (is.null(x$data)) { if (!is.null(x$event)) cat("Total number of events:", format(sum(x$event)), "\n...
library(ahaz) ### Name: sorlie ### Title: Sorlie gene expressions ### Aliases: sorlie ### Keywords: datasets ### ** Examples data(sorlie)
/data/genthat_extracted_code/ahaz/examples/sorlie.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
147
r
library(ahaz) ### Name: sorlie ### Title: Sorlie gene expressions ### Aliases: sorlie ### Keywords: datasets ### ** Examples data(sorlie)
E4CubeTest.R GISS Model E coupled version kelley 02/25/2010 E4CubeTest: C32 cubed-sphere version of E4M20 coupled to 4x5 13-layer ocean. Intended to be used for regression testing and demonstration only. E4M20.R GISS Model E 2004 modelE rar 07/15/2009 E4M20: modelE as froz...
/templates/E4CubeTest.R
no_license
feiliuesmf/modelE
R
false
false
5,481
r
E4CubeTest.R GISS Model E coupled version kelley 02/25/2010 E4CubeTest: C32 cubed-sphere version of E4M20 coupled to 4x5 13-layer ocean. Intended to be used for regression testing and demonstration only. E4M20.R GISS Model E 2004 modelE rar 07/15/2009 E4M20: modelE as froz...
#plotGenesOnCircle.R #' @title Plot genes on the main circle #' #' @description Plot circular genes on the circle in the order their found in the tree #' #' @name plotGenesOnCircle #' @param tree phylo object obtained from calling read.tree on a newick tree file #' @param radius desired radius of main circle ...
/R/plotGenesOnCircle.R
permissive
ayalaemmylou/KaKsMap
R
false
false
2,718
r
#plotGenesOnCircle.R #' @title Plot genes on the main circle #' #' @description Plot circular genes on the circle in the order their found in the tree #' #' @name plotGenesOnCircle #' @param tree phylo object obtained from calling read.tree on a newick tree file #' @param radius desired radius of main circle ...
##Download file download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household_power_consumption.zip") unzip("household_power_consumption.zip") ##Read data hpcData <- read.table("household_power_consumption.txt", sep = ';', header=T, na.strings='?', colClasses = c("c...
/plot1.R
no_license
alok-tyagi/ExData_Plotting1
R
false
false
875
r
##Download file download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip", "household_power_consumption.zip") unzip("household_power_consumption.zip") ##Read data hpcData <- read.table("household_power_consumption.txt", sep = ';', header=T, na.strings='?', colClasses = c("c...
# Midterm 3 # Write a function called numDollarElements. Your function should take the following # arguments # <chvec>: A character vector containing strings of letters, possibly # with the "$" symbol # # and return the following # <num.dollar>: an integer indicating how many elements of <chvec> contain the "...
/midterm3/midterm3.R
no_license
cliu412/stat133
R
false
false
2,723
r
# Midterm 3 # Write a function called numDollarElements. Your function should take the following # arguments # <chvec>: A character vector containing strings of letters, possibly # with the "$" symbol # # and return the following # <num.dollar>: an integer indicating how many elements of <chvec> contain the "...
#' ggplot geom to plot a time line of earthquakes #' #' This function reads an Earthquake dataset in a dataframe format to plot a time line of earthquakes ranging from the minimum to the maximum dates with a point for each earthquake. #' The x aesthetic is a date and an optional y aesthetic is a factor that stratifies ...
/R/Geom_functions.R
no_license
DanielAyllon/EarthQuakeAnalyzer
R
false
false
9,011
r
#' ggplot geom to plot a time line of earthquakes #' #' This function reads an Earthquake dataset in a dataframe format to plot a time line of earthquakes ranging from the minimum to the maximum dates with a point for each earthquake. #' The x aesthetic is a date and an optional y aesthetic is a factor that stratifies ...
# Set up the environment -------------------------------------------------- library(rvest) library(magrittr) library(selectr) # Read in the page -------------------------------------------------------- webtext1 <- read_html("1_Data/webtext1.html") webtext1 head <- webtext1 %>% html_nodes("head") head head[[1]] bo...
/webtext1.R
no_license
vmsmith/WebTextAnalysis
R
false
false
1,766
r
# Set up the environment -------------------------------------------------- library(rvest) library(magrittr) library(selectr) # Read in the page -------------------------------------------------------- webtext1 <- read_html("1_Data/webtext1.html") webtext1 head <- webtext1 %>% html_nodes("head") head head[[1]] bo...
# test_ISOMetadataExtensionInformation.R # Author: Emmanuel Blondel <emmanuel.blondel1@gmail.com> # # Description: Unit tests for ISOMetadataExtensionInformation.R #======================= require(geometa, quietly = TRUE) require(testthat) context("ISOMetadataExtensionInformation") test_that("encoding",{ #encodi...
/tests/testthat/test_ISOMetadataExtensionInformation.R
no_license
65MO/geometa
R
false
false
1,817
r
# test_ISOMetadataExtensionInformation.R # Author: Emmanuel Blondel <emmanuel.blondel1@gmail.com> # # Description: Unit tests for ISOMetadataExtensionInformation.R #======================= require(geometa, quietly = TRUE) require(testthat) context("ISOMetadataExtensionInformation") test_that("encoding",{ #encodi...
############################################################################### # R (http://r-project.org/) Numeric Methods for Optimization of Portfolios # # Copyright (c) 2004-2015 Brian G. Peterson, Peter Carl, Ross Bennett, Kris Boudt # # This library is distributed under the terms of the GNU Public License (GPL) #...
/PortfolioAnalytics/R/objective.R
no_license
ingted/R-Examples
R
false
false
25,721
r
############################################################################### # R (http://r-project.org/) Numeric Methods for Optimization of Portfolios # # Copyright (c) 2004-2015 Brian G. Peterson, Peter Carl, Ross Bennett, Kris Boudt # # This library is distributed under the terms of the GNU Public License (GPL) #...
library(netCoin) ### Name: coin ### Title: Coincidence matrix. ### Aliases: coin ### ** Examples ## Random incidence matrix: 25 scenarios, 4 events. I <- matrix(rbinom(100, 1, .5), nrow = 25, ncol = 4, dimnames = list(NULL, c("A", "B", "C", "D"))) coin(I, sort = TRUE) ## Hair by Eye by Sex table from M...
/data/genthat_extracted_code/netCoin/examples/coin.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
463
r
library(netCoin) ### Name: coin ### Title: Coincidence matrix. ### Aliases: coin ### ** Examples ## Random incidence matrix: 25 scenarios, 4 events. I <- matrix(rbinom(100, 1, .5), nrow = 25, ncol = 4, dimnames = list(NULL, c("A", "B", "C", "D"))) coin(I, sort = TRUE) ## Hair by Eye by Sex table from M...
# Some help func. -------------------------------------------------------------- #' dilute dataset. #' #' help function #' #' @param data0 dataset #' @param dilute_by default to 10, 1/10 #' @export helper.dilute.data #' helper.dilute.data <- function(data0, dilute_by = 10){ set.seed(1234) data0 <- data0[sample(nr...
/R/helper.R
permissive
liuyanguu/plotthis
R
false
false
737
r
# Some help func. -------------------------------------------------------------- #' dilute dataset. #' #' help function #' #' @param data0 dataset #' @param dilute_by default to 10, 1/10 #' @export helper.dilute.data #' helper.dilute.data <- function(data0, dilute_by = 10){ set.seed(1234) data0 <- data0[sample(nr...
testlist <- list(a = 0L, b = 0L, x = c(1090455807L, -741081340L, 540736L, 1078001416L, -16777216L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) ...
/grattan/inst/testfiles/anyOutside/libFuzzer_anyOutside/anyOutside_valgrind_files/1610386129-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
380
r
testlist <- list(a = 0L, b = 0L, x = c(1090455807L, -741081340L, 540736L, 1078001416L, -16777216L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) ...
# use source(r-code/regression-evaluation.R) to have function in your script file install.packages("ranger") install.packages("leaps") library(ranger) library(leaps) # DESIGNATE TESTING AND TRAINING DATASETS n = dim(winequality)[1]; ### total number of observations n1 = round(n/10); ### number of observations...
/r-code/regression-evaluation.R
no_license
earobinson95/Statistical-Learning-Project-UNL-STAT983
R
false
false
2,378
r
# use source(r-code/regression-evaluation.R) to have function in your script file install.packages("ranger") install.packages("leaps") library(ranger) library(leaps) # DESIGNATE TESTING AND TRAINING DATASETS n = dim(winequality)[1]; ### total number of observations n1 = round(n/10); ### number of observations...
# add empty .domo_env as parent .domo_env <- new.env() .onLoad <- function(libname, pkgname) { packageStartupMessage("Welcome to DomoRRead") } #' Initialize Domo package #' #' @param customer The customer ID or base URL. e.g. acme.domo.com or acme #' @param token The DEV token required for API access. #' @expor...
/R/DomoRRead.R
no_license
domoinc-r/DomoRRead
R
false
false
2,311
r
# add empty .domo_env as parent .domo_env <- new.env() .onLoad <- function(libname, pkgname) { packageStartupMessage("Welcome to DomoRRead") } #' Initialize Domo package #' #' @param customer The customer ID or base URL. e.g. acme.domo.com or acme #' @param token The DEV token required for API access. #' @expor...
create_tab6_page <- function(session) { tab_page <- fluidPage( useShinyjs(), ####Main heading on page tags$h4("Graphing options"), tags$br(), ####Select a resoultion for the images using a slider bar sliderInput(inputId = "plot_res", label = "Resolution (dpi...
/tabItems/tab6_page.R
permissive
pgristow/FORSTAT
R
false
false
1,247
r
create_tab6_page <- function(session) { tab_page <- fluidPage( useShinyjs(), ####Main heading on page tags$h4("Graphing options"), tags$br(), ####Select a resoultion for the images using a slider bar sliderInput(inputId = "plot_res", label = "Resolution (dpi...
library(shinydashboard) library(leaflet) library(plotly) #Following is the code for UI. body <- dashboardBody(titleWidth = 10, #Dashboard Body # HTML for landing page tags$head(tags$style(HTML('.modal.in .modal-dialog{ width:100%; ...
/ui.R
no_license
rohanpaithankar/US_GunViolence_Analysis
R
false
false
3,215
r
library(shinydashboard) library(leaflet) library(plotly) #Following is the code for UI. body <- dashboardBody(titleWidth = 10, #Dashboard Body # HTML for landing page tags$head(tags$style(HTML('.modal.in .modal-dialog{ width:100%; ...
dOrlocimissing <- function(x) { n <- dim(x)[1] p <- dim(x)[2] d <- matrix(0, n, n) for (i in 1:(n-1)) { for (j in (i+1):n) { xi <- x[i, ] mi <- sapply(xi, is.na) xj <-...
/R/dOrlocimissing.R
no_license
ItziarI/WeDiBaDis
R
false
false
650
r
dOrlocimissing <- function(x) { n <- dim(x)[1] p <- dim(x)[2] d <- matrix(0, n, n) for (i in 1:(n-1)) { for (j in (i+1):n) { xi <- x[i, ] mi <- sapply(xi, is.na) xj <-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/POLYFUN.R \name{POLYFUN.h2_enrichment_SNPgroups} \alias{POLYFUN.h2_enrichment_SNPgroups} \title{Run heritability enrichment tests across SNP groups} \source{ https://www.biorxiv.org/content/10.1101/807792v3 } \usage{ POLYFUN.h2_enrichment_SNP...
/man/POLYFUN.h2_enrichment_SNPgroups.Rd
permissive
UKDRI/echolocatoR
R
false
true
2,061
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/POLYFUN.R \name{POLYFUN.h2_enrichment_SNPgroups} \alias{POLYFUN.h2_enrichment_SNPgroups} \title{Run heritability enrichment tests across SNP groups} \source{ https://www.biorxiv.org/content/10.1101/807792v3 } \usage{ POLYFUN.h2_enrichment_SNP...
library(data.table) options(width = 300) df <- fread('../dataset.csv') df[, sentiment := factor(sentiment)] df[, target := factor(target)] df[, source := factor(source)] levels(df$sentiment) summary(df[sentiment != 'none']) df[sentiment == 'normal', .N, by = .(source)] df[, .N, by = .(sentiment)] df[, .N, by = .(se...
/datasets/test.r
no_license
aljazerzen/data-science-nlp
R
false
false
585
r
library(data.table) options(width = 300) df <- fread('../dataset.csv') df[, sentiment := factor(sentiment)] df[, target := factor(target)] df[, source := factor(source)] levels(df$sentiment) summary(df[sentiment != 'none']) df[sentiment == 'normal', .N, by = .(source)] df[, .N, by = .(sentiment)] df[, .N, by = .(se...
library(tidyverse) library(zoo) library(shiny) library(shinydashboard) library(rsconnect) library(leaflet) #load the data data <- read.csv("data.csv") data <- as.tibble(data) data_h <- data data$Time <- as.Date(data$Time) #load avg_data data_avg <- read.csv("data_avg.csv") data_avg <- as.tibble(data_av...
/shiny_U80494546_Hongyi He.R
no_license
homiehe/Assignment5-part2
R
false
false
7,658
r
library(tidyverse) library(zoo) library(shiny) library(shinydashboard) library(rsconnect) library(leaflet) #load the data data <- read.csv("data.csv") data <- as.tibble(data) data_h <- data data$Time <- as.Date(data$Time) #load avg_data data_avg <- read.csv("data_avg.csv") data_avg <- as.tibble(data_av...
test_that("UTF-8 executable name", { local_temp_dir() name <- "./\u00fa\u00e1\u00f6\u0151\u00e9.exe" px <- get_tool("px") file.copy(px, name) out <- run( name, c("out", "hello", "return", 10), error_on_status = FALSE ) expect_equal(out$stdout, "hello") expect_equal(out$status, 10) }) test_...
/tests/testthat/test-utf8.R
permissive
rschuchmann/processx
R
false
false
2,153
r
test_that("UTF-8 executable name", { local_temp_dir() name <- "./\u00fa\u00e1\u00f6\u0151\u00e9.exe" px <- get_tool("px") file.copy(px, name) out <- run( name, c("out", "hello", "return", 10), error_on_status = FALSE ) expect_equal(out$stdout, "hello") expect_equal(out$status, 10) }) test_...
#' Creates a manhattan plot using ggplot2 and returns the plot object. #' #' @param x A data frame with association result data #' @param y A data frame with annotation data to color markers in an area and annotate the top SNP (ignored if NA) #' @param z A data frame with reference hits to be annotated using vertical ...
/R/manhattan.R
permissive
SelectionPredisposed/qqman2
R
false
false
15,506
r
#' Creates a manhattan plot using ggplot2 and returns the plot object. #' #' @param x A data frame with association result data #' @param y A data frame with annotation data to color markers in an area and annotate the top SNP (ignored if NA) #' @param z A data frame with reference hits to be annotated using vertical ...
context("test-center.R") test_that("Check-center",{ expect_equal(object = center(c(1,2,3)), expected = c( -1, 0, 1)) expect_equal(object = center(c(1,2,3),1), expected = c( 0, 1, 2)) })
/tests/testthat/test-center.R
permissive
julianhocker/FaiR
R
false
false
195
r
context("test-center.R") test_that("Check-center",{ expect_equal(object = center(c(1,2,3)), expected = c( -1, 0, 1)) expect_equal(object = center(c(1,2,3),1), expected = c( 0, 1, 2)) })
\name{osmasemR2} \alias{osmasemR2} \title{Calculate the R2 in OSMASEM and OSMASEM3L} \description{It calculates the R2 of the moderators in explaining the variances in the heterogeneity variances. } \usage{ osmasemR2(model1, model0, R2.truncate=TRUE) } \arguments{ \item{model1}{An object in class \code{osmasem}.}...
/man/osmasemR2.Rd
no_license
mikewlcheung/metasem
R
false
false
981
rd
\name{osmasemR2} \alias{osmasemR2} \title{Calculate the R2 in OSMASEM and OSMASEM3L} \description{It calculates the R2 of the moderators in explaining the variances in the heterogeneity variances. } \usage{ osmasemR2(model1, model0, R2.truncate=TRUE) } \arguments{ \item{model1}{An object in class \code{osmasem}.}...
# Name: Plot1.R # Author: Joe Logan # Date 12-March 2017 # Assignment: Create Histogram showing the frequency for every .5 KW Global Active Power # Read all of the data into a data frame if haven't already loaded if(!exists("data_all")) { data_all <- read.csv("./data/household_power_consumption.txt", header=TR...
/plot1.R
no_license
jtl6713/ExData_Plotting1
R
false
false
1,082
r
# Name: Plot1.R # Author: Joe Logan # Date 12-March 2017 # Assignment: Create Histogram showing the frequency for every .5 KW Global Active Power # Read all of the data into a data frame if haven't already loaded if(!exists("data_all")) { data_all <- read.csv("./data/household_power_consumption.txt", header=TR...
library(testthat) context("points") ## TODO: Rename context library(anglr) data(simpleworld) pts <- as(as(simpleworld, "SpatialLinesDataFrame"), "SpatialPointsDataFrame") mpts <- as(as(simpleworld, "SpatialLinesDataFrame"), "SpatialMultiPointsDataFrame") test_that("points works", { expect_silent(anglr(pts)) }) t...
/tests/testthat/test-points.R
no_license
cuulee/anglr
R
false
false
458
r
library(testthat) context("points") ## TODO: Rename context library(anglr) data(simpleworld) pts <- as(as(simpleworld, "SpatialLinesDataFrame"), "SpatialPointsDataFrame") mpts <- as(as(simpleworld, "SpatialLinesDataFrame"), "SpatialMultiPointsDataFrame") test_that("points works", { expect_silent(anglr(pts)) }) t...
#----HEADER------------------------------------------------------------------------------------------------------------- # Purpose: Model measles fatal and nonfatal outcomes for GBD # PART ONE - Incidence natural history model # PART TWO - Rescale case estimates # PART THREE - Age-...
/nonfatal_code/measles/nonfatal.R
no_license
Nermin-Ghith/ihme-modeling
R
false
false
44,007
r
#----HEADER------------------------------------------------------------------------------------------------------------- # Purpose: Model measles fatal and nonfatal outcomes for GBD # PART ONE - Incidence natural history model # PART TWO - Rescale case estimates # PART THREE - Age-...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.swf_operations.R \name{register_domain} \alias{register_domain} \title{Registers a new domain} \usage{ register_domain(name, description = NULL, workflowExecutionRetentionPeriodInDays) } \arguments{ \item{name}{[required] Name of the d...
/service/paws.swf/man/register_domain.Rd
permissive
CR-Mercado/paws
R
false
true
2,639
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.swf_operations.R \name{register_domain} \alias{register_domain} \title{Registers a new domain} \usage{ register_domain(name, description = NULL, workflowExecutionRetentionPeriodInDays) } \arguments{ \item{name}{[required] Name of the d...
#' Generating Random Data From A Weibull Mixture Model #' #' The function \code{rmixweibull} generates random data from a normal Weibull model. #' #' The number of random data from each component \eqn{n_0} (a vector) is generated from a multinomial #' distribution Multinom\eqn{(n, pi)}. Then the random data from each c...
/issuestests/mixR/R/rmixweibull.R
no_license
akhikolla/RcppDeepStateTest
R
false
false
1,790
r
#' Generating Random Data From A Weibull Mixture Model #' #' The function \code{rmixweibull} generates random data from a normal Weibull model. #' #' The number of random data from each component \eqn{n_0} (a vector) is generated from a multinomial #' distribution Multinom\eqn{(n, pi)}. Then the random data from each c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cognitoidentityprovider_operations.R \name{cognitoidentityprovider_set_user_mfa_preference} \alias{cognitoidentityprovider_set_user_mfa_preference} \title{Set the user's multi-factor authentication (MFA) method preference, including which MFA...
/cran/paws.security.identity/man/cognitoidentityprovider_set_user_mfa_preference.Rd
permissive
johnnytommy/paws
R
false
true
1,458
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cognitoidentityprovider_operations.R \name{cognitoidentityprovider_set_user_mfa_preference} \alias{cognitoidentityprovider_set_user_mfa_preference} \title{Set the user's multi-factor authentication (MFA) method preference, including which MFA...
# Best function best <- function(state, outcome) { ## Read outcome data data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") data_ned <- as.data.frame(cbind(data[,2], # hospital name data[,7], # state name data[,11], # he...
/best.R
no_license
Xiuyuan8/R_Programming_Week3
R
false
false
1,245
r
# Best function best <- function(state, outcome) { ## Read outcome data data <- read.csv("outcome-of-care-measures.csv", colClasses = "character") data_ned <- as.data.frame(cbind(data[,2], # hospital name data[,7], # state name data[,11], # he...
# S9 - Number of children expected to outlive their mothers # Number of children expected to live longer than their mothers, asuming # that the mothers survive to mean age at death (life expectancy) in # their cohort and country of birth. Regional estimates show the median # value and IQR in parenthesis. # ~~~~~~...
/R/D_Supplementary/12 - TableS9 (E[CD]).R
permissive
timriffe/code_review_MPIDR
R
false
false
2,683
r
# S9 - Number of children expected to outlive their mothers # Number of children expected to live longer than their mothers, asuming # that the mothers survive to mean age at death (life expectancy) in # their cohort and country of birth. Regional estimates show the median # value and IQR in parenthesis. # ~~~~~~...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hmc_linear.R \name{g_linear_posterior} \alias{g_linear_posterior} \title{Gradient of linear regression log posterior} \usage{ g_linear_posterior(theta, y, X, a = 1e-04, b = 1e-04, B = 0.001) } \arguments{ \item{theta}{vector of parameters. A...
/man/g_linear_posterior.Rd
no_license
be-green/hmclearn
R
false
true
1,845
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hmc_linear.R \name{g_linear_posterior} \alias{g_linear_posterior} \title{Gradient of linear regression log posterior} \usage{ g_linear_posterior(theta, y, X, a = 1e-04, b = 1e-04, B = 0.001) } \arguments{ \item{theta}{vector of parameters. A...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.mhmm.R \name{plot.mhmm} \alias{plot.mhmm} \title{Interactive Plotting for Mixed Hidden Markov Model (mhmm)} \usage{ \method{plot}{mhmm}(x, interactive = TRUE, ask = FALSE, which.plots = NULL, nrow = NA, ncol = NA, byrow = FALSE,...
/fuzzedpackages/seqHMM/man/plot.mhmm.Rd
no_license
akhikolla/testpackages
R
false
true
9,514
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.mhmm.R \name{plot.mhmm} \alias{plot.mhmm} \title{Interactive Plotting for Mixed Hidden Markov Model (mhmm)} \usage{ \method{plot}{mhmm}(x, interactive = TRUE, ask = FALSE, which.plots = NULL, nrow = NA, ncol = NA, byrow = FALSE,...
library(testthat) library(contratosemergencia) test_check("contratosemergencia")
/Golem2/contratosemergencia.Rcheck/tests/testthat.R
permissive
manosaladata/contrataciones-estado-emergencia
R
false
false
82
r
library(testthat) library(contratosemergencia) test_check("contratosemergencia")
# Week 3: February 05, 2019 - R-DAVIS Class Code - Week 5 # GUESS WHAT I FOUND: # https://twitter.com/mathematicalm3l/status/1090720774464421889/video/1 # https://github.com/melissanjohnson/pupR # Step 1: install package "devtools" -- for helping develop your own package. # Step 2: run the line: devtool...
/scripts/week_5_class_code.R
no_license
gge-ucd/r-davis-in-class-caparisek
R
false
false
9,272
r
# Week 3: February 05, 2019 - R-DAVIS Class Code - Week 5 # GUESS WHAT I FOUND: # https://twitter.com/mathematicalm3l/status/1090720774464421889/video/1 # https://github.com/melissanjohnson/pupR # Step 1: install package "devtools" -- for helping develop your own package. # Step 2: run the line: devtool...
library(tidyverse) # Parámetros twitter_dim<-list(width=unit(13/1.5,"cm"),height=unit(6.5/1.5,"cm")) # Cargar datos datos_nacimientos<-read_tsv("../datos/nacimientos.csv",locale = locale(decimal_mark = ",")) datos_defunciones<-read_tsv("../datos/defunciones.csv",locale = locale(decimal_mark = ",")) # Limpiar datos d...
/code/dia_30.R
no_license
Daniel795-lab/desafio_30_dias_de_graficos
R
false
false
2,199
r
library(tidyverse) # Parámetros twitter_dim<-list(width=unit(13/1.5,"cm"),height=unit(6.5/1.5,"cm")) # Cargar datos datos_nacimientos<-read_tsv("../datos/nacimientos.csv",locale = locale(decimal_mark = ",")) datos_defunciones<-read_tsv("../datos/defunciones.csv",locale = locale(decimal_mark = ",")) # Limpiar datos d...