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
#' Label the node with the name of the cell type in the ICELLNET network. #' #' @description Label the node with the name of the cell type in the ICELLNET network. #' #' @param mapping mapping #' @param data data #' @param position position #' @param parse parse #' @param nudge_x nudge_x #' @param nudge_y nudge_y #' @...
/icellnet/R/geom_node_label.R
no_license
soumelis-lab/ICELLNET
R
false
false
1,858
r
#' Label the node with the name of the cell type in the ICELLNET network. #' #' @description Label the node with the name of the cell type in the ICELLNET network. #' #' @param mapping mapping #' @param data data #' @param position position #' @param parse parse #' @param nudge_x nudge_x #' @param nudge_y nudge_y #' @...
BootCL.distribution<-function(chip,sampling.count,total.sampling.count=10000, windowsize=NULL) { seed<-sample(1,1:32767) if(chip=="HG.U133A") { data(HG.U133A); Chromosome.List<-HG.U133A;list.whole.count<-nrow(Chromosome.List) } else if(chip=="HG.U133B") { data(HG.U133B); Chromosome.List<-HG.U13...
/R/boot.R
no_license
cran/BootCL
R
false
false
11,986
r
BootCL.distribution<-function(chip,sampling.count,total.sampling.count=10000, windowsize=NULL) { seed<-sample(1,1:32767) if(chip=="HG.U133A") { data(HG.U133A); Chromosome.List<-HG.U133A;list.whole.count<-nrow(Chromosome.List) } else if(chip=="HG.U133B") { data(HG.U133B); Chromosome.List<-HG.U13...
# COLORS/LABELS # (used in plot_lollipop(), plot_bar_periods(), and plot_bar_periods_ses(), aggregate_categories()) gent_cat_colors <- c("snow3","#d94801", "#fa7b00", "#fdcc8a", "#a6d894") gent_cat <- c("Nongentrifiable", "Intense", "Moderate", "Weak", "People or Price") names(gent_cat_colors) <- gent_cat # refers ...
/data-raw/DATASET.R
no_license
Changing-Cities-Research-Lab/oakViz
R
false
false
8,219
r
# COLORS/LABELS # (used in plot_lollipop(), plot_bar_periods(), and plot_bar_periods_ses(), aggregate_categories()) gent_cat_colors <- c("snow3","#d94801", "#fa7b00", "#fdcc8a", "#a6d894") gent_cat <- c("Nongentrifiable", "Intense", "Moderate", "Weak", "People or Price") names(gent_cat_colors) <- gent_cat # refers ...
install.packages("xlsx") library(readr) library(ggplot2) library(lattice) library(caret) install.packages("corrplot") install.packages("stats") library(corrplot) library(dplyr) library(ggplot2) library(xlsx) library(stats) set.seed(39) existingproductattributes2017 <- read_csv("existingproductattributes2017.csv") summ...
/C2T3.R
no_license
schitari/C2T3---Predicting-new-product-volumes-using-supervised-learning-algorithms
R
false
false
9,167
r
install.packages("xlsx") library(readr) library(ggplot2) library(lattice) library(caret) install.packages("corrplot") install.packages("stats") library(corrplot) library(dplyr) library(ggplot2) library(xlsx) library(stats) set.seed(39) existingproductattributes2017 <- read_csv("existingproductattributes2017.csv") summ...
#' Extract values from Mplus output #' An internal function used by extractSummaries_1file to extract #' parameters from the output file using regular expressions. #' #' @param pattern the exact text to be matched in the outfile that identifies the parameter of interest #' @param textToScan the chunk of Mplus output to...
/R/parseOutput.R
no_license
Ichimonji212/MplusAutomation
R
false
false
116,997
r
#' Extract values from Mplus output #' An internal function used by extractSummaries_1file to extract #' parameters from the output file using regular expressions. #' #' @param pattern the exact text to be matched in the outfile that identifies the parameter of interest #' @param textToScan the chunk of Mplus output to...
wrap.text <- structure(function(tex = "", wid = 30) { ## Purpose: Wraps text at wid characters wide (or smaller if necessary) ## ---------------------------------------------------------------------- ## Modified from: ## ---------------------------------------------------------------------- ## Arguments: #...
/.tmp/hrapgc.wrap.text.R
no_license
Tuxkid/Gems
R
false
false
1,266
r
wrap.text <- structure(function(tex = "", wid = 30) { ## Purpose: Wraps text at wid characters wide (or smaller if necessary) ## ---------------------------------------------------------------------- ## Modified from: ## ---------------------------------------------------------------------- ## Arguments: #...
\name{rollapply} \alias{rollapply} \alias{rollapplyr} \alias{rollapply.default} \alias{rollapply.ts} \alias{rollapply.zoo} \title{Apply Rolling Functions} \description{ A generic function for applying a function to rolling margins of an array. } \usage{ rollapply(data, \dots) \method{rollapply}{ts}(data, \dots) \meth...
/man/rollapply.Rd
no_license
SongD90/zoo
R
false
false
9,926
rd
\name{rollapply} \alias{rollapply} \alias{rollapplyr} \alias{rollapply.default} \alias{rollapply.ts} \alias{rollapply.zoo} \title{Apply Rolling Functions} \description{ A generic function for applying a function to rolling margins of an array. } \usage{ rollapply(data, \dots) \method{rollapply}{ts}(data, \dots) \meth...
# Packages ---- # load packages library(rtracklayer) # for importing BED/GFF/etc. library(plyranges) # for working with GenomicRanges library(ChIPseeker) # to annotate peaks library(profileplyr) # for profile heatmaps library(ggplot2) # change the default ggplot theme theme_set(theme_classic(base_size = 14)) # C...
/course_files/participants/scripts/02-peak_ranges.R
permissive
cambiotraining/chipseq
R
false
false
5,860
r
# Packages ---- # load packages library(rtracklayer) # for importing BED/GFF/etc. library(plyranges) # for working with GenomicRanges library(ChIPseeker) # to annotate peaks library(profileplyr) # for profile heatmaps library(ggplot2) # change the default ggplot theme theme_set(theme_classic(base_size = 14)) # C...
Sim_Fn <- function( n_species, n_stations=200, n_factors=2, SpatialScale=0.1, SD_O=1.0, logMeanDens=3.0, Psi=NULL, Loc=NULL ){ # Parameters if( is.null(Psi) ){ Psi = matrix( rnorm(n_factors*n_species), nrow=n_factors, ncol=n_species) for(i in 1:nrow(Psi)) Psi[i,seq(from=1,to=i-1,length=i-1)] = 0 } Beta ...
/R/Sim_Fn.R
no_license
GodinA/spatial_factor_analysis
R
false
false
1,042
r
Sim_Fn <- function( n_species, n_stations=200, n_factors=2, SpatialScale=0.1, SD_O=1.0, logMeanDens=3.0, Psi=NULL, Loc=NULL ){ # Parameters if( is.null(Psi) ){ Psi = matrix( rnorm(n_factors*n_species), nrow=n_factors, ncol=n_species) for(i in 1:nrow(Psi)) Psi[i,seq(from=1,to=i-1,length=i-1)] = 0 } Beta ...
#' Subset cast dataset per probability threshold #' #' Takes the input cast dataset and subsets into dataset containing only those species that were part of at least one species pair occurring with a probability >= a certain threshold value. #' @param data Input cast dataset #' @param prob Numeric probability threshol...
/R/cast_site_prob.R
no_license
JonasGeschke/NicheOverlapR
R
false
false
1,292
r
#' Subset cast dataset per probability threshold #' #' Takes the input cast dataset and subsets into dataset containing only those species that were part of at least one species pair occurring with a probability >= a certain threshold value. #' @param data Input cast dataset #' @param prob Numeric probability threshol...
category Math #@# :author: 小林茂雄 bigdecimal は浮動小数点数演算ライブラリです。 任意の精度で 10 進表現された浮動小数点数を扱えます。 예: require 'bigdecimal' a = BigDecimal::new("0.123456789123456789") b = BigDecimal("123456.78912345678", 40) print a + b # => 0.123456912580245903456789E6 一般的な 10 進数の計算でも有用です。2 進数の浮動小数点演算には微小な誤 差があるのに対し、[[c:BigDecimal]...
/target/rubydoc/refm/api/src/bigdecimal.rd
no_license
nacyot/omegat-rurima-ruby
R
false
false
15,462
rd
category Math #@# :author: 小林茂雄 bigdecimal は浮動小数点数演算ライブラリです。 任意の精度で 10 進表現された浮動小数点数を扱えます。 예: require 'bigdecimal' a = BigDecimal::new("0.123456789123456789") b = BigDecimal("123456.78912345678", 40) print a + b # => 0.123456912580245903456789E6 一般的な 10 進数の計算でも有用です。2 進数の浮動小数点演算には微小な誤 差があるのに対し、[[c:BigDecimal]...
\name{setFeatures-methods} \alias{setFeatures-methods} \alias{setFeatures} \title{The \code{setFeatures} method} \description{Sets the features to an object of the \code{\linkS4class{mtkFactor}} class.} \usage{setFeatures(this, aFList)} \value{invisible} \arguments{ \item{this}{an object of the class \code{\linkS4class...
/man/setFeatures-methods.Rd
no_license
santoshpanda15/mtk
R
false
false
841
rd
\name{setFeatures-methods} \alias{setFeatures-methods} \alias{setFeatures} \title{The \code{setFeatures} method} \description{Sets the features to an object of the \code{\linkS4class{mtkFactor}} class.} \usage{setFeatures(this, aFList)} \value{invisible} \arguments{ \item{this}{an object of the class \code{\linkS4class...
library(jsonlite) library(ggplot2) jscoviddata <- read_json("https://opendata.ecdc.europa.eu/covid19/hospitalicuadmissionrates/json/", simplifyVector = TRUE) startdato <- as.Date(c('2020-05-01')) jscoviddata$date <- as.Date(jscoviddata$date) jscoviddata <- jscoviddata[which(jscoviddata$date>= startdato),] ggplot(subs...
/jsontest.R
no_license
llindegaard/covid
R
false
false
1,492
r
library(jsonlite) library(ggplot2) jscoviddata <- read_json("https://opendata.ecdc.europa.eu/covid19/hospitalicuadmissionrates/json/", simplifyVector = TRUE) startdato <- as.Date(c('2020-05-01')) jscoviddata$date <- as.Date(jscoviddata$date) jscoviddata <- jscoviddata[which(jscoviddata$date>= startdato),] ggplot(subs...
library(curl) library(tidyverse) source("cache.R") read_apc_csv <- function(path) { readr::read_csv( path, col_types = cols( .default = readr::col_character(), proParte = readr::col_logical(), taxonRankSortOrder = readr::col_double(), created = readr::col_datetime(form...
/r/ausplotsr-play/apc.R
no_license
puyo/exercises
R
false
false
610
r
library(curl) library(tidyverse) source("cache.R") read_apc_csv <- function(path) { readr::read_csv( path, col_types = cols( .default = readr::col_character(), proParte = readr::col_logical(), taxonRankSortOrder = readr::col_double(), created = readr::col_datetime(form...
# lambda = np lambda = 2000*0.0085 lambda dpois(5, 17)
/Biostats hw3/hw3.R
permissive
spsanderson/bio-informatics
R
false
false
55
r
# lambda = np lambda = 2000*0.0085 lambda dpois(5, 17)
function (grammar, numExpr = 1, max.depth = length(grammar$def), startSymb = GrammarStartSymbol(grammar), max.string = GrammarMaxSequenceRange(grammar, max.depth, startSymb), wrappings = 3, retries = 100) { n = length(max.string) ret.list = list() for (i in 1:numExpr) { for (j in 1:retries) { ...
/R/GrammarRandomExpression.R
no_license
ramcqueary/gramEvol3
R
false
false
815
r
function (grammar, numExpr = 1, max.depth = length(grammar$def), startSymb = GrammarStartSymbol(grammar), max.string = GrammarMaxSequenceRange(grammar, max.depth, startSymb), wrappings = 3, retries = 100) { n = length(max.string) ret.list = list() for (i in 1:numExpr) { for (j in 1:retries) { ...
install.packages("tidyverse") install.packages("e1071") # 왜도, 첨도 install.packages("plotly") library(tidyverse) library(e1071) library(plotly) # 예제 데이터 : ggplot2::diamonds # 양적 자료 : price # 일변량 양적 자료의 분석 # 1. 표 = 빈도표 # (1) 구간의 빈도 mean(diamonds$price) x1 <- c(10, 20, 30, NA) # 일반 평균 mean(x1) mean(x1, na.rm = TRUE)...
/study/test2.R
no_license
metalzoa/r-study
R
false
false
1,810
r
install.packages("tidyverse") install.packages("e1071") # 왜도, 첨도 install.packages("plotly") library(tidyverse) library(e1071) library(plotly) # 예제 데이터 : ggplot2::diamonds # 양적 자료 : price # 일변량 양적 자료의 분석 # 1. 표 = 빈도표 # (1) 구간의 빈도 mean(diamonds$price) x1 <- c(10, 20, 30, NA) # 일반 평균 mean(x1) mean(x1, na.rm = TRUE)...
library(ggplot2) library(rpart) #decision tree library(ROCR) library(RCurl) # load data (from https://www.kaggle.com/ludobenistant/hr-analytics) hr = read.csv("C:/Users/ingrid.brizotti/Downloads/HR_comma_sep.csv") # Divide 70% to train and 30% to test set.seed(4) hr_train <- sample(nrow(hr), floor(nrow(hr)*0.7)) trai...
/04.Classification tree.R
no_license
ingridbrizotti/Data-science-in-R
R
false
false
1,619
r
library(ggplot2) library(rpart) #decision tree library(ROCR) library(RCurl) # load data (from https://www.kaggle.com/ludobenistant/hr-analytics) hr = read.csv("C:/Users/ingrid.brizotti/Downloads/HR_comma_sep.csv") # Divide 70% to train and 30% to test set.seed(4) hr_train <- sample(nrow(hr), floor(nrow(hr)*0.7)) trai...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tune_models.R \name{tune_models} \alias{tune_models} \title{Tune multiple machine learning models using cross validation to optimize performance} \usage{ tune_models(d, outcome, models, metric, positive_class, n_folds = 5, tune_depth = 10, ...
/man/tune_models.Rd
permissive
hughvnguyen/healthcareai-r
R
false
true
2,988
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tune_models.R \name{tune_models} \alias{tune_models} \title{Tune multiple machine learning models using cross validation to optimize performance} \usage{ tune_models(d, outcome, models, metric, positive_class, n_folds = 5, tune_depth = 10, ...
# 叶明亮, "应用时间序列组合预测方法的卷烟销售预测模型," 福建电脑, vol. 36, no. 02, pp. 63-67, 2020. # !可用模型函数:1-均值法:meanF(p,d);2-季节朴素法:snaiveF(p,d);3-时间序列分解:stlDeco(p); # +4-ETS指数平滑法:etsF(p,d);5-季节ARIMA法:sarimaF(p,d);6-多季节STL分解预测:mstlF(p,d); # +7-多季节动态谐波回归:mdhArimaF(p,d);8-TBATS模型:tbatsF(p,d);9-神经网络自回归:nnarF(p,d); # +10-组合预测模型:combineF(p,d)...
/TimeSeries/Demo_Forecasting_Ts_week.R
no_license
zkxshg/Test_of_R
R
false
false
10,835
r
# 叶明亮, "应用时间序列组合预测方法的卷烟销售预测模型," 福建电脑, vol. 36, no. 02, pp. 63-67, 2020. # !可用模型函数:1-均值法:meanF(p,d);2-季节朴素法:snaiveF(p,d);3-时间序列分解:stlDeco(p); # +4-ETS指数平滑法:etsF(p,d);5-季节ARIMA法:sarimaF(p,d);6-多季节STL分解预测:mstlF(p,d); # +7-多季节动态谐波回归:mdhArimaF(p,d);8-TBATS模型:tbatsF(p,d);9-神经网络自回归:nnarF(p,d); # +10-组合预测模型:combineF(p,d)...
# Before we can load headers we need some paths defined. They # may be provided by a system environment variable or just # having already been set in the workspace if( !exists( "EMISSPROC_DIR" ) ){ if( Sys.getenv( "EMISSIONSPROC" ) != "" ){ EMISSPROC_DIR <- Sys.getenv( "EMISSIONSPROC" ) } else { ...
/input/gcam-data-system/emissions-processing-code/level1/L141.hfc_R_S_T_Y.R
permissive
Randynat/gcam-core
R
false
false
8,909
r
# Before we can load headers we need some paths defined. They # may be provided by a system environment variable or just # having already been set in the workspace if( !exists( "EMISSPROC_DIR" ) ){ if( Sys.getenv( "EMISSIONSPROC" ) != "" ){ EMISSPROC_DIR <- Sys.getenv( "EMISSIONSPROC" ) } else { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iq-functions.R \name{iq_table} \alias{iq_table} \title{Import IQ conversion table} \usage{ iq_table(table = NULL, subtest = NULL, ...) } \arguments{ \item{table}{path or data.frame with conversion data} \item{subtest}{character vector indica...
/man/iq_table.Rd
permissive
LCBC-UiO/Conversions
R
false
true
784
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/iq-functions.R \name{iq_table} \alias{iq_table} \title{Import IQ conversion table} \usage{ iq_table(table = NULL, subtest = NULL, ...) } \arguments{ \item{table}{path or data.frame with conversion data} \item{subtest}{character vector indica...
#visualize.R rm(list=ls()) source('my_functions.R') # LOAD -------------------------------------------------------------------- #load cleaned data otuput from prepare.R ll=load('data/train_set.Rdata') ll # LEAVING FREQUENCIES AMONG GROUPS ------------------------------------------------ #are there any groups partic...
/visualize.R
no_license
Groves-Dixon-Demos/Federal-Employees-Feelings
R
false
false
9,217
r
#visualize.R rm(list=ls()) source('my_functions.R') # LOAD -------------------------------------------------------------------- #load cleaned data otuput from prepare.R ll=load('data/train_set.Rdata') ll # LEAVING FREQUENCIES AMONG GROUPS ------------------------------------------------ #are there any groups partic...
# + tags=["parameters"] # - df = read.csv(upstream[['upvotes-dump']]) head(df) hist(df$mean_upvotes)
/etl/plot/upvotes.R
permissive
adityalahariya/projects
R
false
false
106
r
# + tags=["parameters"] # - df = read.csv(upstream[['upvotes-dump']]) head(df) hist(df$mean_upvotes)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NMFOffset-class.R \docType{class} \name{NMFOffset-class} \alias{NMFOffset-class} \alias{initialize,NMFOffset-method} \title{NMF Model - Nonnegative Matrix Factorization with Offset} \usage{ \S4method{initialize}{NMFOffset}(.Object, ..., offse...
/man/NMFOffset-class.Rd
no_license
pooranis/NMF
R
false
true
2,323
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/NMFOffset-class.R \docType{class} \name{NMFOffset-class} \alias{NMFOffset-class} \alias{initialize,NMFOffset-method} \title{NMF Model - Nonnegative Matrix Factorization with Offset} \usage{ \S4method{initialize}{NMFOffset}(.Object, ..., offse...
\name{salting2.df} \alias{salting2.df} \title{Salting out effects in forensic blood alcohol determination} \description{Blood alcohol measurements determined by headspace gas chromatography have been challenged on the grounds that the presence of the preservative sodium fluoride in blood samples artificially incr...
/man/salting2.df.Rd
no_license
cran/dafs
R
false
false
2,033
rd
\name{salting2.df} \alias{salting2.df} \title{Salting out effects in forensic blood alcohol determination} \description{Blood alcohol measurements determined by headspace gas chromatography have been challenged on the grounds that the presence of the preservative sodium fluoride in blood samples artificially incr...
#Linear Regression #1. Packages library(MASS) library(plyr) library(ggplot2) library(knitr) library(GGally) #2. Linear regression # Import data set crime <- read.table("http://www.andrew.cmu.edu/user/achoulde/94842/data/crime_simple.txt", sep = "\t", header = TRUE) # Assign more meaningful variable names colnames(cri...
/R code/HW7.R
no_license
Kim-Ayeong/Data_Science_with_R
R
false
false
6,291
r
#Linear Regression #1. Packages library(MASS) library(plyr) library(ggplot2) library(knitr) library(GGally) #2. Linear regression # Import data set crime <- read.table("http://www.andrew.cmu.edu/user/achoulde/94842/data/crime_simple.txt", sep = "\t", header = TRUE) # Assign more meaningful variable names colnames(cri...
# Author: Robert J. Hijmans # Date : June 2008 # Version 1.0 # Licence GPL v3 .gdFixGeoref <- function(mdata) { gdversion <- getOption('rasterGDALVersion') test <- gdversion < '1.8.0' if (test) { if (! is.null(mdata) ) { for (i in 1:length(mdata)) { if (mdata[i] == "AREA_OR_POINT=Area") { ...
/R/rasterFromGDAL.R
no_license
szanardo-rms/raster
R
false
false
8,528
r
# Author: Robert J. Hijmans # Date : June 2008 # Version 1.0 # Licence GPL v3 .gdFixGeoref <- function(mdata) { gdversion <- getOption('rasterGDALVersion') test <- gdversion < '1.8.0' if (test) { if (! is.null(mdata) ) { for (i in 1:length(mdata)) { if (mdata[i] == "AREA_OR_POINT=Area") { ...
# # This is the server logic of a Shiny web application. # # Define server logic required to draw a histogram shinyServer(function(input, output, session) { library(shiny) library(tidyverse) library(tidyr) library(dplyr) library(lubridate) library(ggplot2) #load Stations stati...
/server.R
no_license
was1paulina/airpollution
R
false
false
9,579
r
# # This is the server logic of a Shiny web application. # # Define server logic required to draw a histogram shinyServer(function(input, output, session) { library(shiny) library(tidyverse) library(tidyr) library(dplyr) library(lubridate) library(ggplot2) #load Stations stati...
data <- read.csv ("Full_Responses.csv") #This portion of the code is seperated by item where R3-R17 corresponds #to individual survey items. The correspondence is as follow: #R3- Omitting nonSignificant studies or variables #R4- Omitting nonSignificant covariates #R5- HARKing #R6- Omitting analyses #R...
/Makel_Agnoli/Makel_orig_OSF_files/QRP_B_US_NONUS_FIXED_ANNOTATED.R
no_license
alexholcombe/ChinHolcombePickettVazireCrimSurvey
R
false
false
6,770
r
data <- read.csv ("Full_Responses.csv") #This portion of the code is seperated by item where R3-R17 corresponds #to individual survey items. The correspondence is as follow: #R3- Omitting nonSignificant studies or variables #R4- Omitting nonSignificant covariates #R5- HARKing #R6- Omitting analyses #R...
# packages library(rgdal) ## pour occupancy #library(RColorBrewer) ## pour colorer maps library(unmarked) #library(classInt) library(spdep) # get 30 models with delta-AIC < 2 (see Table3_covariate_selection.R) load('allmodursus.RData') all_mod # get covariates # read in det/non-det data data_occ <- read.csv('Bear_...
/test_trend_occupancy.R
no_license
oliviergimenez/ursus_Pyrenees_occupancy
R
false
false
5,453
r
# packages library(rgdal) ## pour occupancy #library(RColorBrewer) ## pour colorer maps library(unmarked) #library(classInt) library(spdep) # get 30 models with delta-AIC < 2 (see Table3_covariate_selection.R) load('allmodursus.RData') all_mod # get covariates # read in det/non-det data data_occ <- read.csv('Bear_...
library(RTest) ### Name: htmlify_string ### Title: function to make strings xml and html compatible ### Aliases: htmlify_string ### ** Examples input_string <- "<5" stopifnot(htmlify_string(input_string)=="&lt;5")
/data/genthat_extracted_code/RTest/examples/htmlify_string.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
224
r
library(RTest) ### Name: htmlify_string ### Title: function to make strings xml and html compatible ### Aliases: htmlify_string ### ** Examples input_string <- "<5" stopifnot(htmlify_string(input_string)=="&lt;5")
args <- commandArgs(trailingOnly = FALSE) base_dir = dirname(substring( args[grep("--file=", args)], 8)) setwd(base_dir) param_string = substring(args[grep("--params=", args)], 10) s = strsplit(param_string, "[|]")[[1]] all_params = strsplit(s," ") all_params = lapply(all_params, as.numeric) b = all_params[[1]] #...
/cns/R/srm/tem/find_best_code.R
no_license
alexeyche/alexeyche-junk
R
false
false
2,443
r
args <- commandArgs(trailingOnly = FALSE) base_dir = dirname(substring( args[grep("--file=", args)], 8)) setwd(base_dir) param_string = substring(args[grep("--params=", args)], 10) s = strsplit(param_string, "[|]")[[1]] all_params = strsplit(s," ") all_params = lapply(all_params, as.numeric) b = all_params[[1]] #...
tTestScaledMdd <- function (n.or.n1, n2 = n.or.n1, alpha = 0.05, power = 0.95, sample.type = ifelse(!missing(n2) && !is.null(n2), "two.sample", "one.sample"), alternative = "two.sided", two.sided.direction = "greater", approx = FALSE, tol = 1e-07, maxiter = 1000) { sample.type <- match.arg...
/R/tTestScaledMdd.R
no_license
alexkowa/EnvStats
R
false
false
4,780
r
tTestScaledMdd <- function (n.or.n1, n2 = n.or.n1, alpha = 0.05, power = 0.95, sample.type = ifelse(!missing(n2) && !is.null(n2), "two.sample", "one.sample"), alternative = "two.sided", two.sided.direction = "greater", approx = FALSE, tol = 1e-07, maxiter = 1000) { sample.type <- match.arg...
##makeCacheMatrix:This function creates a special "matrix" object ##that can cache its inverse. makeCacheMatrix <- function(x = numeric()) { inverse <- NULL set <- function(y) { x <<- y inverse <<- NULL } get <- function() x setinverse <- function(solve) inverse <<- solve getinverse <- function() in...
/cachematrix.R
no_license
antonioldg/ProgrammingAssignment2
R
false
false
912
r
##makeCacheMatrix:This function creates a special "matrix" object ##that can cache its inverse. makeCacheMatrix <- function(x = numeric()) { inverse <- NULL set <- function(y) { x <<- y inverse <<- NULL } get <- function() x setinverse <- function(solve) inverse <<- solve getinverse <- function() in...
/Homework_Session6_Chenxin.R
no_license
xiechenxin/Statistical-Machine-learning-for-Marketing-Research
R
false
false
7,032
r
context("test-asanaRconfigFile.R") test_that("asanaRconfigFile() cats a message to console", { # Call getsurvey expect_output( asanaR::asanaRconfigFile(), "Copy-paste the lines between the dashes into a new plain text file, replace the value for the personal_access_token" ) })
/tests/testthat/test-asanaRconfigFile.R
permissive
ryantsullivan/asanaR
R
false
false
293
r
context("test-asanaRconfigFile.R") test_that("asanaRconfigFile() cats a message to console", { # Call getsurvey expect_output( asanaR::asanaRconfigFile(), "Copy-paste the lines between the dashes into a new plain text file, replace the value for the personal_access_token" ) })
"samplesCoda" <- function(node, stem, beg = samplesGetBeg(), end = samplesGetEnd(), firstChain = samplesGetFirstChain(), lastChain = samplesGetLastChain(), thin = samplesGetThin()) { # Write out CODA files if(!is.character(node) || length(node)!=1) stop("'node' must be character of length 1"...
/R/samples.coda.R
no_license
cran/BRugs
R
false
false
1,310
r
"samplesCoda" <- function(node, stem, beg = samplesGetBeg(), end = samplesGetEnd(), firstChain = samplesGetFirstChain(), lastChain = samplesGetLastChain(), thin = samplesGetThin()) { # Write out CODA files if(!is.character(node) || length(node)!=1) stop("'node' must be character of length 1"...
#' add_controls #' #' add_controls to the archaeopteryx htmlwidget #' #' @param arch Required. #' @param control Optional. Default \code{"maincontrols"}. Can be either "maincontrols or "colorcontrols". #' @export add_controls <- function(arch, controls="maincontrols") { if (controls == "maincontrols") { arch$x$...
/R/add_controls.R
no_license
zachcp/archaeopteryx-js
R
false
false
494
r
#' add_controls #' #' add_controls to the archaeopteryx htmlwidget #' #' @param arch Required. #' @param control Optional. Default \code{"maincontrols"}. Can be either "maincontrols or "colorcontrols". #' @export add_controls <- function(arch, controls="maincontrols") { if (controls == "maincontrols") { arch$x$...
#' Prints available TCGA datasets #' #' @description Prints available TCGA cohorts #' @examples #' tcga_available() #' @export #' @seealso \code{\link{tcga_load}} tcga_available = function(){ cohorts = system.file('extdata', 'cohorts.txt', package = 'TCGAmutations') cohorts = data.table::fread(input = cohorts) co...
/R/tcga_available.R
permissive
jchenpku/TCGAmutations
R
false
false
328
r
#' Prints available TCGA datasets #' #' @description Prints available TCGA cohorts #' @examples #' tcga_available() #' @export #' @seealso \code{\link{tcga_load}} tcga_available = function(){ cohorts = system.file('extdata', 'cohorts.txt', package = 'TCGAmutations') cohorts = data.table::fread(input = cohorts) co...
# setwd("/Users/chris/Desktop/sb_cofactor_hr/A549") setwd("/home/chris/Bureau/sb_cofactor_hr/A549") source("scripts/ckn_utils.R") source("scripts/load_reddy.R") library(ChIPseeker) # Loading peaks peaks_dir <- "output/chip-pipeline-GRCh38/peak_call/A549_NB" gainNB <- rtracklayer::import(con = file.path(peaks_dir, "NB...
/A549/scripts/chris/NB_balance/analysis2_GainLossNB_ovPOL2.R
no_license
ArnaudDroitLab/sb_cofactor
R
false
false
9,835
r
# setwd("/Users/chris/Desktop/sb_cofactor_hr/A549") setwd("/home/chris/Bureau/sb_cofactor_hr/A549") source("scripts/ckn_utils.R") source("scripts/load_reddy.R") library(ChIPseeker) # Loading peaks peaks_dir <- "output/chip-pipeline-GRCh38/peak_call/A549_NB" gainNB <- rtracklayer::import(con = file.path(peaks_dir, "NB...
#analysis of dataset mtcars using dplyr #filename : dplyr-mtcars.R library(dplyr) ?mtcars #structure of data set str(mtcars) #structure dim(mtcars) #dimensions names(mtcars) ;colnames(mtcars) #column names rownames(mtcars) #rownames summary(mtcars) #summary of dataset #summary activities on mtcars t1= table(mtcars$a...
/dplyr-mtcars.R
no_license
elissabedamatta/analytics-1
R
false
false
1,475
r
#analysis of dataset mtcars using dplyr #filename : dplyr-mtcars.R library(dplyr) ?mtcars #structure of data set str(mtcars) #structure dim(mtcars) #dimensions names(mtcars) ;colnames(mtcars) #column names rownames(mtcars) #rownames summary(mtcars) #summary of dataset #summary activities on mtcars t1= table(mtcars$a...
# defines functions for data cleaning # Toon Roge # takes a vector and caps lowest and highest values cap_vector <- function(x, cap = c(0.02, 0.98)) { if (is.numeric(x)) { q <- quantile(x, cap, na.rm = TRUE) min <- as.numeric(q[1]) max <- as.numeric(q[2]) x <- pmin...
/data_manipulation_functions.R
no_license
toonroge/kaggleBNP
R
false
false
26,227
r
# defines functions for data cleaning # Toon Roge # takes a vector and caps lowest and highest values cap_vector <- function(x, cap = c(0.02, 0.98)) { if (is.numeric(x)) { q <- quantile(x, cap, na.rm = TRUE) min <- as.numeric(q[1]) max <- as.numeric(q[2]) x <- pmin...
#' Generates simulations of expected mortality by simulating the model coefficients. #' #' With the given fit from fit_attrib the function sim, from package arm as described in Gelman, Hill (2012) <doi:10.1017/CBO9780511790942>, is used to generate 500 simulations #' of all the coefficients, from there respective poste...
/R/sim.R
no_license
cran/attrib
R
false
false
5,122
r
#' Generates simulations of expected mortality by simulating the model coefficients. #' #' With the given fit from fit_attrib the function sim, from package arm as described in Gelman, Hill (2012) <doi:10.1017/CBO9780511790942>, is used to generate 500 simulations #' of all the coefficients, from there respective poste...
## Project 1, Exploratory Data Analysis ## Series of scripts to print out plots (plot1.r - plot4.r) ## 10/11/2015 # CLEAN HOUSE rm(list = ls()) for(i in 1:5) gc() options(stringsAsFactors=FALSE) ######## DATA PREP ######## fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption...
/plot4.r
no_license
kimstat/ExData_Plotting1
R
false
false
2,231
r
## Project 1, Exploratory Data Analysis ## Series of scripts to print out plots (plot1.r - plot4.r) ## 10/11/2015 # CLEAN HOUSE rm(list = ls()) for(i in 1:5) gc() options(stringsAsFactors=FALSE) ######## DATA PREP ######## fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption...
library(stringr) #this package is quite useful and it's already install on bear library("ggplot2") #loads ggplot2 # cd - if error change to /Volumes/vianaj-genomics-brain-development/ or /rds/projects/v/vianaj-genomics-brain-development/ #setwd("/Volumes/vianaj-genomics-brain-development/MATRICS/aggression_RRBS/") #se...
/scripts/old/BLB/R_scripts/spikeins_script.R
no_license
jffpviana/aggression_RRBS
R
false
false
4,268
r
library(stringr) #this package is quite useful and it's already install on bear library("ggplot2") #loads ggplot2 # cd - if error change to /Volumes/vianaj-genomics-brain-development/ or /rds/projects/v/vianaj-genomics-brain-development/ #setwd("/Volumes/vianaj-genomics-brain-development/MATRICS/aggression_RRBS/") #se...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/layers_pool.R \name{layer_top_k_pool} \alias{layer_top_k_pool} \title{TopKPool} \usage{ layer_top_k_pool( object, ratio, return_mask = FALSE, sigmoid_gating = FALSE, kernel_initializer = "glorot_uniform", kernel_regularizer = NULL...
/man/layer_top_k_pool.Rd
no_license
rdinnager/rspektral
R
false
true
2,604
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/layers_pool.R \name{layer_top_k_pool} \alias{layer_top_k_pool} \title{TopKPool} \usage{ layer_top_k_pool( object, ratio, return_mask = FALSE, sigmoid_gating = FALSE, kernel_initializer = "glorot_uniform", kernel_regularizer = NULL...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saga_constantgrid.R \name{saga_constantgrid} \alias{saga_constantgrid} \title{QGIS algorithm Constant grid} \usage{ saga_constantgrid( NAME = qgisprocess::qgis_default_value(), CONST = qgisprocess::qgis_default_value(), TYPE = qgisproce...
/man/saga_constantgrid.Rd
permissive
VB6Hobbyst7/r_package_qgis
R
false
true
2,652
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saga_constantgrid.R \name{saga_constantgrid} \alias{saga_constantgrid} \title{QGIS algorithm Constant grid} \usage{ saga_constantgrid( NAME = qgisprocess::qgis_default_value(), CONST = qgisprocess::qgis_default_value(), TYPE = qgisproce...
## SPATIAL library(sp) library(rgeos) library(raster) library(rgdal) library(maptools) library(sf) ## DATA MANAGEMENT library(tidyverse) library(skimr) library(patchwork) library(readxl) # library(zoo) library(lubridate) ## PLOTTING library(scales) library(units) library(viridis) library(extrafont) library(gtable) li...
/code/anc_map.R
no_license
jeremyash/mon_nf
R
false
false
11,697
r
## SPATIAL library(sp) library(rgeos) library(raster) library(rgdal) library(maptools) library(sf) ## DATA MANAGEMENT library(tidyverse) library(skimr) library(patchwork) library(readxl) # library(zoo) library(lubridate) ## PLOTTING library(scales) library(units) library(viridis) library(extrafont) library(gtable) li...
outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character") head(outcome) ncol(outcome) nrow(outcome) names(outcome) outcome[, 11] <- as.numeric(outcome[, 11]) hist(outcome[, 11]) best <- function(state, outcome) { ## Read outcome data data <- read.csv("outcome-of-care-measures....
/2_RProgramming/ProgrammingAssignment3/best.R
no_license
cesarpbn1/Johns_Hopkins_University
R
false
false
1,691
r
outcome <- read.csv("outcome-of-care-measures.csv", colClasses = "character") head(outcome) ncol(outcome) nrow(outcome) names(outcome) outcome[, 11] <- as.numeric(outcome[, 11]) hist(outcome[, 11]) best <- function(state, outcome) { ## Read outcome data data <- read.csv("outcome-of-care-measures....
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584306637799e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
/CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615827325-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584306637799e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_...
## Libraries library(dplyr) library(lubridate) ## Read data consumption <- read.table("./Week1/household_power_consumption.txt", header = TRUE, sep = ";", colClasses = "character", na.strings = "?") consumption <- tbl_df(consumption) ## Tidying data names(consumption) <- as.vector(strsplit(names(consumption)...
/plot4.R
no_license
abuitrago/ExData_Plotting1
R
false
false
1,517
r
## Libraries library(dplyr) library(lubridate) ## Read data consumption <- read.table("./Week1/household_power_consumption.txt", header = TRUE, sep = ";", colClasses = "character", na.strings = "?") consumption <- tbl_df(consumption) ## Tidying data names(consumption) <- as.vector(strsplit(names(consumption)...
###########################################################################/** # @set "class=AffymetrixCelSet" # @RdocMethod extractAffyBatch # @alias extractAffyBatch.ChipEffectSet # @alias extractAffyBatch # # @title "Extracts an in-memory AffyBatch object from the CEL set" # # \description{ # @get "title"....
/R/AffymetrixCelSet.extractAffyBatch.R
no_license
microarray/aroma.affymetrix
R
false
false
4,105
r
###########################################################################/** # @set "class=AffymetrixCelSet" # @RdocMethod extractAffyBatch # @alias extractAffyBatch.ChipEffectSet # @alias extractAffyBatch # # @title "Extracts an in-memory AffyBatch object from the CEL set" # # \description{ # @get "title"....
percentiles <- numeric(10000) for(i in 1:length(percentiles)) { samps <- rnorm(714) percentiles[i] <- quantile(samps, probs = .975) } sd(percentiles)
/Homework 4/quantiles.R
no_license
IlgizMurzakhanov/BDA
R
false
false
153
r
percentiles <- numeric(10000) for(i in 1:length(percentiles)) { samps <- rnorm(714) percentiles[i] <- quantile(samps, probs = .975) } sd(percentiles)
library(RWeka) library(caret) data <- read.csv('../Datasets/training-data-14-tuples.csv') #data <- read.csv(file.choose()) kfolds <- createFolds(data$buys_computer, k = 2) sum = 0 for(i in kfolds){ train <- data[-i,] test <- data[i,] model <- J48(buys_computer~., data = train) prediction <- predict(model, test)...
/R/dt-accuracy-with-cv-k=2.R
no_license
chitholian/Machine-Learning-Lab
R
false
false
467
r
library(RWeka) library(caret) data <- read.csv('../Datasets/training-data-14-tuples.csv') #data <- read.csv(file.choose()) kfolds <- createFolds(data$buys_computer, k = 2) sum = 0 for(i in kfolds){ train <- data[-i,] test <- data[i,] model <- J48(buys_computer~., data = train) prediction <- predict(model, test)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weights.R \name{queen_weights} \alias{queen_weights} \title{Queen Contiguity Spatial Weights} \usage{ queen_weights( sf_obj, order = 1, include_lower_order = FALSE, precision_threshold = 0 ) } \arguments{ \item{sf_obj}{An sf (simple f...
/man/queen_weights.Rd
no_license
whaibao/rgeoda
R
false
true
1,033
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/weights.R \name{queen_weights} \alias{queen_weights} \title{Queen Contiguity Spatial Weights} \usage{ queen_weights( sf_obj, order = 1, include_lower_order = FALSE, precision_threshold = 0 ) } \arguments{ \item{sf_obj}{An sf (simple f...
library(ggmap) library(ggplot2) library(animation) #Create a data frame countryDF<- data.frame(c("united states", "france", "india")) colnames(countryDF) <- "countryname" LatLon <- c(apply(countryDF, 1, geocode)) LatLonDF <- do.call(rbind.data.frame, LatLon) countryLatLonDF <- cbind(countryDF, LatLonDF) countryLatLon...
/inst/examples/map4.R
no_license
COMHIS/estc
R
false
false
1,333
r
library(ggmap) library(ggplot2) library(animation) #Create a data frame countryDF<- data.frame(c("united states", "france", "india")) colnames(countryDF) <- "countryname" LatLon <- c(apply(countryDF, 1, geocode)) LatLonDF <- do.call(rbind.data.frame, LatLon) countryLatLonDF <- cbind(countryDF, LatLonDF) countryLatLon...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HMMutilities.r \name{local_decode} \alias{local_decode} \title{Local decoding of HMM} \usage{ local_decode(object, ddl = NULL, state.names = NULL) } \arguments{ \item{object}{fitted crm model (must be an HMM model)} \item{ddl}{des...
/marked/man/local_decode.Rd
no_license
pconn/marked
R
false
true
990
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HMMutilities.r \name{local_decode} \alias{local_decode} \title{Local decoding of HMM} \usage{ local_decode(object, ddl = NULL, state.names = NULL) } \arguments{ \item{object}{fitted crm model (must be an HMM model)} \item{ddl}{des...
library(plyr) library(dplyr) library(reshape2) ## Load in data if (!file.exists("./data")) { dir.create("./data") } if (!file.exists("./data/UCI HAR Dataset.zip")) { download.file( url="https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", method="curl", ...
/run_analysis.R
no_license
Phippsy/Tidy-Galaxy
R
false
false
3,550
r
library(plyr) library(dplyr) library(reshape2) ## Load in data if (!file.exists("./data")) { dir.create("./data") } if (!file.exists("./data/UCI HAR Dataset.zip")) { download.file( url="https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", method="curl", ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gradientInterpolation.R \name{covGradAtLocs} \alias{covGradAtLocs} \title{Gradient of covariate field} \usage{ covGradAtLocs(locs, cov_list = NULL, grad_fun = NULL) } \arguments{ \item{locs}{Matrix of locations where the gradient should be ev...
/man/covGradAtLocs.Rd
no_license
papayoun/Rhabit
R
false
true
1,023
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gradientInterpolation.R \name{covGradAtLocs} \alias{covGradAtLocs} \title{Gradient of covariate field} \usage{ covGradAtLocs(locs, cov_list = NULL, grad_fun = NULL) } \arguments{ \item{locs}{Matrix of locations where the gradient should be ev...
check.vars(c("uof.all")) title <- "Force by month" ######################################################################################################## ######################################################################################################## uof.for.year <- uof.all %>% filter(year.of.record == CURRE...
/data-analysis/force/time/force-by-month.R
permissive
marvinmarnold/oipm_annual_report_2019
R
false
false
2,117
r
check.vars(c("uof.all")) title <- "Force by month" ######################################################################################################## ######################################################################################################## uof.for.year <- uof.all %>% filter(year.of.record == CURRE...
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # This function wraps your matrix in a structure that allows you to # recover the original matrix, and calculate and cache the inverted matrix. makeCacheMatrix <- function(x = matrix())...
/cachematrix.R
no_license
JoshuaGross/ProgrammingAssignment2
R
false
false
1,040
r
## Put comments here that give an overall description of what your ## functions do ## Write a short comment describing this function # This function wraps your matrix in a structure that allows you to # recover the original matrix, and calculate and cache the inverted matrix. makeCacheMatrix <- function(x = matrix())...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include cloudsearchdomain_service.R NULL #' Retrieves a list of documents that match the specified search criteria #' #' @description #' Retrieves a list of documents that ma...
/cran/paws.analytics/R/cloudsearchdomain_operations.R
permissive
paws-r/paws
R
false
false
24,482
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common get_config new_operation new_request send_request #' @include cloudsearchdomain_service.R NULL #' Retrieves a list of documents that match the specified search criteria #' #' @description #' Retrieves a list of documents that ma...
\name{plot.powerTransform} \Rdversion{1.1} \alias{plot.powerTransform} \title{ plot Method for powerTransform Objects } \description{ This function provides a simple function for plotting data using power transformations. } \usage{ \method{plot}{powerTransform}(x, z = NULL, round = TRUE, plot = pairs, ...) } \argume...
/man/plot.powerTransform.Rd
no_license
jonathon-love/car3
R
false
false
1,609
rd
\name{plot.powerTransform} \Rdversion{1.1} \alias{plot.powerTransform} \title{ plot Method for powerTransform Objects } \description{ This function provides a simple function for plotting data using power transformations. } \usage{ \method{plot}{powerTransform}(x, z = NULL, round = TRUE, plot = pairs, ...) } \argume...
#' Get or set the file path to the CmdStan installation #' #' @description Use the `set_cmdstan_path()` function to tell CmdStanR where the #' CmdStan installation in located. Once the path has been set, #' `cmdstan_path()` will return the full path to the CmdStan installation and #' `cmdstan_version()` will retu...
/R/path.R
permissive
ssp3nc3r/cmdstanr
R
false
false
6,744
r
#' Get or set the file path to the CmdStan installation #' #' @description Use the `set_cmdstan_path()` function to tell CmdStanR where the #' CmdStan installation in located. Once the path has been set, #' `cmdstan_path()` will return the full path to the CmdStan installation and #' `cmdstan_version()` will retu...
## Script: plot.R ## ## This script creates plot #1 in the Course Project 1 of the course Exploratory Data Analysis ## ## Author: Bruno Ascenso ## Date: 12.Sep.2018 ## Read and subset the data power <- read.table("household_power_consumption.txt", sep=";", header = TRUE, stringsAsFactors = FALSE) power$timestamp <- s...
/plot1.R
no_license
bascenso/ExData_Plotting1
R
false
false
704
r
## Script: plot.R ## ## This script creates plot #1 in the Course Project 1 of the course Exploratory Data Analysis ## ## Author: Bruno Ascenso ## Date: 12.Sep.2018 ## Read and subset the data power <- read.table("household_power_consumption.txt", sep=";", header = TRUE, stringsAsFactors = FALSE) power$timestamp <- s...
## define custom functions, call data from the database source("~/workspace/NHL_regression/R3/setup.R") ## clean the data skaterstats <- nhlClean() skaterstats <- merge(skaterstats, skaters[, 3:4]) skaterstats$player_position <- as.factor(skaterstats$player_position) ## subset the data and build test models, then loo...
/R3/pred1_GP.R
permissive
kielejocain/NHL_regression
R
false
false
9,314
r
## define custom functions, call data from the database source("~/workspace/NHL_regression/R3/setup.R") ## clean the data skaterstats <- nhlClean() skaterstats <- merge(skaterstats, skaters[, 3:4]) skaterstats$player_position <- as.factor(skaterstats$player_position) ## subset the data and build test models, then loo...
library(rhdf5) library(Matrix) library(data.table) library(ggplot2) library(RColorBrewer) library(dplyr) today <- format(Sys.Date(), '%y%m%d') ###### # limma results ###### #load differential expression results for mutant vs control file_path <- '~/Documents/Cooperations/Böttcher_IDR/10X_data/analysis/notebooks/table/...
/gut_AB_AL_summary_statistics.R
no_license
sophietr/gut_lineage
R
false
false
36,646
r
library(rhdf5) library(Matrix) library(data.table) library(ggplot2) library(RColorBrewer) library(dplyr) today <- format(Sys.Date(), '%y%m%d') ###### # limma results ###### #load differential expression results for mutant vs control file_path <- '~/Documents/Cooperations/Böttcher_IDR/10X_data/analysis/notebooks/table/...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/8.2-ens.R \docType{methods} \name{buildEnsemble} \alias{buildEnsemble} \alias{buildEnsemble,ExprsModel-method} \alias{buildEnsemble,ExprsPipeline-method} \title{Build Ensemble} \usage{ buildEnsemble(object, ...) \S4method{buildEnsemble}{Expr...
/man/buildEnsemble.Rd
no_license
lqcheng2017/exprso
R
false
true
3,225
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/8.2-ens.R \docType{methods} \name{buildEnsemble} \alias{buildEnsemble} \alias{buildEnsemble,ExprsModel-method} \alias{buildEnsemble,ExprsPipeline-method} \title{Build Ensemble} \usage{ buildEnsemble(object, ...) \S4method{buildEnsemble}{Expr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mia_2.R \name{gmdh.mia_2} \alias{gmdh.mia_2} \title{GMDH MIA auxiliar functions} \usage{ gmdh.mia_2(X, y, prune, x.test, y.test) } \description{ Performs auxiliar tasks to predict.mia } \keyword{internal}
/man/gmdh.mia_2.Rd
no_license
cran/GMDHreg
R
false
true
283
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mia_2.R \name{gmdh.mia_2} \alias{gmdh.mia_2} \title{GMDH MIA auxiliar functions} \usage{ gmdh.mia_2(X, y, prune, x.test, y.test) } \description{ Performs auxiliar tasks to predict.mia } \keyword{internal}
#' Aggregate #' #' Aggregate several Parquet tables as a single one. #' #' @param input.files List of Parquet files. #' @param FUNC Function to apply on each Parquet table. #' @param cols Columns to subset. #' @param file.out Output Parquet filename. #' @return The aggregated Parquet tables as a \code{data.table} if #'...
/R/aggregate.R
no_license
M3SOulu/MozillaApacheDataset-Rpackage
R
false
false
3,718
r
#' Aggregate #' #' Aggregate several Parquet tables as a single one. #' #' @param input.files List of Parquet files. #' @param FUNC Function to apply on each Parquet table. #' @param cols Columns to subset. #' @param file.out Output Parquet filename. #' @return The aggregated Parquet tables as a \code{data.table} if #'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{seedwords} \alias{seedwords} \title{Seed words for Latent Semantci Analysis} \usage{ seedwords(type) } \arguments{ \item{type}{type of seed words currently only for sentiment (\code{sentiment}) or political ideology (\code{ideol...
/man/seedwords.Rd
no_license
daiyamao/LSX
R
false
true
640
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{seedwords} \alias{seedwords} \title{Seed words for Latent Semantci Analysis} \usage{ seedwords(type) } \arguments{ \item{type}{type of seed words currently only for sentiment (\code{sentiment}) or political ideology (\code{ideol...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SigDFMethods.R \name{sdf_read_table} \alias{sdf_read_table} \title{read a table file to SigDF} \usage{ sdf_read_table(fname, platform = NULL, ...) } \arguments{ \item{fname}{file name} \item{platform}{array platform (will infer if not given)...
/man/sdf_read_table.Rd
permissive
a-augustin/sesame
R
false
true
646
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SigDFMethods.R \name{sdf_read_table} \alias{sdf_read_table} \title{read a table file to SigDF} \usage{ sdf_read_table(fname, platform = NULL, ...) } \arguments{ \item{fname}{file name} \item{platform}{array platform (will infer if not given)...
################################### # rm(list=ls(all=TRUE)) ################################## # Generate training and testing data similar to IRIS set.seed(100) numbers1 = rnorm(400) rows1 = 40 columns1 = 10 training = matrix(numbers1, rows1, columns1) ############## set.seed(100) #set.seed(0) numbers2 ...
/cs61/s8/FINAL ROC Curve.R
no_license
taecoding/data
R
false
false
1,384
r
################################### # rm(list=ls(all=TRUE)) ################################## # Generate training and testing data similar to IRIS set.seed(100) numbers1 = rnorm(400) rows1 = 40 columns1 = 10 training = matrix(numbers1, rows1, columns1) ############## set.seed(100) #set.seed(0) numbers2 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cb_taxa_gene.R \name{cb_taxa_gene} \alias{cb_taxa_gene} \title{Concatenate taxa names and gene name to build a search term for entrez_search function} \usage{ cb_taxa_gene(tax, gene) } \arguments{ \item{tax}{a char vector, use c() for multipl...
/man/cb_taxa_gene.Rd
permissive
jurenoult/fishphylo
R
false
true
664
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cb_taxa_gene.R \name{cb_taxa_gene} \alias{cb_taxa_gene} \title{Concatenate taxa names and gene name to build a search term for entrez_search function} \usage{ cb_taxa_gene(tax, gene) } \arguments{ \item{tax}{a char vector, use c() for multipl...
turk4_s1028 <- read.table("turk4_s1028.txt", header=T) names(turk4_s1028) <- c("X1","X2","X3","C1","T1")
/data/turk4_s1028.R
no_license
ewan/dlp
R
false
false
105
r
turk4_s1028 <- read.table("turk4_s1028.txt", header=T) names(turk4_s1028) <- c("X1","X2","X3","C1","T1")
## Test the tiling coefficients. ## if one train is empty, we get NaN. expect_equal( tiling.corr(1:5, double(0)), NaN) context("Tiling coefficent should return 1 for autocorrelated trains.") poisson.train <- function(n=1000, rate=1, beg=0) { ## Generate a Poisson spike train with N spikes and firing rate RATE. #...
/inst/tests/test_tiling.R
no_license
sje30/sjemea
R
false
false
4,146
r
## Test the tiling coefficients. ## if one train is empty, we get NaN. expect_equal( tiling.corr(1:5, double(0)), NaN) context("Tiling coefficent should return 1 for autocorrelated trains.") poisson.train <- function(n=1000, rate=1, beg=0) { ## Generate a Poisson spike train with N spikes and firing rate RATE. #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_plots.R \name{plot_timeline} \alias{plot_timeline} \title{Plot timeline as Gantt Plot} \usage{ plot_timeline( event, start, end = start + 1, label = NA, group = NA, title = "Curriculum Vitae Timeline", subtitle = "Bernardo...
/man/plot_timeline.Rd
no_license
laresbernardo/lares
R
false
true
3,083
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/other_plots.R \name{plot_timeline} \alias{plot_timeline} \title{Plot timeline as Gantt Plot} \usage{ plot_timeline( event, start, end = start + 1, label = NA, group = NA, title = "Curriculum Vitae Timeline", subtitle = "Bernardo...
# This file contains the functionality that wraps API archivefile services #' Get a list of files for a given location code and device category code, and #' filtered by others optional parameters. #' @keywords internal #' #' @param self Calling object #' @param filters (named list) describe the data origin #' @p...
/R/onc_archive.R
permissive
OceanNetworksCanada/api-r-client
R
false
false
9,719
r
# This file contains the functionality that wraps API archivefile services #' Get a list of files for a given location code and device category code, and #' filtered by others optional parameters. #' @keywords internal #' #' @param self Calling object #' @param filters (named list) describe the data origin #' @p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/days_in_yyyymm.R \name{days_in_yyyymm} \alias{days_in_yyyymm} \title{Return the number of days in a given month} \usage{ days_in_yyyymm(yyyymm) } \arguments{ \item{yyyymm}{Year/month in YYYYMM format} } \value{ number of days in month } \desc...
/wsim.lsm/man/days_in_yyyymm.Rd
permissive
isciences/wsim
R
false
true
374
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/days_in_yyyymm.R \name{days_in_yyyymm} \alias{days_in_yyyymm} \title{Return the number of days in a given month} \usage{ days_in_yyyymm(yyyymm) } \arguments{ \item{yyyymm}{Year/month in YYYYMM format} } \value{ number of days in month } \desc...
#'Calculate trend correlations based on mvgam latent factor loadings #' #'This function uses samples of latent trends for each series from a fitted #'mvgam model to calculates correlations among series' trends #' #'@importFrom stats cov2cor cov #'@param object \code{list} object returned from \code{mvgam} #'@return A \...
/R/lv_correlations.R
permissive
nicholasjclark/mvgam
R
false
false
2,236
r
#'Calculate trend correlations based on mvgam latent factor loadings #' #'This function uses samples of latent trends for each series from a fitted #'mvgam model to calculates correlations among series' trends #' #'@importFrom stats cov2cor cov #'@param object \code{list} object returned from \code{mvgam} #'@return A \...
# read the dataset monsterdata <- read.csv("household_power_consumption.txt", header = T, sep = ";", na.strings = "?", stringsAsFactors = F) # format the dates monsterdata$Date <- as.Date(monsterdata$Date, "%d/%m/%Y") # select the data required data <- monsterdata[monsterdata$Date >= "2007-02-01" &...
/plot1.R
no_license
sequeiraneil/EDA
R
false
false
724
r
# read the dataset monsterdata <- read.csv("household_power_consumption.txt", header = T, sep = ";", na.strings = "?", stringsAsFactors = F) # format the dates monsterdata$Date <- as.Date(monsterdata$Date, "%d/%m/%Y") # select the data required data <- monsterdata[monsterdata$Date >= "2007-02-01" &...
#' A sample dataset for demostration purposes. #' #' @details #' A data frame containing unreal sample data for demostration purposes only. It also serves as an example for a template of how user collected data should look. #' Use this dataset to learn about the functions on this package. #' #' @format Data frame with ...
/R/data_sample.R
permissive
CFPC-performance/matuR
R
false
false
1,564
r
#' A sample dataset for demostration purposes. #' #' @details #' A data frame containing unreal sample data for demostration purposes only. It also serves as an example for a template of how user collected data should look. #' Use this dataset to learn about the functions on this package. #' #' @format Data frame with ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/swan_reports.R \name{ann_rep_grp2_s} \alias{ann_rep_grp2_s} \title{Function for annual Swan River report plots and tables for group 2 metrics} \usage{ ann_rep_grp2_s(outpath, data, surface) } \arguments{ \item{outpath}{filepath to desired exp...
/man/ann_rep_grp2_s.Rd
permissive
dbca-wa/rivRmon
R
false
true
1,354
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/swan_reports.R \name{ann_rep_grp2_s} \alias{ann_rep_grp2_s} \title{Function for annual Swan River report plots and tables for group 2 metrics} \usage{ ann_rep_grp2_s(outpath, data, surface) } \arguments{ \item{outpath}{filepath to desired exp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drop_delta.R \name{drop_delta} \alias{drop_delta} \title{Get a list of Deltas} \usage{ drop_delta(cursor = NULL, locale = NULL, path_prefix = NULL, include_media_info = NULL, dtoken = get_dropbox_token()) } \arguments{ \item{cursor}{The las...
/man/drop_delta.Rd
no_license
scheidec/rdrop2
R
false
true
1,336
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/drop_delta.R \name{drop_delta} \alias{drop_delta} \title{Get a list of Deltas} \usage{ drop_delta(cursor = NULL, locale = NULL, path_prefix = NULL, include_media_info = NULL, dtoken = get_dropbox_token()) } \arguments{ \item{cursor}{The las...
#FIGURE OUT IF THE CIRCLES ARE 1 STANDARD DEV #DO SOMETHING WITH THE TRUE LABELS #MAKE SURE DATA.KEEP SPECIFIES IT IS AFTER NORMALIZATION #MAKE SURE IT'S POSITIVE DEF AND SYMMETRIC #if variance parameter is provided we need to check some things to make sure it's valid #CAN ONLY INITIALIZE ALL THE CLUSTERS TO T...
/testing/script_test_em_gaussian.R
no_license
linnykos/SML_package
R
false
false
4,329
r
#FIGURE OUT IF THE CIRCLES ARE 1 STANDARD DEV #DO SOMETHING WITH THE TRUE LABELS #MAKE SURE DATA.KEEP SPECIFIES IT IS AFTER NORMALIZATION #MAKE SURE IT'S POSITIVE DEF AND SYMMETRIC #if variance parameter is provided we need to check some things to make sure it's valid #CAN ONLY INITIALIZE ALL THE CLUSTERS TO T...
# 0. Getting the data > setwd("C:/Users/Smilla") > url<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" > download.file(url,destfile="data.zip") > unzip("data.zip") > setwd("C:/Users/Smilla/UCI HAR Dataset") > trainfile<-list.files("train,full.names=TRUE")[-1] > trainf...
/run_analysis.R
no_license
SmillaTx/GettingAndCleaningData
R
false
false
1,736
r
# 0. Getting the data > setwd("C:/Users/Smilla") > url<-"https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip" > download.file(url,destfile="data.zip") > unzip("data.zip") > setwd("C:/Users/Smilla/UCI HAR Dataset") > trainfile<-list.files("train,full.names=TRUE")[-1] > trainf...
# Produce plot of data and quantiles for electricity example # To save passing large objects as arguments, this treats DT and qdemand # as global variables # Arguments: # id - the smartmetre id to plot # showquantiles - which quantiles to plot. By default, it plots the deciles qdemandplot <- function(id, showqua...
/data/functions.R
no_license
faheemja/ftsviz
R
false
false
17,940
r
# Produce plot of data and quantiles for electricity example # To save passing large objects as arguments, this treats DT and qdemand # as global variables # Arguments: # id - the smartmetre id to plot # showquantiles - which quantiles to plot. By default, it plots the deciles qdemandplot <- function(id, showqua...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{ggld} \alias{ggld} \title{ggld} \usage{ ggld(data, summ) } \arguments{ \item{data}{object of class SnpMatrix from which LD will be calculated} \item{summ}{data.frame generated by \code{\link{guess.summ}()}} } \value{ ggplot outp...
/man/ggld.Rd
no_license
jinshaw16/GUESSFM
R
false
true
787
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{ggld} \alias{ggld} \title{ggld} \usage{ ggld(data, summ) } \arguments{ \item{data}{object of class SnpMatrix from which LD will be calculated} \item{summ}{data.frame generated by \code{\link{guess.summ}()}} } \value{ ggplot outp...
## The functions in this file invert a matrix and cache the ## inverse for later use. These are part of Assignment 2 for ## Dr. Roger Peng's Coursera on R. ## makeCacheMatrix takes in an invertible matrix X, calculates ## the inverse, and caches it. That cached matrix inverse can ## then be summoned using the cacheSol...
/cachematrix.R
no_license
macpoly/ProgrammingAssignment2
R
false
false
1,205
r
## The functions in this file invert a matrix and cache the ## inverse for later use. These are part of Assignment 2 for ## Dr. Roger Peng's Coursera on R. ## makeCacheMatrix takes in an invertible matrix X, calculates ## the inverse, and caches it. That cached matrix inverse can ## then be summoned using the cacheSol...
#this function converts fahrenheit to kelvin fahrenheit_2_kelv <- function(temp_F) { temp_K <- ((temp_F - 32) * (5 / 9)) + 273.15 return(temp_K) } #here I edit I have nothing ironic to say.
/Newfile.R
no_license
irochehurley/Hello_world
R
false
false
200
r
#this function converts fahrenheit to kelvin fahrenheit_2_kelv <- function(temp_F) { temp_K <- ((temp_F - 32) * (5 / 9)) + 273.15 return(temp_K) } #here I edit I have nothing ironic to say.
################################################################################ # Shiny module wordcloud # # Author: Simone Coscetti # Created: 2021-05-25 ################################################################################ # Module constants -------------------------------------------------------- #...
/modules/mod_wordcloud.R
no_license
coscetti/brazilian-ecommerce
R
false
false
2,257
r
################################################################################ # Shiny module wordcloud # # Author: Simone Coscetti # Created: 2021-05-25 ################################################################################ # Module constants -------------------------------------------------------- #...
<<<<<<< HEAD get_TL_links <- function(fw){ phy <- read_csv("../../Data/PHYLACINE_1.2/Data/Traits/Trait_data.csv", col_types = cols()) %>% transmute(Mass.g, Binomial.1.2, `Meat eater` = Diet.Vertebrate > 0) species <- append(fw$Predator, fw$Prey) %>% unique() TL <- trophic_levels(species) if(cl...
/Code/R/get_TL_links.R
no_license
emilio-berti/rewiring-rewilding
R
false
false
2,697
r
<<<<<<< HEAD get_TL_links <- function(fw){ phy <- read_csv("../../Data/PHYLACINE_1.2/Data/Traits/Trait_data.csv", col_types = cols()) %>% transmute(Mass.g, Binomial.1.2, `Meat eater` = Diet.Vertebrate > 0) species <- append(fw$Predator, fw$Prey) %>% unique() TL <- trophic_levels(species) if(cl...
## 텍스트 데이터 분석 # 1) text mining 패키지 불러오기 library(tm) # 2) Crude 데이터 불러오기 data("crude") tdm <- TermDocumentMatrix(crude) tdm # 3) 단어 탐색 inspect(tdm) # 4) 10회 이상 존재하는 단어만 출력 findFreqTerms(tdm,lowfreq=10) # 5) oil 단어와 관련 높은 단어 출력 findAssocs(tdm,"oil",0.7) # 6) 단어빈도 막대 그래프 freq <- sort(rowSums(as.matrix(tdm)), decre...
/lession7/text_mining_basic.R
no_license
chunam76/RStudy
R
false
false
613
r
## 텍스트 데이터 분석 # 1) text mining 패키지 불러오기 library(tm) # 2) Crude 데이터 불러오기 data("crude") tdm <- TermDocumentMatrix(crude) tdm # 3) 단어 탐색 inspect(tdm) # 4) 10회 이상 존재하는 단어만 출력 findFreqTerms(tdm,lowfreq=10) # 5) oil 단어와 관련 높은 단어 출력 findAssocs(tdm,"oil",0.7) # 6) 단어빈도 막대 그래프 freq <- sort(rowSums(as.matrix(tdm)), decre...
source("load_data.R") png(filename = "plot4.png", width = 480, height = 480) par(mfrow = c(2, 2)) # top left plot(two_day_data$DateTime, two_day_data$Global_active_power, type = "l", xlab = "", ylab = "Global Active Power") # top right plot(two_day_data$DateTime, two_day_data$Voltage, type = "l", xlab = "d...
/plot4.R
no_license
ychua9/ExData_Plotting1
R
false
false
954
r
source("load_data.R") png(filename = "plot4.png", width = 480, height = 480) par(mfrow = c(2, 2)) # top left plot(two_day_data$DateTime, two_day_data$Global_active_power, type = "l", xlab = "", ylab = "Global Active Power") # top right plot(two_day_data$DateTime, two_day_data$Voltage, type = "l", xlab = "d...
# ---------------------------------------------------Downloading and Installing Libraries --------------------------------------------------- install.packages("ff") install.packages("sqldf") install.packages("rpart") install.packages("Amelia") install.packages("class") install.packages("caret...
/outbrains_final _v4-0.R
no_license
sunnyanand17/Machine-Learning
R
false
false
25,075
r
# ---------------------------------------------------Downloading and Installing Libraries --------------------------------------------------- install.packages("ff") install.packages("sqldf") install.packages("rpart") install.packages("Amelia") install.packages("class") install.packages("caret...
# DSAnalysis.R library(SplicingCompass); library(DEXSeq); library(limma) setwd("/path_to_DS_scenario/sim_i/") conditions<-factor(c(rep("Normal",4),rep("Tumor",4)),levels=c("Normal","Tumor")) expInf<-new("ExperimentInfo") expInf<-setDescription(expInf,"NormalVsTumor") expInf<-setGroupInfo(expInf, groupName1="Normal", sa...
/SoftwareCodes/R_scripts/DSAnalysis.R
no_license
gamerino/benchmarkingDiffExprAndSpl
R
false
false
10,155
r
# DSAnalysis.R library(SplicingCompass); library(DEXSeq); library(limma) setwd("/path_to_DS_scenario/sim_i/") conditions<-factor(c(rep("Normal",4),rep("Tumor",4)),levels=c("Normal","Tumor")) expInf<-new("ExperimentInfo") expInf<-setDescription(expInf,"NormalVsTumor") expInf<-setGroupInfo(expInf, groupName1="Normal", sa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{replicate_summary_plot} \alias{replicate_summary_plot} \title{Plots a summary of deletion analysis replicates.} \usage{ replicate_summary_plot(del_result, outlier_threshold = NA) } \arguments{ \item{del_result}{Result from a cal...
/man/replicate_summary_plot.Rd
no_license
cran/rgenie
R
false
true
800
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plots.R \name{replicate_summary_plot} \alias{replicate_summary_plot} \title{Plots a summary of deletion analysis replicates.} \usage{ replicate_summary_plot(del_result, outlier_threshold = NA) } \arguments{ \item{del_result}{Result from a cal...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Tools.R \name{cybrowserHide} \alias{cybrowserHide} \title{Cybrowser Hide} \usage{ cybrowserHide(id = NULL, base.url = .defaultBaseUrl) } \arguments{ \item{id}{(optional) The identifier for the browser window to hide} \item{base.url}{(optiona...
/man/cybrowserHide.Rd
permissive
cytoscape/RCy3
R
false
true
746
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Tools.R \name{cybrowserHide} \alias{cybrowserHide} \title{Cybrowser Hide} \usage{ cybrowserHide(id = NULL, base.url = .defaultBaseUrl) } \arguments{ \item{id}{(optional) The identifier for the browser window to hide} \item{base.url}{(optiona...
Create_Household_Power_DataFrame <- function(HP_file = "household_power_consumption.txt") { ## This reads the household_power_comsumption file and converts the columns to the appropriate data types. ## The date and time values are converted to a time variable and the file is filtered to those data ## between 2007-02...
/plot3.R
no_license
jeremymberg/ExData_Plotting1
R
false
false
2,961
r
Create_Household_Power_DataFrame <- function(HP_file = "household_power_consumption.txt") { ## This reads the household_power_comsumption file and converts the columns to the appropriate data types. ## The date and time values are converted to a time variable and the file is filtered to those data ## between 2007-02...