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
# Test slow inversion library(PEcAnRTM) library(testthat) context("PROSPECT R inversion") data(sensor.rsr) params <- c(1.4, 40, 8, 0.01, 0.01) obs.raw <- prospect(params, 5)[,1] + generate.noise() sensor <- "chris.proba" obs <- spectral.response(obs.raw, sensor) settings <- default.settings.prospect settings$model <- f...
/modules/rtm/tests/testthat/test.invert.R
permissive
Viskari/pecan
R
false
false
1,215
r
# Test slow inversion library(PEcAnRTM) library(testthat) context("PROSPECT R inversion") data(sensor.rsr) params <- c(1.4, 40, 8, 0.01, 0.01) obs.raw <- prospect(params, 5)[,1] + generate.noise() sensor <- "chris.proba" obs <- spectral.response(obs.raw, sensor) settings <- default.settings.prospect settings$model <- f...
library(tidyverse) dfSoccer = read.csv("https://github.com/vincentarelbundock/Rdatasets/raw/master/csv/vcd/Bundesliga.csv") soccerTable = function(year){ dfSoccer %>% filter(Year == year) %>% mutate(pointsHome = if_else(HomeGoals > AwayGoals, 3, if_else(HomeGoals == AwayGoals, 1, 0)), pointsAway ...
/Tutorial Code/ggplot_tutorial.R
no_license
NikoStein/ADS19
R
false
false
1,487
r
library(tidyverse) dfSoccer = read.csv("https://github.com/vincentarelbundock/Rdatasets/raw/master/csv/vcd/Bundesliga.csv") soccerTable = function(year){ dfSoccer %>% filter(Year == year) %>% mutate(pointsHome = if_else(HomeGoals > AwayGoals, 3, if_else(HomeGoals == AwayGoals, 1, 0)), pointsAway ...
# This code runs before the tests. It creates a testpackage in # the temporary directory where all the functions of rrtools # can be applied safely and subsequently tested. # create temporary directory in file system testing_path <- paste0(tempdir(), "/testing_directory") dir.create(testing_path, showWarnings = FALSE)...
/tests/testthat/tests.R
permissive
rachel-haga/buzzdown
R
false
false
2,494
r
# This code runs before the tests. It creates a testpackage in # the temporary directory where all the functions of rrtools # can be applied safely and subsequently tested. # create temporary directory in file system testing_path <- paste0(tempdir(), "/testing_directory") dir.create(testing_path, showWarnings = FALSE)...
#' @importFrom stats predict #' @export predict.list <- function(object, ...) { out <- lapply(object, predict, ... = ...) if(!is.null(names(object))) names(out) <- names(object) out } #' Extract predictions and class probabilities from train objects #' #' These functions can be used for a single \code{train} ...
/pkg/caret/R/predict.train.R
no_license
mutual-ai/caret
R
false
false
7,217
r
#' @importFrom stats predict #' @export predict.list <- function(object, ...) { out <- lapply(object, predict, ... = ...) if(!is.null(names(object))) names(out) <- names(object) out } #' Extract predictions and class probabilities from train objects #' #' These functions can be used for a single \code{train} ...
#' Title: Amazon X-Ray part 2 #' Purpose: Explore more movie data #' Author: Ted Kwartler #' email: edward.kwartler@hult.edu #' License: GPL>=3 #' Date: Dec 30 2020 #' ### 1. Set working directory to your specific movie setwd("~/Desktop/hult_NLP_student/lessons/class1/data") # Turn off scientific notation options(sci...
/lessons/class1/scripts/C_Amazon_Xray.R
no_license
RLanderosR/hult_NLP_student
R
false
false
2,889
r
#' Title: Amazon X-Ray part 2 #' Purpose: Explore more movie data #' Author: Ted Kwartler #' email: edward.kwartler@hult.edu #' License: GPL>=3 #' Date: Dec 30 2020 #' ### 1. Set working directory to your specific movie setwd("~/Desktop/hult_NLP_student/lessons/class1/data") # Turn off scientific notation options(sci...
library(magick) tiger <- image_read('//Users//wulixin//Desktop//liuyifei.png') print(tiger) image_border(image_background(tiger, "hotpink"), "#000080", "20x10") # Trim margins image_trim(tiger) tiger<-image_scale(tiger, "x300") # height: 300px image_rotate(tiger, 45) # Brightness, Saturation, Hue image_modulate(...
/magicexplor.R
no_license
wulixin/wulixin.github.io
R
false
false
2,478
r
library(magick) tiger <- image_read('//Users//wulixin//Desktop//liuyifei.png') print(tiger) image_border(image_background(tiger, "hotpink"), "#000080", "20x10") # Trim margins image_trim(tiger) tiger<-image_scale(tiger, "x300") # height: 300px image_rotate(tiger, 45) # Brightness, Saturation, Hue image_modulate(...
outliers <- function(x, index=NULL) { if (is.data.frame(x)) { as.data.frame(sapply(x, outliers, index)) } else if (is.matrix(x)) { apply(x, 2, outliers, index) } else if (is.list(x)) { lapply(x, outliers, index) } else if (is.vector(x)) { i...
/R/outliers.R
no_license
husseingb/SciencePo
R
false
false
1,015
r
outliers <- function(x, index=NULL) { if (is.data.frame(x)) { as.data.frame(sapply(x, outliers, index)) } else if (is.matrix(x)) { apply(x, 2, outliers, index) } else if (is.list(x)) { lapply(x, outliers, index) } else if (is.vector(x)) { i...
local({ # the requested version of renv version <- "0.6.0-113" # signal that we're loading renv during R startup Sys.setenv("RENV_R_INITIALIZING" = "true") on.exit(Sys.unsetenv("RENV_R_INITIALIZING"), add = TRUE) # load the 'utils' package eagerly -- this ensures that renv shims, which # mask 'utils' ...
/renv/activate.R
no_license
andrewheiss/evalf19.classes.andrewheiss.com
R
false
false
4,641
r
local({ # the requested version of renv version <- "0.6.0-113" # signal that we're loading renv during R startup Sys.setenv("RENV_R_INITIALIZING" = "true") on.exit(Sys.unsetenv("RENV_R_INITIALIZING"), add = TRUE) # load the 'utils' package eagerly -- this ensures that renv shims, which # mask 'utils' ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corpus-methods-base.R \name{head.corpus} \alias{head.corpus} \alias{tail.corpus} \title{return the first or last part of a corpus} \usage{ \method{head}{corpus}(x, n = 6L, ...) \method{tail}{corpus}(x, n = 6L, ...) } \arguments{ \item{x}{a d...
/man/head.corpus.Rd
no_license
chmue/quanteda
R
false
true
915
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/corpus-methods-base.R \name{head.corpus} \alias{head.corpus} \alias{tail.corpus} \title{return the first or last part of a corpus} \usage{ \method{head}{corpus}(x, n = 6L, ...) \method{tail}{corpus}(x, n = 6L, ...) } \arguments{ \item{x}{a d...
#' Get the meta data for %categoryFirstUpper% definitions. #' #' @details #' Get the meta data of WebApi specifications such as id, name, created/modified #' details, hash object, etc. from WebApi for %categoryFirstUpper%. This function is useful #' to retrieve the current %categoryFirstUpper% specifications. #' ...
/extras/templateWebApiFunctions.R
permissive
OHDSI/ROhdsiWebApi
R
false
false
7,993
r
#' Get the meta data for %categoryFirstUpper% definitions. #' #' @details #' Get the meta data of WebApi specifications such as id, name, created/modified #' details, hash object, etc. from WebApi for %categoryFirstUpper%. This function is useful #' to retrieve the current %categoryFirstUpper% specifications. #' ...
# https://gist.github.com/Tomcc/a96af509e275b1af483b25c543cfbf37 # [version:byte][num_storages:byte][block storage1]...[blockStorageN] ##' export read_subchunk <- function(con) { if (is.character(con)) { con <- file(con, "rb") on.exit(close(con)) } else if (is.raw(con)) { con <- rawCo...
/R/subchunk.R
no_license
ZPointer/rbedrock
R
false
false
1,708
r
# https://gist.github.com/Tomcc/a96af509e275b1af483b25c543cfbf37 # [version:byte][num_storages:byte][block storage1]...[blockStorageN] ##' export read_subchunk <- function(con) { if (is.character(con)) { con <- file(con, "rb") on.exit(close(con)) } else if (is.raw(con)) { con <- rawCo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.ggedit.R \name{print.ggedit} \alias{print.ggedit} \title{Print verbose outputs of objects of class ggedit} \usage{ \method{print}{ggedit}(x, ...) } \arguments{ \item{x}{ggedit object} \item{...}{nothing} } \description{ function to tid...
/man/print.ggedit.Rd
no_license
jcheng5/ggedit
R
false
true
379
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.ggedit.R \name{print.ggedit} \alias{print.ggedit} \title{Print verbose outputs of objects of class ggedit} \usage{ \method{print}{ggedit}(x, ...) } \arguments{ \item{x}{ggedit object} \item{...}{nothing} } \description{ function to tid...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 47152 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 47152 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query48_query58_1344n/query48_query58_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
720
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 47152 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 47152 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4...
test_that("GraphqlClient client initialization works", { expect_is(GraphqlClient, "R6ClassGenerator") aa <- GraphqlClient$new() expect_is(aa, "GraphqlClient") expect_is(aa, "R6") expect_is(aa$.__enclos_env__, "environment") expect_is(aa$print, "function") expect_is(aa$ping, "function") expect_is(aa$lo...
/tests/testthat/test-GraphqlClient.R
permissive
ropensci/ghql
R
false
false
4,959
r
test_that("GraphqlClient client initialization works", { expect_is(GraphqlClient, "R6ClassGenerator") aa <- GraphqlClient$new() expect_is(aa, "GraphqlClient") expect_is(aa, "R6") expect_is(aa$.__enclos_env__, "environment") expect_is(aa$print, "function") expect_is(aa$ping, "function") expect_is(aa$lo...
setwd('/Users/Kalhan/Desktop/Waterloo Data/Winter 2017/BigData/Project') data <- read.csv('Customer_Sales_1_Clean_Half_Dirty_Transposition.csv',header = FALSE,stringsAsFactors = FALSE) head(data) data <- data.frame(data$V2,data$V3,data$V5,data$V6,data$V7,stringsAsFactors = FALSE) data$ID <- 1:nrow(data) colnames(data) ...
/Transposition_Error.R
no_license
Kalhan22/Error-Detection-ML
R
false
false
9,964
r
setwd('/Users/Kalhan/Desktop/Waterloo Data/Winter 2017/BigData/Project') data <- read.csv('Customer_Sales_1_Clean_Half_Dirty_Transposition.csv',header = FALSE,stringsAsFactors = FALSE) head(data) data <- data.frame(data$V2,data$V3,data$V5,data$V6,data$V7,stringsAsFactors = FALSE) data$ID <- 1:nrow(data) colnames(data) ...
# ------------------------------------------------------------------------------ # Distribution Bounds # ------------------------------------------------------------------------------ .DistributionBounds = function(distribution) { ghlambda = 0 ghlambda.LB = 0 ghlambda.UB = 0 if (distribution == "norm"){...
/stealrugarch/R/stealrugarch-distributions.R
no_license
BBQing/relized2garch
R
false
false
2,714
r
# ------------------------------------------------------------------------------ # Distribution Bounds # ------------------------------------------------------------------------------ .DistributionBounds = function(distribution) { ghlambda = 0 ghlambda.LB = 0 ghlambda.UB = 0 if (distribution == "norm"){...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/save.R \name{sbf_save_db_metatable_descriptions} \alias{sbf_save_db_metatable_descriptions} \title{Saves Meta Table Descriptions to Database} \usage{ sbf_save_db_metatable_descriptions( x, db_name = sbf_get_db_name(), sub = sbf_get_sub(...
/man/sbf_save_db_metatable_descriptions.Rd
permissive
poissonconsulting/subfoldr2
R
false
true
2,014
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/save.R \name{sbf_save_db_metatable_descriptions} \alias{sbf_save_db_metatable_descriptions} \title{Saves Meta Table Descriptions to Database} \usage{ sbf_save_db_metatable_descriptions( x, db_name = sbf_get_db_name(), sub = sbf_get_sub(...
# Training ELUDE on data coming from two different columns # Peptides should be pretty similar library(data.table) library(ggplot2) projectPath <- "C:/Users/Nicolas Housset/Documents/R_Projects/run_classification" load(file = paste0(projectPath,"/data/annotated_id.RData")) setkey(annotated_id, modified_sequence) rt...
/source/ELUDE_Columns.R
no_license
NicolasHousset/run_classification
R
false
false
17,993
r
# Training ELUDE on data coming from two different columns # Peptides should be pretty similar library(data.table) library(ggplot2) projectPath <- "C:/Users/Nicolas Housset/Documents/R_Projects/run_classification" load(file = paste0(projectPath,"/data/annotated_id.RData")) setkey(annotated_id, modified_sequence) rt...
\name{exerciseOptions} \alias{exerciseOptions} \title{ Exercise Options Contracts } \description{ Send message to exercise option contracts. } \usage{ exerciseOptions(twsconn, contract, exerciseAction = 1, exerciseQuantity = 1, account = "", ...
/man/exerciseOptions.Rd
no_license
joshuaulrich/IBrokers
R
false
false
1,130
rd
\name{exerciseOptions} \alias{exerciseOptions} \title{ Exercise Options Contracts } \description{ Send message to exercise option contracts. } \usage{ exerciseOptions(twsconn, contract, exerciseAction = 1, exerciseQuantity = 1, account = "", ...
library(baseballr) library(tidyverse) library(RMySQL) require(DBI) spray_chart <- function(...) { ggplot(...) + geom_curve(x = 63.64, xend = -63.64, y = 63.64, yend = 63.64, curvature = .65, linetype = "dotted", color = "black") + geom_segment(x = 0, xend = 229.809, y = 0, yend = 229.809, color = "black") + ...
/2021 - Bigelow Bricklayers/Code/Optimal Position Chart.R
no_license
JHDatz/Big-Problems
R
false
false
1,590
r
library(baseballr) library(tidyverse) library(RMySQL) require(DBI) spray_chart <- function(...) { ggplot(...) + geom_curve(x = 63.64, xend = -63.64, y = 63.64, yend = 63.64, curvature = .65, linetype = "dotted", color = "black") + geom_segment(x = 0, xend = 229.809, y = 0, yend = 229.809, color = "black") + ...
#' Information Value #' #' This function calculates information value (IV) for multiple x variables. #' #' @param dt A data frame with both x (predictor/feature) and y (response/label) variables. #' @param y Name of y variable. #' @param x Name of x variables. Default is NULL. If x is NULL, then all variables except y ...
/R/info_value.R
no_license
StephanKalika/scorecard
R
false
false
4,895
r
#' Information Value #' #' This function calculates information value (IV) for multiple x variables. #' #' @param dt A data frame with both x (predictor/feature) and y (response/label) variables. #' @param y Name of y variable. #' @param x Name of x variables. Default is NULL. If x is NULL, then all variables except y ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/historical_daily_range.R \name{historical_daily_range} \alias{historical_daily_range} \alias{historical_daily_range.swmpr} \title{Historical Daily Range Timeseries} \usage{ historical_daily_range(swmpr_in, ...) \method{historical_daily_range...
/man/historical_daily_range.Rd
no_license
LimnoTech/SWMPrExtension
R
false
true
3,083
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/historical_daily_range.R \name{historical_daily_range} \alias{historical_daily_range} \alias{historical_daily_range.swmpr} \title{Historical Daily Range Timeseries} \usage{ historical_daily_range(swmpr_in, ...) \method{historical_daily_range...
#' `quickPlot` classes #' #' \pkg{quickPlot} offers a type of plotting that is modular. #' Users of NetLogoR may find this useful for simulation modeling. #' We have put in place the required methods and imported the appropriate classes #' to use the `quickPlot::Plot` function. #' Users can still use `plot` from the \p...
/R/quickPlot.R
no_license
PredictiveEcology/NetLogoR
R
false
false
5,192
r
#' `quickPlot` classes #' #' \pkg{quickPlot} offers a type of plotting that is modular. #' Users of NetLogoR may find this useful for simulation modeling. #' We have put in place the required methods and imported the appropriate classes #' to use the `quickPlot::Plot` function. #' Users can still use `plot` from the \p...
# Pacotes ----------------------------------------------------------------- library(tidyverse) # Base de dados ----------------------------------------------------------- imdb <- read_rds("data/imdb.rds") # exercício 1 # Leia a base de outras 2 maneiras. # filter ------------------------------------------------...
/02-dplyr.R
permissive
curso-r/201809-intro-r
R
false
false
8,396
r
# Pacotes ----------------------------------------------------------------- library(tidyverse) # Base de dados ----------------------------------------------------------- imdb <- read_rds("data/imdb.rds") # exercício 1 # Leia a base de outras 2 maneiras. # filter ------------------------------------------------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DF_enem09_conc_sc.R \docType{data} \name{enem09_conc_sc} \alias{enem09_conc_sc} \title{Prices of 50,000 round cut diamonds} \format{ A data frame with 53940 rows and 10 variables } \usage{ data(enem09_conc_sc) } \description{ A dataset contai...
/man/enem09_conc_sc.Rd
no_license
leandromarino/CesgTools
R
false
true
1,064
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/DF_enem09_conc_sc.R \docType{data} \name{enem09_conc_sc} \alias{enem09_conc_sc} \title{Prices of 50,000 round cut diamonds} \format{ A data frame with 53940 rows and 10 variables } \usage{ data(enem09_conc_sc) } \description{ A dataset contai...
## ----style, echo=FALSE, results="asis", message=FALSE---------------------- BiocStyle::markdown() knitr::opts_chunk$set(tidy = FALSE, warning = FALSE, message = FALSE) ## ----echo=FALSE, results='hide', message=FALSE----------------------------- library(DOSE) ## ---------...
/Huan_link_all_script/R/x86_64-pc-linux-gnu-library/3.4/DOSE/doc/semanticAnalysis.R
no_license
Lhhuan/drug_repurposing
R
false
false
1,596
r
## ----style, echo=FALSE, results="asis", message=FALSE---------------------- BiocStyle::markdown() knitr::opts_chunk$set(tidy = FALSE, warning = FALSE, message = FALSE) ## ----echo=FALSE, results='hide', message=FALSE----------------------------- library(DOSE) ## ---------...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estpars_function.R \name{estpars} \alias{estpars} \title{estpars} \usage{ estpars(data, xreg = "cumcases", IP = 2, seasonality = "standard", regtype = "gaussian", sigmamax = 3, family = "gaussian", link = "identity", userYhat = numeric(),...
/man/estpars.Rd
no_license
HayleyFang/MM
R
false
true
2,538
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/estpars_function.R \name{estpars} \alias{estpars} \title{estpars} \usage{ estpars(data, xreg = "cumcases", IP = 2, seasonality = "standard", regtype = "gaussian", sigmamax = 3, family = "gaussian", link = "identity", userYhat = numeric(),...
##create a local directory if(!file.exists("./data")){dir.create("./data")} ## download file from given url fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileUrl,destfile="./data/exdata-data-household_power_consumption.zip") ##unzip the downloaded file ...
/plot2.R
no_license
mudit2013/ExData_Plotting1
R
false
false
1,371
r
##create a local directory if(!file.exists("./data")){dir.create("./data")} ## download file from given url fileUrl <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileUrl,destfile="./data/exdata-data-household_power_consumption.zip") ##unzip the downloaded file ...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/breast.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=1,family="gaussian",standardize=FALSE) sink('./breast_098.txt',append=TRUE) p...
/Model/EN/Correlation/breast/breast_098.R
no_license
esbgkannan/QSMART
R
false
false
348
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/breast.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=1,family="gaussian",standardize=FALSE) sink('./breast_098.txt',append=TRUE) p...
plot2 <- function(){ power <- read.table("power.txt",sep = ";",header = T, stringsAsFactors = F) two_day <- subset(power,Date == "1/2/2007" | Date == "2/2/2007") p <- as.numeric(two_day$Global_active_power) dt <- paste(two_day$Date,two_day$Time,sep = ",") time <- strptime(dt,format = "%d/%m/%Y,%H:%M:%S") pn...
/plot2.R
no_license
OneMoreThanX/ExData_Plotting1
R
false
false
477
r
plot2 <- function(){ power <- read.table("power.txt",sep = ";",header = T, stringsAsFactors = F) two_day <- subset(power,Date == "1/2/2007" | Date == "2/2/2007") p <- as.numeric(two_day$Global_active_power) dt <- paste(two_day$Date,two_day$Time,sep = ",") time <- strptime(dt,format = "%d/%m/%Y,%H:%M:%S") pn...
#' Set question properties #' #' @param questionID The question ID (which is unique for all surveys, #' so no survey ID is required here) -- not to be confused with the question code #' @param properties A list with the particular field names as keys and their values to set on that particular question #' (see \code...
/R/lsSetQuestionProperties.R
permissive
k127/LimeRick
R
false
false
2,138
r
#' Set question properties #' #' @param questionID The question ID (which is unique for all surveys, #' so no survey ID is required here) -- not to be confused with the question code #' @param properties A list with the particular field names as keys and their values to set on that particular question #' (see \code...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cbindlist.R \name{cbindlist} \alias{cbindlist} \title{Combine a list of data.tables column-wise} \usage{ cbindlist(list, key, col_names = NULL) } \arguments{ \item{list}{} \item{col_names}{} } \description{ Combine a list of data.tables colu...
/man/cbindlist.Rd
no_license
dbrookeUAB/dth
R
false
true
330
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cbindlist.R \name{cbindlist} \alias{cbindlist} \title{Combine a list of data.tables column-wise} \usage{ cbindlist(list, key, col_names = NULL) } \arguments{ \item{list}{} \item{col_names}{} } \description{ Combine a list of data.tables colu...
# Purpose: Clip Tanzania interpoloated surfaces to 5% or less credible intervals # Author: Tim Essam, GeoCenter # Date: 2019_11_21 # Notes: For clipping DHS derived rasters to their 95/90% credible interval levels pacman::p_load(raster, sp, rgdal, RColorBrewer) dest_folder <- c("TZ_package_all") dir(file.path(datapat...
/DHS_surface_raster_clipper.R
no_license
tessam30/GeoCenter_Adhoc
R
false
false
2,247
r
# Purpose: Clip Tanzania interpoloated surfaces to 5% or less credible intervals # Author: Tim Essam, GeoCenter # Date: 2019_11_21 # Notes: For clipping DHS derived rasters to their 95/90% credible interval levels pacman::p_load(raster, sp, rgdal, RColorBrewer) dest_folder <- c("TZ_package_all") dir(file.path(datapat...
##Precision Agriculture=group ##Raster_input=raster ##showplots ##Sampling_method=selection Conditioned Latin Hypercube Sampling ##Number_samples=number 5 ##Output=output vector library(clhs) s <- rasterToPoints(Raster_input, spatial=TRUE) s.clhs <- clhs(s, size = Number_samples, progress = FALSE, iter = 1...
/R_codes/Sampling_R_Multivariate_sampling.rsx
no_license
davidel38/R-QGIS-Precision-Agriculture
R
false
false
450
rsx
##Precision Agriculture=group ##Raster_input=raster ##showplots ##Sampling_method=selection Conditioned Latin Hypercube Sampling ##Number_samples=number 5 ##Output=output vector library(clhs) s <- rasterToPoints(Raster_input, spatial=TRUE) s.clhs <- clhs(s, size = Number_samples, progress = FALSE, iter = 1...
library(mlr3extralearners) install_learners("surv.cforest") test_that("surv.cforest", { learner = lrn("surv.cforest") fun = partykit::cforest exclude = c( "formula", # handled in mlr3 "data", # handled in mlr3 "weights", # handled in mlr3 "subset", # handled in mlr3 "strata", # FIXME: handled...
/inst/paramtest/test_paramtest_partykit_surv_cforest.R
no_license
Mrlirhan/mlr3extralearners
R
false
false
1,413
r
library(mlr3extralearners) install_learners("surv.cforest") test_that("surv.cforest", { learner = lrn("surv.cforest") fun = partykit::cforest exclude = c( "formula", # handled in mlr3 "data", # handled in mlr3 "weights", # handled in mlr3 "subset", # handled in mlr3 "strata", # FIXME: handled...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SpectraDataFrame-methods.R \docType{methods} \name{subset} \alias{subset} \alias{subset.SpectraDataFrame} \alias{subset,SpectraDataFrame-method} \title{Subset SpectraDataFrame object} \usage{ subset(x, ...) } \arguments{ \item{x}{SpectraDataF...
/man/subset.Rd
no_license
pierreroudier/spectacles
R
false
true
1,113
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SpectraDataFrame-methods.R \docType{methods} \name{subset} \alias{subset} \alias{subset.SpectraDataFrame} \alias{subset,SpectraDataFrame-method} \title{Subset SpectraDataFrame object} \usage{ subset(x, ...) } \arguments{ \item{x}{SpectraDataF...
#' Plot radionuclide emission spectra. #' #' Plot emission spectra based on radionuclide and desired radiation type. #' Plot on log axes if desired. #' Select cutoff value for probability optional, included at 1% by default. #' Plot includes energy times probability for dosimetric importance comparisons. #' #' @family ...
/R/RN_plot_spectrum.R
no_license
markhogue/radsafer
R
false
false
6,147
r
#' Plot radionuclide emission spectra. #' #' Plot emission spectra based on radionuclide and desired radiation type. #' Plot on log axes if desired. #' Select cutoff value for probability optional, included at 1% by default. #' Plot includes energy times probability for dosimetric importance comparisons. #' #' @family ...
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
/_check/test_code/care/r_codes/totPOP_agegrps_usc_2008.R
permissive
HHS-AHRQ/MEPS-summary-tables
R
false
false
1,769
r
# Install and load packages package_names <- c("survey","dplyr","foreign","devtools") lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x)) lapply(package_names, require, character.only=T) install_github("e-mitchell/meps_r_pkg/MEPS") library(MEPS) options(survey.lonely.ps...
# Postmates Script library(readr) library(tidyverse) library(lubridate) library(ggmap) # db <- read_csv("Desktop/Reference/Personal/Jumpman23/analyze_me.csv") dim(db) # rows 5983 cols 18 names(db) # [1] "delivery_id" "customer_id" # [3] "jumpman_id" ...
/Jumpman23.R
no_license
caryhz/Jumpman23
R
false
false
7,277
r
# Postmates Script library(readr) library(tidyverse) library(lubridate) library(ggmap) # db <- read_csv("Desktop/Reference/Personal/Jumpman23/analyze_me.csv") dim(db) # rows 5983 cols 18 names(db) # [1] "delivery_id" "customer_id" # [3] "jumpman_id" ...
#決策樹二—類別資料CHAID install.packages("CHAID", repos="http://R-Forge.R-project.org") library(CHAID) install.packages("ggplot2") library(ggplot2) head(diamonds) str(diamonds) attach(diamonds) CHtree<- chaid(cut~color+clarity,data=diamonds, control = chaid_control(0.001)) summary(CHtree) par(mfrow = c(1,1),...
/20201216決策樹2.R
no_license
luckypig3400/1091R_workspace
R
false
false
4,211
r
#決策樹二—類別資料CHAID install.packages("CHAID", repos="http://R-Forge.R-project.org") library(CHAID) install.packages("ggplot2") library(ggplot2) head(diamonds) str(diamonds) attach(diamonds) CHtree<- chaid(cut~color+clarity,data=diamonds, control = chaid_control(0.001)) summary(CHtree) par(mfrow = c(1,1),...
library(readxl) library(gplots) library(car) library(lsr) library(emmeans) library(multcomp) library(ggplot2) alfa <- 0.05 Dados <- readxl::read_excel("LembrancaMotivacao.xlsx") Dados$Grupo <- factor(Dados$Grupo,levels=unique(Dados$Grupo)) head(Dados) with(Dados, gplots::plotmeans(Escore ~ Grupo, ...
/Aula07/ANCOVA/ANCOVA_LembrancaMotivacao.R
no_license
yadevi/2020
R
false
false
3,501
r
library(readxl) library(gplots) library(car) library(lsr) library(emmeans) library(multcomp) library(ggplot2) alfa <- 0.05 Dados <- readxl::read_excel("LembrancaMotivacao.xlsx") Dados$Grupo <- factor(Dados$Grupo,levels=unique(Dados$Grupo)) head(Dados) with(Dados, gplots::plotmeans(Escore ~ Grupo, ...
library("coRal") source("init_env.R") # Function for checking that two outputs of init_env are the same checkingfun <- function(envcoRal, envmyfun, summary=FALSE) { testResults <- c( (all(envcoRal$X == envmyfun$X) && any(envcoRal$X == envmyfun$X)), (all(envcoRal$N == envmyfun$N) && any(envcoRal$N =...
/sandbox/test_init_env.R
no_license
brownal/twosyms
R
false
false
3,798
r
library("coRal") source("init_env.R") # Function for checking that two outputs of init_env are the same checkingfun <- function(envcoRal, envmyfun, summary=FALSE) { testResults <- c( (all(envcoRal$X == envmyfun$X) && any(envcoRal$X == envmyfun$X)), (all(envcoRal$N == envmyfun$N) && any(envcoRal$N =...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 21847 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 21847 c c Input Parameter (command line, file): c input filename QBFLIB/Biere/tipfixpoint/vis.coherence^5.E-f3.qdimacs c outpu...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Biere/tipfixpoint/vis.coherence^5.E-f3/vis.coherence^5.E-f3.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
643
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 21847 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 21847 c c Input Parameter (command line, file): c input filename QBFLIB/Biere/tipfixpoint/vis.coherence^5.E-f3.qdimacs c outpu...
put_settings <- function(settingsRead, settings) { # This function accepts the two column character list settingsRead and puts these values # in the structure settings. # The first column of settingsRead is the variableName, the second the variableValue. # setting looks like: settings$variableName = variableVal...
/put_settings.R
permissive
SurfaceTemp/ISTI_Error_Worlds
R
false
false
1,620
r
put_settings <- function(settingsRead, settings) { # This function accepts the two column character list settingsRead and puts these values # in the structure settings. # The first column of settingsRead is the variableName, the second the variableValue. # setting looks like: settings$variableName = variableVal...
# <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> # AUTHOR: Philippe Massicotte # # DESCRIPTION: This script looks at the relation between the slope of the # relation between acdom350 and DOC for all studies (n ~ 43). # # Then, the relati...
/R/acdom350_slope_vs_r2.R
no_license
PMassicotte/cdoc
R
false
false
2,224
r
# <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> # AUTHOR: Philippe Massicotte # # DESCRIPTION: This script looks at the relation between the slope of the # relation between acdom350 and DOC for all studies (n ~ 43). # # Then, the relati...
library(xtable) library(tidyverse) load('./datasets/Supplementary_simulations/sim_no_trt_eff.Rdata') sims <- as.data.frame(t(out)) %>% gather(key=pval) tab <- sims %>% group_by(pval) %>% summarise(alpha = mean(value<=0.05), N = n()) %>% mutate(SE = sqrt(alpha*(1-alpha)/N), LCL95 = alpha - 1.96*SE, ...
/programs/Supplementary_analyses/table_simulations_under_H0.R
no_license
andreaarfe/Bayesian-optimal-tests-non-PH
R
false
false
442
r
library(xtable) library(tidyverse) load('./datasets/Supplementary_simulations/sim_no_trt_eff.Rdata') sims <- as.data.frame(t(out)) %>% gather(key=pval) tab <- sims %>% group_by(pval) %>% summarise(alpha = mean(value<=0.05), N = n()) %>% mutate(SE = sqrt(alpha*(1-alpha)/N), LCL95 = alpha - 1.96*SE, ...
app <- ShinyDriver$new("../../") app$snapshotInit("app_launches") app$snapshot()
/tests/testthat/app/tests/shinytest/app_launches.R
permissive
earnaud/MetaShARK-v2
R
false
false
82
r
app <- ShinyDriver$new("../../") app$snapshotInit("app_launches") app$snapshot()
#' Carlson elliptic integral RJ #' @description Evaluate the Carlson elliptic integral RJ. #' #' @param x,y,z,p real or complex numbers; at most one can be 0 #' @param minerror bound on the relative error #' #' @return A complex number, the value of the Carlson elliptic integral #' \ifelse{html}{\out{R<sub>J</sub>(x,...
/R/RJ.R
no_license
stla/Carlson
R
false
false
922
r
#' Carlson elliptic integral RJ #' @description Evaluate the Carlson elliptic integral RJ. #' #' @param x,y,z,p real or complex numbers; at most one can be 0 #' @param minerror bound on the relative error #' #' @return A complex number, the value of the Carlson elliptic integral #' \ifelse{html}{\out{R<sub>J</sub>(x,...
\name{logitgof} \alias{logitgof} \title{Hosmer-Lemeshow Tests for Logistic Regression Models} \description{Performs the Hosmer-Lemeshow goodness of fit tests for binary, multinomial and ordinal logistic regression models.} \usage{logitgof(obs, exp, g = 10, ord = FALSE)} \arguments{ \item{obs}{ a vector of observed va...
/man/logitgof.Rd
no_license
matthewjay15/generalhoslem
R
false
false
6,035
rd
\name{logitgof} \alias{logitgof} \title{Hosmer-Lemeshow Tests for Logistic Regression Models} \description{Performs the Hosmer-Lemeshow goodness of fit tests for binary, multinomial and ordinal logistic regression models.} \usage{logitgof(obs, exp, g = 10, ord = FALSE)} \arguments{ \item{obs}{ a vector of observed va...
library(lme4) library(lattice) ### __ was ./profile_plots.R ___ fm1 <- lmer(Reaction~ Days + (Days|Subject), sleepstudy) pfile <- system.file("testdata","tprfm1.RData", package="lme4") if(file.exists(pfile)) print(load(pfile)) else { system.time( tpr.fm1 <- profile(fm1, optimizer="Nelder_Mead") ) ## 20 seconds save...
/tests/profile-tst.R
no_license
variani/lme4
R
false
false
3,665
r
library(lme4) library(lattice) ### __ was ./profile_plots.R ___ fm1 <- lmer(Reaction~ Days + (Days|Subject), sleepstudy) pfile <- system.file("testdata","tprfm1.RData", package="lme4") if(file.exists(pfile)) print(load(pfile)) else { system.time( tpr.fm1 <- profile(fm1, optimizer="Nelder_Mead") ) ## 20 seconds save...
# Jake Yeung # Date of Creation: 2021-07-11 # File: ~/projects/scChIX/analysis_scripts/4-analyze_scChIX_outputs_projections_cleaned_up2_from_genebodies_bins.R # rm(list=ls()) library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(hash) library(igraph) library(umap) library(ggf...
/analysis_scripts/4-analyze_scChIX_outputs_projections_cleaned_up2_from_genebodies_bins.R
no_license
jakeyeung/scChIX
R
false
false
12,506
r
# Jake Yeung # Date of Creation: 2021-07-11 # File: ~/projects/scChIX/analysis_scripts/4-analyze_scChIX_outputs_projections_cleaned_up2_from_genebodies_bins.R # rm(list=ls()) library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(hash) library(igraph) library(umap) library(ggf...
#-------------------------------------------------------------------------------------- # # prep the concentration-response matrix for a single chemical # #-------------------------------------------------------------------------------------- prepCR <- function(code="C85687",dir="input/CRref.zcut",mode="AT",zcut,do.deb...
/prepCR.R
no_license
rsjudson/armin
R
false
false
1,957
r
#-------------------------------------------------------------------------------------- # # prep the concentration-response matrix for a single chemical # #-------------------------------------------------------------------------------------- prepCR <- function(code="C85687",dir="input/CRref.zcut",mode="AT",zcut,do.deb...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/central_nervous_system.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.01,family="gaussian",standardize=FALSE) sink('./Model/EN/AvgRank/central_nervous_...
/Model/EN/AvgRank/central_nervous_system/central_nervous_system_008.R
no_license
leon1003/QSMART
R
false
false
401
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/central_nervous_system.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.01,family="gaussian",standardize=FALSE) sink('./Model/EN/AvgRank/central_nervous_...
/Teorema de Bayes.R
no_license
OpheliaVlzqz/MineriaDatos
R
false
false
1,129
r
load('../data/gogl_ts_1.RData') load('../data/training_and_testing.RData') #using smoothing method to evaluate the trend library(TTR) training_set_1SMA12 <- SMA(training_set_1, n = 8) par(mfrow = c(1,1)) png('../images/SMA12.png') plot.ts(training_set_1SMA12) #which shows there is a decencding trend and seaonsal dev.of...
/code/decomposing_model.R
no_license
jiangzl2016/Time_Series_Analysis
R
false
false
1,724
r
load('../data/gogl_ts_1.RData') load('../data/training_and_testing.RData') #using smoothing method to evaluate the trend library(TTR) training_set_1SMA12 <- SMA(training_set_1, n = 8) par(mfrow = c(1,1)) png('../images/SMA12.png') plot.ts(training_set_1SMA12) #which shows there is a decencding trend and seaonsal dev.of...
# Generate list of parameter sets decays <- c(0.2,0.1,0.01) n_hidden <- c(2,4,6) parameters <- expand.grid(decays,n_hidden) # Set random seeds in order to have reproduceable runs. # 100 is seed for main process which generates folds. Each task will # have a random seed of the task number main_seed <- 100 seeds <- c(1...
/inst/examples/sleigh/nnet.R
no_license
bigcomputing/R-big
R
false
false
2,819
r
# Generate list of parameter sets decays <- c(0.2,0.1,0.01) n_hidden <- c(2,4,6) parameters <- expand.grid(decays,n_hidden) # Set random seeds in order to have reproduceable runs. # 100 is seed for main process which generates folds. Each task will # have a random seed of the task number main_seed <- 100 seeds <- c(1...
library(shiny) shinyUI(fluidPage( titlePanel("drinkR: Estimate your Blood Alcohol Concentration (BAC)"), fluidRow( column(3, helpText("Enter information about yourself below to make the estimate more accurate."), selectInput("sex", "Sex", selected = "unknown", c("Male" = "...
/ui.R
permissive
abiyug/gitShinyApp
R
false
false
3,136
r
library(shiny) shinyUI(fluidPage( titlePanel("drinkR: Estimate your Blood Alcohol Concentration (BAC)"), fluidRow( column(3, helpText("Enter information about yourself below to make the estimate more accurate."), selectInput("sex", "Sex", selected = "unknown", c("Male" = "...
## Create a camera operation matrix for camtrapR-related code # Data from Zooniverse comes back in a drastically different format from that data that comes back from camtrapR. # This code takes the list of camera operation dates (one column of cameras, one column of all dates each camera # operational) and converts t...
/camera_operation_matrix.R
no_license
palme516/Serengeti_DataVisualization_Shiny
R
false
false
3,260
r
## Create a camera operation matrix for camtrapR-related code # Data from Zooniverse comes back in a drastically different format from that data that comes back from camtrapR. # This code takes the list of camera operation dates (one column of cameras, one column of all dates each camera # operational) and converts t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_structure.R \name{plot_community_comparison} \alias{plot_community_comparison} \title{Plot to compare network communities} \usage{ plot_community_comparison( net1, net2, min_size = 10, network_names = c("network 1", "network 2...
/man/plot_community_comparison.Rd
permissive
anncfs/netbio
R
false
true
868
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/network_structure.R \name{plot_community_comparison} \alias{plot_community_comparison} \title{Plot to compare network communities} \usage{ plot_community_comparison( net1, net2, min_size = 10, network_names = c("network 1", "network 2...
library(gesca) ### Name: latentmeasures ### Title: Means, Variances, and Correlations of Latent Variables ### Aliases: latentmeasures ### ** Examples library(gesca) data(gesca.rick2) # Organizational identification example of Bagozzi # Model specification myModel <- " # Measurement model OP =~ cei1 + cei2 + ...
/data/genthat_extracted_code/gesca/examples/latentmeasures.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
658
r
library(gesca) ### Name: latentmeasures ### Title: Means, Variances, and Correlations of Latent Variables ### Aliases: latentmeasures ### ** Examples library(gesca) data(gesca.rick2) # Organizational identification example of Bagozzi # Model specification myModel <- " # Measurement model OP =~ cei1 + cei2 + ...
library(ggplot2) # graphics library(dplyr) # data wrangling library(cowplot) #plot grids library(knitr) # fancy tables library(GGally) # scatterplot matrices library(rpart) #regression and classification trees library(rpart.plot) #plots of classification trees library(car) # marginal model plots seattle<-read.csv('Air...
/Exploration_8.R
permissive
mathmanda/AirbnbExplorations
R
false
false
3,223
r
library(ggplot2) # graphics library(dplyr) # data wrangling library(cowplot) #plot grids library(knitr) # fancy tables library(GGally) # scatterplot matrices library(rpart) #regression and classification trees library(rpart.plot) #plots of classification trees library(car) # marginal model plots seattle<-read.csv('Air...
\name{KMppIni} \alias{KMppIni} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Minkowski and spherical, deterministic and stochastic, multithreaded K-means++ initialization over dense representation of data } \description{ Find suitable observations as initial centroids. } \usage{ KMppIni( X, ...
/man/KMppIni.Rd
no_license
cran/GMKMcharlie
R
false
false
2,834
rd
\name{KMppIni} \alias{KMppIni} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Minkowski and spherical, deterministic and stochastic, multithreaded K-means++ initialization over dense representation of data } \description{ Find suitable observations as initial centroids. } \usage{ KMppIni( X, ...
library(data.table) colClasses=c(PERMNO="integer", date="integer", SHRCD="integer" ,EXCHCD="integer" ,"TICKER"="character", "COMNAM"="character", "TRDSTAT"="character", "RET"="character") # Loading - Uncompressed start <- Sys.time() data <- fread("crsp_daily", colClasses = colClasses) load_uncomp <- ...
/Speed/code/speed_R.R
no_license
alvaroaguirre/Projects
R
false
false
770
r
library(data.table) colClasses=c(PERMNO="integer", date="integer", SHRCD="integer" ,EXCHCD="integer" ,"TICKER"="character", "COMNAM"="character", "TRDSTAT"="character", "RET"="character") # Loading - Uncompressed start <- Sys.time() data <- fread("crsp_daily", colClasses = colClasses) load_uncomp <- ...
get_listings <- function(dataframe) { current_dataframe <- read.csv(dataframe, stringsAsFactors = FALSE) current_dataframe$price <- as.numeric(sub("\\$","", current_dataframe$price)) return(current_dataframe) } seattle_listings <- suppressWarnings(get_listings("data/Seattle_2020_October/listings.csv.gz")...
/scripts/dataframe_listing.R
permissive
info-201a-au20/airbnb-covid-analysis
R
false
false
1,006
r
get_listings <- function(dataframe) { current_dataframe <- read.csv(dataframe, stringsAsFactors = FALSE) current_dataframe$price <- as.numeric(sub("\\$","", current_dataframe$price)) return(current_dataframe) } seattle_listings <- suppressWarnings(get_listings("data/Seattle_2020_October/listings.csv.gz")...
#### individual level regressions ## this is the treated group nys_roll <- readRDS("./temp/parolee_to_18.rds") parolees <- readRDS("./temp/parolees_with_restoration.rds") parolees <- left_join(parolees, nys_roll, by = "din") %>% select(-history, -year, -election_type) %>% filter(parole_status == "DISCHARGED", ...
/code/part_2/09_demo_compare_rd.R
no_license
ktmorris/felony_disenfranchisement
R
false
false
2,735
r
#### individual level regressions ## this is the treated group nys_roll <- readRDS("./temp/parolee_to_18.rds") parolees <- readRDS("./temp/parolees_with_restoration.rds") parolees <- left_join(parolees, nys_roll, by = "din") %>% select(-history, -year, -election_type) %>% filter(parole_status == "DISCHARGED", ...
lqr.print <- function (model, digits = 3, ...) { if ((class(model) != "qr")) stop(paste("Class of objetc", class(model), "not recognized.", sep = " ")) cat("\n") cat("--------------------------------------------------------------\n") cat(" Quantile Linear Regression using SKD family\n") cat("-...
/lqr/R/lqr.print.R
no_license
albrizre/spatstat.revdep
R
false
false
1,642
r
lqr.print <- function (model, digits = 3, ...) { if ((class(model) != "qr")) stop(paste("Class of objetc", class(model), "not recognized.", sep = " ")) cat("\n") cat("--------------------------------------------------------------\n") cat(" Quantile Linear Regression using SKD family\n") cat("-...
Reproduce results for the AR(1) model in Section 4.2 of the article. === ar1_generate_data.R: generate a time series from an AR(1) model ar1_wsmc_marginal.R: loads data, take first 1,000 observations, and compute WABC posterior based on Wasserstein distance between the marginal distributions of synthetic and observed...
/inst/reproduceabc/ar1/README.R
no_license
ramcqueary/winference
R
false
false
640
r
Reproduce results for the AR(1) model in Section 4.2 of the article. === ar1_generate_data.R: generate a time series from an AR(1) model ar1_wsmc_marginal.R: loads data, take first 1,000 observations, and compute WABC posterior based on Wasserstein distance between the marginal distributions of synthetic and observed...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iSCAM2OM.R \name{iSCAM2OM} \alias{iSCAM2OM} \title{Reads MLE estimates from iSCAM file structure into an operating model} \usage{ iSCAM2OM( iSCAMdir, nsim = 48, proyears = 50, mcmc = F, Name = NULL, Source = "No source provided", ...
/man/iSCAM2OM.Rd
no_license
tcarruth/MSEtool
R
false
true
1,244
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iSCAM2OM.R \name{iSCAM2OM} \alias{iSCAM2OM} \title{Reads MLE estimates from iSCAM file structure into an operating model} \usage{ iSCAM2OM( iSCAMdir, nsim = 48, proyears = 50, mcmc = F, Name = NULL, Source = "No source provided", ...
library(DBI) library(rJava) .jinit(force.init = TRUE) print(.jcall("java/lang/System", "S", "getProperty", "java.version")) library(RJDBC) library(sqldf) library(ggplot2) library(scales) library(data.table) library(zoo) drv <- JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver","/opt/sqljdbc_3.0/sqljdbc4.jar")
/dbconnect.R
no_license
nicobruggen/dbconnect
R
false
false
311
r
library(DBI) library(rJava) .jinit(force.init = TRUE) print(.jcall("java/lang/System", "S", "getProperty", "java.version")) library(RJDBC) library(sqldf) library(ggplot2) library(scales) library(data.table) library(zoo) drv <- JDBC("com.microsoft.sqlserver.jdbc.SQLServerDriver","/opt/sqljdbc_3.0/sqljdbc4.jar")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.MFx.R \name{plot.MFx} \alias{plot.MFx} \title{Plotting method for \code{MFx} objects} \usage{ \method{plot}{MFx}( x, x_variable = "MFx", xlab = NULL, ylab = "Survival probability \\n median and 95 CI", main = NULL, log_scale ...
/man/plot.MFx.Rd
no_license
cran/morse
R
false
true
2,285
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.MFx.R \name{plot.MFx} \alias{plot.MFx} \title{Plotting method for \code{MFx} objects} \usage{ \method{plot}{MFx}( x, x_variable = "MFx", xlab = NULL, ylab = "Survival probability \\n median and 95 CI", main = NULL, log_scale ...
#' Draws a plot for an object of class IFS with adjustable parameters of depth and starting point for IFS iterations. #' #' @param x A list of class IFS. #' @param depth Parameter indicating number of iterations to be executed. #' @param start Coordinates of the starting point for the IFS method. #' @param ... Add...
/Projekt_2/IFSbmp/R/plot_IFS.R
no_license
ultramargarine/ProgramowanieWizualizacja2017
R
false
false
2,063
r
#' Draws a plot for an object of class IFS with adjustable parameters of depth and starting point for IFS iterations. #' #' @param x A list of class IFS. #' @param depth Parameter indicating number of iterations to be executed. #' @param start Coordinates of the starting point for the IFS method. #' @param ... Add...
#Renaming file for ease of work hpc <- household_power_consumption setwd("C:\Users\hp\Desktop\ANALYTICS") #Taking out required data hpc1 <- subset(hpc,hpc$Date == c("2007-02-01","2007-0202")) #Creating new data collumn and storing Date time together hpc1$DateTime <- NA hpc1$DateTime <- as.POSIXct(paste(...
/plot3.R
no_license
divyaroop/ExData_Plotting1
R
false
false
842
r
#Renaming file for ease of work hpc <- household_power_consumption setwd("C:\Users\hp\Desktop\ANALYTICS") #Taking out required data hpc1 <- subset(hpc,hpc$Date == c("2007-02-01","2007-0202")) #Creating new data collumn and storing Date time together hpc1$DateTime <- NA hpc1$DateTime <- as.POSIXct(paste(...
library(forecast) Amtrak.data <- read.csv("Amtrak data.csv") ridership.ts <- ts(Amtrak.data$Ridership, start = c(1991, 1), end = c(2004, 3), freq = 12) fixed.nValid <- 36 fixed.nTrain <- length(ridership.ts) - fixed.nValid train.ts <- window(ridership.ts, start = c(1991, 1), end = c(1991, fixed.nTrain)) valid...
/Time Series/R-code-for-forecast-7.1/Amtrak Fig 3-6.R
no_license
Philip-Abraham/Time_Series_R_program
R
false
false
1,435
r
library(forecast) Amtrak.data <- read.csv("Amtrak data.csv") ridership.ts <- ts(Amtrak.data$Ridership, start = c(1991, 1), end = c(2004, 3), freq = 12) fixed.nValid <- 36 fixed.nTrain <- length(ridership.ts) - fixed.nValid train.ts <- window(ridership.ts, start = c(1991, 1), end = c(1991, fixed.nTrain)) valid...
# # common-con-distrib.R, 6 Aug 16 # Data from: # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG example source("ESEUR_config.r") plot_layout(4, 1) par(mar=c(1.2, 2.0, 1, 0.8)) brew_col=rainbow(3) plot(c(0, 1, 1, 4, 4, 5), c(0, 0, 0.25, 0.25,...
/statistics/common-con-distrib.R
no_license
Derek-Jones/ESEUR-code-data
R
false
false
1,648
r
# # common-con-distrib.R, 6 Aug 16 # Data from: # # Example from: # Evidence-based Software Engineering: based on the publicly available data # Derek M. Jones # # TAG example source("ESEUR_config.r") plot_layout(4, 1) par(mar=c(1.2, 2.0, 1, 0.8)) brew_col=rainbow(3) plot(c(0, 1, 1, 4, 4, 5), c(0, 0, 0.25, 0.25,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hyphy.R \name{read.hyphy} \alias{read.hyphy} \title{read.hyphy} \usage{ read.hyphy(nwk, ancseq, tip.fasfile = NULL) } \arguments{ \item{nwk}{tree file in nwk format, one of hyphy output} \item{ancseq}{ancestral sequence file in nexus format,...
/man/read.hyphy.Rd
no_license
YuLab-SMU/treeio
R
false
true
689
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hyphy.R \name{read.hyphy} \alias{read.hyphy} \title{read.hyphy} \usage{ read.hyphy(nwk, ancseq, tip.fasfile = NULL) } \arguments{ \item{nwk}{tree file in nwk format, one of hyphy output} \item{ancseq}{ancestral sequence file in nexus format,...
library(trena) targetGene <- "INPP5D" chromosome <- "chr2" if(!exists("tbl.enhancers")){ source("~/s/data/public/GeneHancer/v4.7/getAllEnhancers.R") tbl.enhancers <- getAllEnhancers(targetGene) colnames(tbl.enhancers) <- c("chr", "start", "end", "type", "score") dim(tbl.enhancers) gr.enhancers <- GRange...
/igap/inpp5d/dataPrep/getDHSclustered.R
permissive
PriceLab/trenaShinyApps
R
false
false
965
r
library(trena) targetGene <- "INPP5D" chromosome <- "chr2" if(!exists("tbl.enhancers")){ source("~/s/data/public/GeneHancer/v4.7/getAllEnhancers.R") tbl.enhancers <- getAllEnhancers(targetGene) colnames(tbl.enhancers) <- c("chr", "start", "end", "type", "score") dim(tbl.enhancers) gr.enhancers <- GRange...
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/createSlotAggList.R \name{createSlotAggList} \alias{createSlotAggList} \title{Creates a list for use by \code{\link{getDataForAllScens}}.} \usage{ createSlotAggList(iData) } \arguments{ \item{iData}{Either an Nx4 string matrix or a st...
/man/createSlotAggList.Rd
no_license
jshirey/RWDataPlot
R
false
false
4,878
rd
% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/createSlotAggList.R \name{createSlotAggList} \alias{createSlotAggList} \title{Creates a list for use by \code{\link{getDataForAllScens}}.} \usage{ createSlotAggList(iData) } \arguments{ \item{iData}{Either an Nx4 string matrix or a st...
library(plumber) r <- plumb("server.R") r$run(port=3838)
/Tagging/Tag App/api.R
no_license
mithunkmsg/tags
R
false
false
57
r
library(plumber) r <- plumb("server.R") r$run(port=3838)
filter_cor_p_matrix <- function(corr_matrix, p_matrix, r_thresh = 0.7, p_thresh = 0.0001, pco_thresh = 15, file_name =".filtered") { # Filters a correlation a...
/filter_cor_matrix.r
no_license
uc-cdis/Ronald-and-Mert
R
false
false
5,163
r
filter_cor_p_matrix <- function(corr_matrix, p_matrix, r_thresh = 0.7, p_thresh = 0.0001, pco_thresh = 15, file_name =".filtered") { # Filters a correlation a...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Output.r \name{SPslope} \alias{SPslope} \title{Slope in surplus production MP} \usage{ SPslope(x, Data, reps = 100, yrsmth = 4, alp = c(0.9, 1.1), bet = c(1.5, 0.9)) } \arguments{ \item{x}{A position in data-limited methods data object} \ite...
/man/SPslope.Rd
no_license
Lijiuqi/DLMtool
R
false
true
1,142
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Output.r \name{SPslope} \alias{SPslope} \title{Slope in surplus production MP} \usage{ SPslope(x, Data, reps = 100, yrsmth = 4, alp = c(0.9, 1.1), bet = c(1.5, 0.9)) } \arguments{ \item{x}{A position in data-limited methods data object} \ite...
# density proof for r figure library(extrafont) library(ggplot2) library(tidyverse) library(xkcd) conflicted::conflict_prefer("filter", "dplyr") # bc noise set.seed(38) # we'll assume, without loss of generality, |a| < |b| # this script file is a mess; an unholy mess # both negative ------------------------------...
/analysis/figures/density-proof.R
permissive
softloud/proof
R
false
false
4,571
r
# density proof for r figure library(extrafont) library(ggplot2) library(tidyverse) library(xkcd) conflicted::conflict_prefer("filter", "dplyr") # bc noise set.seed(38) # we'll assume, without loss of generality, |a| < |b| # this script file is a mess; an unholy mess # both negative ------------------------------...
`ll.jRCI.trec.ase.A` = function(par, yi, ind.lst, X, twosex, sex=NULL, ni, ni0, xs, iphi, theta) { if(twosex){ seq = 1:2 logL = ll.aRC(par0=c(par[1], par[3]), ni[sex == 1], ni0[sex == 1], xs[sex == 1], theta) logL = logL + ll.aRC(par0=c(par[2], par[4]), ni[sex == -1], ni0[sex == -1], xs[sex == -1],...
/R/ll.jRCI.trec.ase.A.R
no_license
cran/rxSeq
R
false
false
564
r
`ll.jRCI.trec.ase.A` = function(par, yi, ind.lst, X, twosex, sex=NULL, ni, ni0, xs, iphi, theta) { if(twosex){ seq = 1:2 logL = ll.aRC(par0=c(par[1], par[3]), ni[sex == 1], ni0[sex == 1], xs[sex == 1], theta) logL = logL + ll.aRC(par0=c(par[2], par[4]), ni[sex == -1], ni0[sex == -1], xs[sex == -1],...
## A pair of functions are written to cache the inverse of a matrix ## makecacheMatrix creates a matrix to cache the inverse makeCacheMatrix <- function(x = matrix()) { # an argument with object of type matrix is defined solve_matrix <- NULL # the object solve_matrix is initialized ...
/cachematrix.R
no_license
MonishaDamodaran/ProgrammingAssignment2
R
false
false
1,897
r
## A pair of functions are written to cache the inverse of a matrix ## makecacheMatrix creates a matrix to cache the inverse makeCacheMatrix <- function(x = matrix()) { # an argument with object of type matrix is defined solve_matrix <- NULL # the object solve_matrix is initialized ...
#Rscript to load file and create plot1 Global Active power library(dplyr) library(lubridate) r <-read.csv("household_power_consumption.txt",sep=";",stringsAsFactors=FALSE) rf<-filter(r, Date == "1/2/2007" | Date == "2/2/2007") rf<-mutate(rf,DateTime= dmy_hms(paste(Date,Time))) ##plot 1 png(filename = "Plot1....
/Plot1.R
no_license
akhil393/ExData_Plotting1
R
false
false
509
r
#Rscript to load file and create plot1 Global Active power library(dplyr) library(lubridate) r <-read.csv("household_power_consumption.txt",sep=";",stringsAsFactors=FALSE) rf<-filter(r, Date == "1/2/2007" | Date == "2/2/2007") rf<-mutate(rf,DateTime= dmy_hms(paste(Date,Time))) ##plot 1 png(filename = "Plot1....
expect_equal_meta <- function(.meta, expected) { expect_equal(as.character(.meta), expected) }
/tests/testthat/helper.R
permissive
cchoirat/metathis
R
false
false
97
r
expect_equal_meta <- function(.meta, expected) { expect_equal(as.character(.meta), expected) }
## Generic implementation of stability selection stabsel <- function(x, ...) { UseMethod("stabsel", x) } ### TODO: parallelization ala cvrisk needed! Seems to work? ### TODO: Use same arguments for .mboost und .formula ### TODO: Should y be a matrix? Perhaps we need this for survival data which ### might be speci...
/R/stabsel.R
no_license
springdance/stabs
R
false
false
16,536
r
## Generic implementation of stability selection stabsel <- function(x, ...) { UseMethod("stabsel", x) } ### TODO: parallelization ala cvrisk needed! Seems to work? ### TODO: Use same arguments for .mboost und .formula ### TODO: Should y be a matrix? Perhaps we need this for survival data which ### might be speci...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rl_reg.R \docType{data} \name{rl_reg1} \alias{rl_reg1} \alias{rl_reg2} \alias{rl_reg5} \alias{identity.rl_reg1} \alias{identity.rl_reg2} \alias{identity.rl_reg5} \alias{linkage.rl} \title{500 records suitable for record linkage with additiona...
/man/rl_reg1.Rd
no_license
cleanzr/representr
R
false
true
2,470
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rl_reg.R \docType{data} \name{rl_reg1} \alias{rl_reg1} \alias{rl_reg2} \alias{rl_reg5} \alias{identity.rl_reg1} \alias{identity.rl_reg2} \alias{identity.rl_reg5} \alias{linkage.rl} \title{500 records suitable for record linkage with additiona...
tic() N <- 10 simdata <- matrix(rnorm(2*N,mean=0.5,sd=0.2),nrow=N,ncol=2) simdata <- complex(real=simdata[,1],imaginary=simdata[,2]) qval <- 95 bootstrapped <- amperrors(simdata, method='boot',quantiles=qval) circle <- amperrors(simdata, method='circ',quantiles=qval) ellipse <- amperrors(simdata, method='ellipse',quant...
/manuscript/misc/testamperrors.R
no_license
bakerdh/FourierStats
R
false
false
2,016
r
tic() N <- 10 simdata <- matrix(rnorm(2*N,mean=0.5,sd=0.2),nrow=N,ncol=2) simdata <- complex(real=simdata[,1],imaginary=simdata[,2]) qval <- 95 bootstrapped <- amperrors(simdata, method='boot',quantiles=qval) circle <- amperrors(simdata, method='circ',quantiles=qval) ellipse <- amperrors(simdata, method='ellipse',quant...
get.coef <- function(mod) { require(sandwich, quietly = TRUE) require(lmtest, quietly = TRUE) chc <- vcovHC(mod, type="HC") cts <- coeftest(mod, chc) return(cts[2,]) } get.coef.clust <- function(mod, cluster, var=NA) { require(sandwich, quietly = TRUE) require(lmtest, quietly = TRUE) not <- attr(mod$...
/R/clustreg.R
permissive
jrising/research-common
R
false
false
1,823
r
get.coef <- function(mod) { require(sandwich, quietly = TRUE) require(lmtest, quietly = TRUE) chc <- vcovHC(mod, type="HC") cts <- coeftest(mod, chc) return(cts[2,]) } get.coef.clust <- function(mod, cluster, var=NA) { require(sandwich, quietly = TRUE) require(lmtest, quietly = TRUE) not <- attr(mod$...
# estimateParam --------------------------------------------------------- #' @name estimateParam #' @aliases estimateParam #' @title Estimate simulation parameters #' @description This function estimates and returns parameters needed for power simulations.\cr #' The user needs to choose the following options at least...
/R/Estimate.R
permissive
bvieth/powsimR
R
false
false
30,693
r
# estimateParam --------------------------------------------------------- #' @name estimateParam #' @aliases estimateParam #' @title Estimate simulation parameters #' @description This function estimates and returns parameters needed for power simulations.\cr #' The user needs to choose the following options at least...
setwd("I:/James/Gap R Project/Data/CSV") options(sqldf.driver = "SQLite") FDC_Open_PO_Data <- read.csv("Open_PO_90303.csv", stringsAsFactors=FALSE, sep=",") PDC_Open_PO_Data <- read.csv("Open_PO_90309.csv", stringsAsFactors=FALSE, sep=",") WFC_Open_PO_Data <- read.c...
/Open_PO.R
no_license
jruk67/MostlyNonsense
R
false
false
2,141
r
setwd("I:/James/Gap R Project/Data/CSV") options(sqldf.driver = "SQLite") FDC_Open_PO_Data <- read.csv("Open_PO_90303.csv", stringsAsFactors=FALSE, sep=",") PDC_Open_PO_Data <- read.csv("Open_PO_90309.csv", stringsAsFactors=FALSE, sep=",") WFC_Open_PO_Data <- read.c...
#**we clear the memory/workspace by using rm(list = ls()), before loading the Apollo library** #-----------------------------------# #Clear memory #-----------------------------------# rm(list = ls()) #-----------------------------------# # load packages #-----------------------------------# library(apollo) library(t...
/src/05_apollo.R
no_license
mabecker89/ab_birding
R
false
false
3,768
r
#**we clear the memory/workspace by using rm(list = ls()), before loading the Apollo library** #-----------------------------------# #Clear memory #-----------------------------------# rm(list = ls()) #-----------------------------------# # load packages #-----------------------------------# library(apollo) library(t...
jobaddin_run = function(jobargs = list()) { selection = rstudioapi::selectionGet()$value if (length(selection) == 0 || selection == "") { rstudioapi::showDialog("Error", "Error: No code was selected.") } else { jobtitle = gsub("\n", "; ", substr(selection, 1, 80)) jobcode = parse(text = paste0("{ ", s...
/R/addins.R
no_license
mugpeng/job
R
false
false
608
r
jobaddin_run = function(jobargs = list()) { selection = rstudioapi::selectionGet()$value if (length(selection) == 0 || selection == "") { rstudioapi::showDialog("Error", "Error: No code was selected.") } else { jobtitle = gsub("\n", "; ", substr(selection, 1, 80)) jobcode = parse(text = paste0("{ ", s...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NVT-init.R \name{NVTrmsd} \alias{NVTrmsd} \title{Calculate the root mean squared deviation (RMSD) of the housekeeping genes of an initialized and normalized NVTobject} \usage{ NVTrmsd(NVTdataobj) } \arguments{ \item{NVTdataobj}{A previously i...
/man/NVTrmsd.Rd
permissive
Edert/NVT
R
false
true
913
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NVT-init.R \name{NVTrmsd} \alias{NVTrmsd} \title{Calculate the root mean squared deviation (RMSD) of the housekeeping genes of an initialized and normalized NVTobject} \usage{ NVTrmsd(NVTdataobj) } \arguments{ \item{NVTdataobj}{A previously i...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spectrum_functions.R \name{paws.getSpectrumBatch} \alias{paws.getSpectrumBatch} \title{The Google Spectrum Database does not support batch requests, so this method always yields an UNIMPLEMENTED error.} \usage{ paws.getSpectrumBatch(PawsGetSp...
/googlespectrumv1explorer.auto/man/paws.getSpectrumBatch.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,005
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spectrum_functions.R \name{paws.getSpectrumBatch} \alias{paws.getSpectrumBatch} \title{The Google Spectrum Database does not support batch requests, so this method always yields an UNIMPLEMENTED error.} \usage{ paws.getSpectrumBatch(PawsGetSp...
###########################################################################/** # @RdocDefault segmentByNonPairedPSCBS # @alias segmentByNonPairedPSCBS.data.frame # @alias segmentByNonPairedPSCBS.PairedPSCBS # @alias segmentByNonPairedPSCBS # # @title "Segment total copy numbers and allele B fractions using the Non-pair...
/R/segmentByNonPairedPSCBS.R
no_license
flywind2/PSCBS
R
false
false
9,690
r
###########################################################################/** # @RdocDefault segmentByNonPairedPSCBS # @alias segmentByNonPairedPSCBS.data.frame # @alias segmentByNonPairedPSCBS.PairedPSCBS # @alias segmentByNonPairedPSCBS # # @title "Segment total copy numbers and allele B fractions using the Non-pair...
#' Extract csim values for all sites for entire year #' #' This is to be used on the object containing only csim values, for all sites #' throughout the year, not on the raw CMAQ data that also includes object #' sensitivity values. #' #' @param site_coords a list of site coordinates (i, j) from csn_site_index. ...
/R/sites.R
no_license
envhyf/hybridSA
R
false
false
4,461
r
#' Extract csim values for all sites for entire year #' #' This is to be used on the object containing only csim values, for all sites #' throughout the year, not on the raw CMAQ data that also includes object #' sensitivity values. #' #' @param site_coords a list of site coordinates (i, j) from csn_site_index. ...
NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Using aggregate to group by year the sum of Emissions: NEI1 <- aggregate(Emissions ~ year,NEI, sum) #Create plot. I used barplot to improve visualization barplot( (NEI1$Emissions)/10^6, names.arg=NEI1$year, xlab="Year", yl...
/plot1.R
no_license
msalcedo1/Exploratory_Data_Analysis
R
false
false
500
r
NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") # Using aggregate to group by year the sum of Emissions: NEI1 <- aggregate(Emissions ~ year,NEI, sum) #Create plot. I used barplot to improve visualization barplot( (NEI1$Emissions)/10^6, names.arg=NEI1$year, xlab="Year", yl...
###################################################################################################### ### EXPERIMENT 4: UNILATERAL AP5 INFUSIONS: EXTINCTION TEST (MV ) ### ###################################################################################################### ##...
/All data extract/All data extract EXP4 Extinction.R
no_license
mvegavillar/Accumbens-Rew-learning
R
false
false
44,486
r
###################################################################################################### ### EXPERIMENT 4: UNILATERAL AP5 INFUSIONS: EXTINCTION TEST (MV ) ### ###################################################################################################### ##...
#------------------------------------------------------------------------------ # Solutions to Exercises from Lec06.R #------------------------------------------------------------------------------ # Q1: Modify the Titanic code above to show a visualization that can answer the # question of if the "Women and children f...
/Lec06 Finishing ggplot2/Lec06_solutions.R
no_license
2016-09-Middlebury-Data-Science/Topics
R
false
false
2,453
r
#------------------------------------------------------------------------------ # Solutions to Exercises from Lec06.R #------------------------------------------------------------------------------ # Q1: Modify the Titanic code above to show a visualization that can answer the # question of if the "Women and children f...