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
#### Rud.Is Challenge #2 # https://github.com/52vis/2016-14 # https://rud.is/b/2016/04/06/52vis-week-2-2016-week-14-honing-in-on-the-homeless/ ## ````````````````````````````````````````````` ## Load Libraries #### # only install if not already done # http://stackoverflow.com/questions/4090169/elegant-way-to-check-fo...
/pattern/scripts/v1.R
no_license
52vis/2016-14
R
false
false
4,708
r
#### Rud.Is Challenge #2 # https://github.com/52vis/2016-14 # https://rud.is/b/2016/04/06/52vis-week-2-2016-week-14-honing-in-on-the-homeless/ ## ````````````````````````````````````````````` ## Load Libraries #### # only install if not already done # http://stackoverflow.com/questions/4090169/elegant-way-to-check-fo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sumCountsAcrossCells.R \name{sumCountsAcrossCells} \alias{sumCountsAcrossCells} \title{Sum counts across a set of cells} \usage{ sumCountsAcrossCells(object, ids, exprs_values = "counts", BPPARAM = SerialParam()) } \arguments{ \item{object}...
/man/sumCountsAcrossCells.Rd
no_license
mimi3421/scater
R
false
true
2,029
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sumCountsAcrossCells.R \name{sumCountsAcrossCells} \alias{sumCountsAcrossCells} \title{Sum counts across a set of cells} \usage{ sumCountsAcrossCells(object, ids, exprs_values = "counts", BPPARAM = SerialParam()) } \arguments{ \item{object}...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BoxCox.R \name{step_BoxCox} \alias{step_BoxCox} \title{Box-Cox Transformation for Non-Negative Data} \usage{ step_BoxCox(recipe, ..., role = NA, trained = FALSE, lambdas = NULL, limits = c(-5, 5), nunique = 5) } \arguments{ \item{recipe}{A ...
/man/step_BoxCox.Rd
no_license
lionel-/recipes
R
false
true
2,815
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/BoxCox.R \name{step_BoxCox} \alias{step_BoxCox} \title{Box-Cox Transformation for Non-Negative Data} \usage{ step_BoxCox(recipe, ..., role = NA, trained = FALSE, lambdas = NULL, limits = c(-5, 5), nunique = 5) } \arguments{ \item{recipe}{A ...
#' Computes the Call Price #' #' Pricing function to apply to each scenario in order to generate the P&L distribution, as described #' A. Meucci, "Personalized Risk Management: Historical Scenarios with Fully Flexible Probabilities" #' GARP Risk Professional, Dec 2010, p 47-51 #' #' @param P matrix of prices #...
/demo/FullFlexProbs.R
no_license
runiaruni/Meucci
R
false
false
4,273
r
#' Computes the Call Price #' #' Pricing function to apply to each scenario in order to generate the P&L distribution, as described #' A. Meucci, "Personalized Risk Management: Historical Scenarios with Fully Flexible Probabilities" #' GARP Risk Professional, Dec 2010, p 47-51 #' #' @param P matrix of prices #...
library(testthat) context("simple neural network execution with nnet") library(parsnip) library(nnet) ################################################################### num_pred <- names(iris)[1:4] iris_nnet <- mlp(mode = "classification", hidden_units = 2) ctrl <- fit_control(verbosity = 1, catch = FALSE) caught...
/tests/testthat/test_mlp_nnet.R
no_license
ledell/parsnip
R
false
false
3,285
r
library(testthat) context("simple neural network execution with nnet") library(parsnip) library(nnet) ################################################################### num_pred <- names(iris)[1:4] iris_nnet <- mlp(mode = "classification", hidden_units = 2) ctrl <- fit_control(verbosity = 1, catch = FALSE) caught...
y <- read.csv('./Aex_ac_hist_1103.txt', header=FALSE)$V1 y <- y/sum(y) x <- seq(-.19,1.19,.02) c <- c(.14189, .31037, .52897) w <- c(.0948, .20806, .38386) A <- c(.00293, .00815, .00868) o <- 1.7167e-4 f <- function(x, c, A, w) return(A/w/sqrt(pi/2)*exp(-2*((x-c)/w)^2)) xx <- seq(-.2, 1.18, .001) peak.1 <- f(xx, c[1...
/TIRF_EA_hist/3/A_y_hist.r
no_license
psichen/affinity-of-Skp-to-OmpC
R
false
false
950
r
y <- read.csv('./Aex_ac_hist_1103.txt', header=FALSE)$V1 y <- y/sum(y) x <- seq(-.19,1.19,.02) c <- c(.14189, .31037, .52897) w <- c(.0948, .20806, .38386) A <- c(.00293, .00815, .00868) o <- 1.7167e-4 f <- function(x, c, A, w) return(A/w/sqrt(pi/2)*exp(-2*((x-c)/w)^2)) xx <- seq(-.2, 1.18, .001) peak.1 <- f(xx, c[1...
#=====================================================================# #====== CONFIDENCE INTERVALS & DIFFERENCES IN MEANS/PROPORTIONS ======# #=====================================================================# # Author: Jonah Gabry (jsg2201@columbia.edu) # Written using R version 3.1.1 on Mac OS X 10.9.3 # S...
/Code/Quantitative Analytic Techniques/03_Inference.R
permissive
anhnguyendepocen/QMSS_in_R
R
false
false
5,139
r
#=====================================================================# #====== CONFIDENCE INTERVALS & DIFFERENCES IN MEANS/PROPORTIONS ======# #=====================================================================# # Author: Jonah Gabry (jsg2201@columbia.edu) # Written using R version 3.1.1 on Mac OS X 10.9.3 # S...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 514 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 514 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/que...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query09_query15_1344n/query09_query15_1344n.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
704
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 514 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 514 c c Input Parameter (command line, file): c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/que...
# Example of using STM to perform topic modelling # Load Libraries library(stm) library(stringr) # Read in data data <- read.csv("data.csv", sep="^", quote="") # Read in stopwords stopwords <- read.csv("all_stopwords.txt",header=F) stopwords[] <- lapply(stopwords,as.character) stopwords <- stopwords$V1 # Process met...
/stm_example.R
no_license
angshenting/stm-example
R
false
false
3,088
r
# Example of using STM to perform topic modelling # Load Libraries library(stm) library(stringr) # Read in data data <- read.csv("data.csv", sep="^", quote="") # Read in stopwords stopwords <- read.csv("all_stopwords.txt",header=F) stopwords[] <- lapply(stopwords,as.character) stopwords <- stopwords$V1 # Process met...
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the following e...
/BEMTOOL-ver2.5-2018_0901/bmtgui/economic_params/price/price_elast_MW/price_elast_MW.add_columns.r
no_license
gresci/BEMTOOL2.5
R
false
false
1,768
r
# BEMTOOL - Bio-Economic Model TOOLs - version 2.5 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the following e...
plot.marssMLE <- function(x, plot.type = c("fitted.ytT", "xtT", "model.resids", "state.resids", "qqplot.model.resids", "qqplot.state.resids"), form = c("marxss", "marss", "dfa"), conf.int = TRUE, conf.level = 0.95, decorate = TRUE, plot.par = list(), ...) { # Argum...
/R/plot.marssMLE.R
permissive
abaudelle/MARSS
R
false
false
12,621
r
plot.marssMLE <- function(x, plot.type = c("fitted.ytT", "xtT", "model.resids", "state.resids", "qqplot.model.resids", "qqplot.state.resids"), form = c("marxss", "marss", "dfa"), conf.int = TRUE, conf.level = 0.95, decorate = TRUE, plot.par = list(), ...) { # Argum...
#' Title Cross-validation for evaluating the performance of subgrouping using win-ratio based value function #' #' @param params the list of parameters for xgboost #' @param data the data of predictors #' @param label treatment label of subjects #' @param comp.ind The vector of comparision results #' @param nroun...
/R/my.xgb.cv.R
permissive
rosyluo/SubgroupBoost
R
false
false
10,294
r
#' Title Cross-validation for evaluating the performance of subgrouping using win-ratio based value function #' #' @param params the list of parameters for xgboost #' @param data the data of predictors #' @param label treatment label of subjects #' @param comp.ind The vector of comparision results #' @param nroun...
voroniRain <- function(start.date, end.date, daily = TRUE, plotVoroni = FALSE, fid = c("D:/Data/AHPC/climate_Daily/dlydatabase.rds","D:/Data/AHPC/climate_Hourly/hrldatabase.rds"){ #Input Require #start.date a charac...
/MetData/voroniDailyRain.R
no_license
gavanmcgrath/Teagasc
R
false
false
3,223
r
voroniRain <- function(start.date, end.date, daily = TRUE, plotVoroni = FALSE, fid = c("D:/Data/AHPC/climate_Daily/dlydatabase.rds","D:/Data/AHPC/climate_Hourly/hrldatabase.rds"){ #Input Require #start.date a charac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ecs_operations.R \name{ecs_stop_task} \alias{ecs_stop_task} \title{Stops a running task} \usage{ ecs_stop_task(cluster, task, reason) } \arguments{ \item{cluster}{The short name or full Amazon Resource Name (ARN) of the cluster that hosts the...
/cran/paws.compute/man/ecs_stop_task.Rd
permissive
peoplecure/paws
R
false
true
1,844
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ecs_operations.R \name{ecs_stop_task} \alias{ecs_stop_task} \title{Stops a running task} \usage{ ecs_stop_task(cluster, task, reason) } \arguments{ \item{cluster}{The short name or full Amazon Resource Name (ARN) of the cluster that hosts the...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regression_ols.R \name{regr_ols} \alias{regr_ols} \title{OLS Regression} \usage{ regr_ols() } \value{ A linear regression model for continuous outcomes, with class 'learner'. } \description{ OLS Regression }
/man/regr_ols.Rd
no_license
adviksh/learners
R
false
true
286
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regression_ols.R \name{regr_ols} \alias{regr_ols} \title{OLS Regression} \usage{ regr_ols() } \value{ A linear regression model for continuous outcomes, with class 'learner'. } \description{ OLS Regression }
#!/bin/R ### Map QTLs 1 of 3 library('qtl') ################################################################################ ## read in the QTL cross ################################################################################ i <- commandArgs(TRUE)[commandArgs(TRUE) %in% c(1:24)] print(i) mpath <- '/home/jmille...
/MAP/backup/elr_map.R
no_license
jthmiller/QTL_agri
R
false
false
1,462
r
#!/bin/R ### Map QTLs 1 of 3 library('qtl') ################################################################################ ## read in the QTL cross ################################################################################ i <- commandArgs(TRUE)[commandArgs(TRUE) %in% c(1:24)] print(i) mpath <- '/home/jmille...
library(abd) ### Name: Sparrows ### Title: Lifetime Reproductive Success in House Sparrows ### Aliases: Sparrows ### Keywords: datasets ### ** Examples Sparrows
/data/genthat_extracted_code/abd/examples/Sparrows.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
168
r
library(abd) ### Name: Sparrows ### Title: Lifetime Reproductive Success in House Sparrows ### Aliases: Sparrows ### Keywords: datasets ### ** Examples Sparrows
library(splitstackshape) all.data<-read.csv("weeklynflstats.csv")[,-1] #dim: 5258 x 13 all.data$id<-as.numeric(rownames(all.data)) all.data$season<-as.factor(all.data$season) all.data$week<-as.factor(all.data$week) table(all.data$season,all.data$week) #min: 22, max: 30 margin.table(table(all.data$season,all.data$week)...
/splitting.R
no_license
justingomez/Writing-Project
R
false
false
1,323
r
library(splitstackshape) all.data<-read.csv("weeklynflstats.csv")[,-1] #dim: 5258 x 13 all.data$id<-as.numeric(rownames(all.data)) all.data$season<-as.factor(all.data$season) all.data$week<-as.factor(all.data$week) table(all.data$season,all.data$week) #min: 22, max: 30 margin.table(table(all.data$season,all.data$week)...
#' Test of Restrictions on FCVAR Model #' #' \code{FCVARhypoTest} performs a likelihood ratio test of the null #' hypothesis: "model is \code{modelR}" against the alternative hypothesis: #' "model is \code{modelUNR}". #' #' @param modelUNR A list of estimation results created for the unrestricted model. #' @param m...
/R/FCVAR_post.R
no_license
LeeMorinUCF/FCVAR
R
false
false
37,959
r
#' Test of Restrictions on FCVAR Model #' #' \code{FCVARhypoTest} performs a likelihood ratio test of the null #' hypothesis: "model is \code{modelR}" against the alternative hypothesis: #' "model is \code{modelUNR}". #' #' @param modelUNR A list of estimation results created for the unrestricted model. #' @param m...
library(glmnet) mydata = read.table("./TrainingSet/RF/NSCLC.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.55,family="gaussian",standardize=FALSE) sink('./Model/EN/Classifier/NSCLC/NSCLC_064.txt',append=TRUE) p...
/Model/EN/Classifier/NSCLC/NSCLC_064.R
no_license
leon1003/QSMART
R
false
false
348
r
library(glmnet) mydata = read.table("./TrainingSet/RF/NSCLC.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.55,family="gaussian",standardize=FALSE) sink('./Model/EN/Classifier/NSCLC/NSCLC_064.txt',append=TRUE) p...
library(tidyverse) library(lubridate) library(rstan) library(shinystan) #df2 = read_csv('~/gp/discourse_westbrook/westbrook.csv') df0 = read_csv('~/gp/shots.csv', col_types = cols(.default = "?", GAME_CLOCK = "c")) df = df0 %>% select(time = GAME_CLOCK, period = PERIOD, result = SHOT_RESULT, name = NAME, pts_type = ...
/westbrook.R
no_license
bbbales2/gp
R
false
false
3,333
r
library(tidyverse) library(lubridate) library(rstan) library(shinystan) #df2 = read_csv('~/gp/discourse_westbrook/westbrook.csv') df0 = read_csv('~/gp/shots.csv', col_types = cols(.default = "?", GAME_CLOCK = "c")) df = df0 %>% select(time = GAME_CLOCK, period = PERIOD, result = SHOT_RESULT, name = NAME, pts_type = ...
# argsto_cmd --- print arguments up to a delimiter subroutine argsto_cmd integer i, count, back_no, nd, st integer getarg, ctoi pointer ptr pointer access_arg character delim (MAXARG), arg (10) character lscmpk if (getarg (1, delim, MAXARG) == EOF) call error ("Usage: argsto <delim> [<c...
/swt/src/lib/sh/src/intcmd.u/argsto_cmd.r
no_license
arnoldrobbins/gt-swt
R
false
false
1,008
r
# argsto_cmd --- print arguments up to a delimiter subroutine argsto_cmd integer i, count, back_no, nd, st integer getarg, ctoi pointer ptr pointer access_arg character delim (MAXARG), arg (10) character lscmpk if (getarg (1, delim, MAXARG) == EOF) call error ("Usage: argsto <delim> [<c...
## Import the necessary libraries library(ggplot2) library(RColorBrewer) library(plyr) library(dplyr) ## Read the datasets NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ## Plotting the graph vehicles1 <- unique(grep("Vehicles", SCC$EI.Sector, ignore.case = TRUE, value = TRUE))...
/Week4_Course4/Plot5.R
no_license
khushaliverma27/datasciencecoursera
R
false
false
876
r
## Import the necessary libraries library(ggplot2) library(RColorBrewer) library(plyr) library(dplyr) ## Read the datasets NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") ## Plotting the graph vehicles1 <- unique(grep("Vehicles", SCC$EI.Sector, ignore.case = TRUE, value = TRUE))...
-##This function is function for written for week 3 assignment, its called makeCacheMatrix gets a matrix as an input, set the value of the matrix, -#get the value of the matrix, set the inverse Matrix and get the inverse Matrix. The matrix object -#can cache its own object. - -#<<- operator is used to assign a val...
/CacheMatrix.R
no_license
Pooyafarah/datasciencecoursera
R
false
false
2,617
r
-##This function is function for written for week 3 assignment, its called makeCacheMatrix gets a matrix as an input, set the value of the matrix, -#get the value of the matrix, set the inverse Matrix and get the inverse Matrix. The matrix object -#can cache its own object. - -#<<- operator is used to assign a val...
library(nloptr) library(modelsummary) #4 set.seed(100) N <-100000 K <-10 sigma <- 0.5 X<-matrix(rnorm(N*K,mean = 0,sd=sigma),N,K) X[,1] <- 1 eps <- rnorm(N,mean=0,sd=sigma) beta <- matrix(c(1.5 ,-1 ,-0.25 ,0.75 ,3.5 ,-2 ,0.5 ,1 ,1.25,2),K,1) Y <- X%*%beta+eps #5 beta_OLS <- solve(t(X)%*%X)%*%(t(X)%*%Y) beta_OLS ...
/ProblemSets/PS8/PS8_Khademorezaian.R
permissive
town0041/DScourseS21
R
false
false
2,489
r
library(nloptr) library(modelsummary) #4 set.seed(100) N <-100000 K <-10 sigma <- 0.5 X<-matrix(rnorm(N*K,mean = 0,sd=sigma),N,K) X[,1] <- 1 eps <- rnorm(N,mean=0,sd=sigma) beta <- matrix(c(1.5 ,-1 ,-0.25 ,0.75 ,3.5 ,-2 ,0.5 ,1 ,1.25,2),K,1) Y <- X%*%beta+eps #5 beta_OLS <- solve(t(X)%*%X)%*%(t(X)%*%Y) beta_OLS ...
# ------------------------------------------------------------------------------ # Book: MVA # ------------------------------------------------------------------------------ # Quantlet: MVApcabankr # ------------------------------------------------------------------------------ # Description: MVApcabankr p...
/PCA_D/MVApcabankr.R
no_license
QuantLet/tu_dresden_mva2
R
false
false
3,415
r
# ------------------------------------------------------------------------------ # Book: MVA # ------------------------------------------------------------------------------ # Quantlet: MVApcabankr # ------------------------------------------------------------------------------ # Description: MVApcabankr p...
# tHis is my first script
/varuntest.R
no_license
varungp/introtobda
R
false
false
25
r
# tHis is my first script
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transparent_colors.R \name{transparent.colors} \alias{transparent.colors} \title{Function to provide the color code of a transparent color} \usage{ transparent.colors(front_color, back_color=NA, front_alpha, back_alpha=NA,w...
/man/transparent.colors.Rd
no_license
jacobmaugoust/ULT
R
false
true
6,065
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/transparent_colors.R \name{transparent.colors} \alias{transparent.colors} \title{Function to provide the color code of a transparent color} \usage{ transparent.colors(front_color, back_color=NA, front_alpha, back_alpha=NA,w...
\docType{data} \name{traits_eco} \alias{traits_eco} \title{Set of functional traits to be retrieved by Ecoflora.} \format{The format is: a list of the following 17 elements, where each element is a pair of the form "traits":"code used in Ecoflora HTML code":\describe{ \item{height_max }{: num 3.05} \item{height_min }...
/man/traits_eco.Rd
no_license
GioBo/TR8
R
false
false
1,598
rd
\docType{data} \name{traits_eco} \alias{traits_eco} \title{Set of functional traits to be retrieved by Ecoflora.} \format{The format is: a list of the following 17 elements, where each element is a pair of the form "traits":"code used in Ecoflora HTML code":\describe{ \item{height_max }{: num 3.05} \item{height_min }...
# load libs library(tidyverse) library(rvest) # get the section of the url that we need for as many cups as we want -- here I use the last five wc <- c("brazil2014","southafrica2010","germany2006","koreajapan2002","france1998") # function to get all columns get_results <- function(wc) { url <- paste0("https://www.fif...
/get_results.R
no_license
joemgon/worldcup2018
R
false
false
9,105
r
# load libs library(tidyverse) library(rvest) # get the section of the url that we need for as many cups as we want -- here I use the last five wc <- c("brazil2014","southafrica2010","germany2006","koreajapan2002","france1998") # function to get all columns get_results <- function(wc) { url <- paste0("https://www.fif...
rm(list = ls(all = TRUE)) # install the required packges if needed #install.packages("INLA", repos="http://www.math.ntnu.no/inla/R/testing") #install.packages("bigmemory") #install.packages("snow") #install.packages("Rmpi") #install.packages("ade4") #install.packages("sp") #install.packages("BAS") #install.packages("ht...
/supplementaries/Mode Jumping MCMC/supplementary/examples/Simulated Logistic Data With Multiple Modes (Example 3)/mode_jumping_package_class_example3_10000.r
no_license
aliaksah/EMJMCMC2016
R
false
false
10,027
r
rm(list = ls(all = TRUE)) # install the required packges if needed #install.packages("INLA", repos="http://www.math.ntnu.no/inla/R/testing") #install.packages("bigmemory") #install.packages("snow") #install.packages("Rmpi") #install.packages("ade4") #install.packages("sp") #install.packages("BAS") #install.packages("ht...
# pre-session options rm(list = ls()) # getwd() # setwd("C:/Users/your preferred path") # load tidyr for pivoting: library(tidyr) df <- read.csv(url("https://www.dropbox.com/s/ylf9bkctp5byu2m/proptable.csv?dl=1"), skip = 0, header = TRUE, stringsAsFac...
/proptable.R
no_license
dbM11/excel2R
R
false
false
1,105
r
# pre-session options rm(list = ls()) # getwd() # setwd("C:/Users/your preferred path") # load tidyr for pivoting: library(tidyr) df <- read.csv(url("https://www.dropbox.com/s/ylf9bkctp5byu2m/proptable.csv?dl=1"), skip = 0, header = TRUE, stringsAsFac...
# Linear discriminants and SVMs: practice # --------------------------------------- # Exploring the meta-parameters of an SVM # --------------------------------------- library(e1071) library(tcltk) # Load data into session. train <- read.csv("assignment3/Letters/LettersTrain.csv") test <- read.csv("assignment3/Letter...
/assignment3/linear_discriminants_svms_practice.R
no_license
Peiffap/lingi2262-assignments
R
false
false
4,644
r
# Linear discriminants and SVMs: practice # --------------------------------------- # Exploring the meta-parameters of an SVM # --------------------------------------- library(e1071) library(tcltk) # Load data into session. train <- read.csv("assignment3/Letters/LettersTrain.csv") test <- read.csv("assignment3/Letter...
### # Ensemble of Segmented Functional Nonparametric Classifiers # Robert Buscaglia, Nichola C. Garbett, Yiannis Kamarianakis # June 20, 2017 # # Functions and Packages # File contains all required functions and packages for running the # ESFuNC algorithm. Each function has been given a brief description. # Pl...
/ESFuNC_Functions.R
no_license
BuscagliaR/ESFuNC
R
false
false
78,815
r
### # Ensemble of Segmented Functional Nonparametric Classifiers # Robert Buscaglia, Nichola C. Garbett, Yiannis Kamarianakis # June 20, 2017 # # Functions and Packages # File contains all required functions and packages for running the # ESFuNC algorithm. Each function has been given a brief description. # Pl...
# codice per analisi ESA cambiamento NO2 da gennaio a marzo 2020 library(raster) # excercise caricare tutte le immagini EN01 <- raster("EN_0001.png") EN02 <- raster("EN_0002.png") EN03 <- raster("EN_0003.png") EN04 <- raster("EN_0004.png") EN05 <- raster("EN_0005.png") EN06 <- raster("EN_0006.png") EN07 <-...
/R_code_multitemp_NO2.r
no_license
valerioamendola/ecologia_del_paesaggio
R
false
false
1,855
r
# codice per analisi ESA cambiamento NO2 da gennaio a marzo 2020 library(raster) # excercise caricare tutte le immagini EN01 <- raster("EN_0001.png") EN02 <- raster("EN_0002.png") EN03 <- raster("EN_0003.png") EN04 <- raster("EN_0004.png") EN05 <- raster("EN_0005.png") EN06 <- raster("EN_0006.png") EN07 <-...
### --- ### Extra analyses: Dominance analyses for ### other predictors besides Adaptive Performance ### --- ### --- ### Rename other outcome variables ### --- handlemerg <- NCO_Promotion_Study$HANDLINGEMERGENCIES interperson <- NCO_Promotion_Study$INTERPERSONALADAPTABILITY changecond <- NCO_Promotion_Study$UNPREDICT...
/Dominance Analyses for Other Outcomes.R
no_license
colekm297/Monte-Carlo-Dominance-Analysis
R
false
false
9,862
r
### --- ### Extra analyses: Dominance analyses for ### other predictors besides Adaptive Performance ### --- ### --- ### Rename other outcome variables ### --- handlemerg <- NCO_Promotion_Study$HANDLINGEMERGENCIES interperson <- NCO_Promotion_Study$INTERPERSONALADAPTABILITY changecond <- NCO_Promotion_Study$UNPREDICT...
# Case Study - Denco #Manufacturing Firm with sales data of partnum and customer with region wise sales # Should know - import, table, dplyr, aggregate etc #read file : Method1 sales1 = read.csv("./data/denco.csv") str(sales1) #see if data is loaded and check its structure head(sales1) #read file : Method2 : when l...
/Denco Case-1.R
no_license
Vijay1204/FirstProject
R
false
false
4,406
r
# Case Study - Denco #Manufacturing Firm with sales data of partnum and customer with region wise sales # Should know - import, table, dplyr, aggregate etc #read file : Method1 sales1 = read.csv("./data/denco.csv") str(sales1) #see if data is loaded and check its structure head(sales1) #read file : Method2 : when l...
library(visualize) zvalue=(152-150)/(2/sqrt(100)) zvalue qnorm(0.95) qnorm(0.05) visualize.norm(stat=zvalue, mu=0, sd=1,section="upper") library(BSDA) z.test(x=D$Machine.1, alternative="greater", sigma.x=2,mu=150)
/Lab7_Practice/7b_prac.r
no_license
nullvoiddeath/7th-R-008
R
false
false
215
r
library(visualize) zvalue=(152-150)/(2/sqrt(100)) zvalue qnorm(0.95) qnorm(0.05) visualize.norm(stat=zvalue, mu=0, sd=1,section="upper") library(BSDA) z.test(x=D$Machine.1, alternative="greater", sigma.x=2,mu=150)
## Tests for write2 context("Testing the write2 output") data(mockstudy) expect_write2_worked <- function(FUN, object, reference, ...) { FUN <- match.fun(FUN) filename <- tempfile() on.exit(expect_true(file.remove(paste0(filename, ".Rmd")))) if(!file.exists(reference)) skip("Couldn't find the reference file...
/tests/testthat/test_write2.R
no_license
ifendo/arsenal
R
false
false
9,542
r
## Tests for write2 context("Testing the write2 output") data(mockstudy) expect_write2_worked <- function(FUN, object, reference, ...) { FUN <- match.fun(FUN) filename <- tempfile() on.exit(expect_true(file.remove(paste0(filename, ".Rmd")))) if(!file.exists(reference)) skip("Couldn't find the reference file...
## Functions in this file allows you to cache previously computed matrix inverse and ## return without extra calculation. First call makeCacheMatrix to get an obj for ## caching and use the functions in the returned obj to get/set matrix and get its inverse ## given a matrix, return the functions for setting/getting v...
/cachematrix.R
no_license
wzy0421/ProgrammingAssignment2
R
false
false
1,187
r
## Functions in this file allows you to cache previously computed matrix inverse and ## return without extra calculation. First call makeCacheMatrix to get an obj for ## caching and use the functions in the returned obj to get/set matrix and get its inverse ## given a matrix, return the functions for setting/getting v...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "cpu_small") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLea...
/models/openml_cpu_small/classification_binaryClass/09e6998493569014538d9f10170109c8/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
686
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "cpu_small") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "binaryClass") lrn = makeLea...
# # Copyright 2007-2020 by the individuals mentioned in the source code history # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
/R/MxFitFunctionML.R
no_license
mirkoruks/OpenMx
R
false
false
7,568
r
# # Copyright 2007-2020 by the individuals mentioned in the source code history # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.site.R \name{query.site} \alias{query.site} \title{Given site_id, return site table} \usage{ query.site(site.id, con) } \arguments{ \item{site.id}{The id of the site} \item{con}{: database connection} } \description{ Given site_id, ret...
/base/db/man/query.site.Rd
permissive
PecanProject/pecan
R
false
true
362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/query.site.R \name{query.site} \alias{query.site} \title{Given site_id, return site table} \usage{ query.site(site.id, con) } \arguments{ \item{site.id}{The id of the site} \item{con}{: database connection} } \description{ Given site_id, ret...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/velox.R \name{velox} \alias{velox} \title{Create a VeloxRaster object} \usage{ velox(x, extent = NULL, res = NULL, crs = NULL) } \arguments{ \item{x}{A RasterLayer, RasterStack, matrix, list of matrices, list of VeloxRaster objects, or charac...
/man/velox.Rd
no_license
markwestcott34/velox
R
false
true
1,454
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/velox.R \name{velox} \alias{velox} \title{Create a VeloxRaster object} \usage{ velox(x, extent = NULL, res = NULL, crs = NULL) } \arguments{ \item{x}{A RasterLayer, RasterStack, matrix, list of matrices, list of VeloxRaster objects, or charac...
#Installing the packages install.packages("randomForest") install.packages("MASS") library(randomForest) library(MASS) data(fgl) #Checking the dataset str(fgl) #Settin the seeds set.seed(17) #Calling the random forest fgl.rf <- randomForest(type ~ . , data = fgl, mtry = 2, importance = TRUE, do.trace = 100) print(fgl...
/Pred8_criminological investigation of glass.R
no_license
mayank100sharma/Criminological-investigation-of-glass
R
false
false
1,007
r
#Installing the packages install.packages("randomForest") install.packages("MASS") library(randomForest) library(MASS) data(fgl) #Checking the dataset str(fgl) #Settin the seeds set.seed(17) #Calling the random forest fgl.rf <- randomForest(type ~ . , data = fgl, mtry = 2, importance = TRUE, do.trace = 100) print(fgl...
## Caching the Inverse of a matrix ## Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse of a matrix rather than ## computing it repeatedly ## makeCacheMatrix creates a list containing a function to ## 1. set the value of the matrix ## 2. get the value of the matrix ...
/cachematrix.R
no_license
ParamitaBasu/ProgrammingAssignment2
R
false
false
1,586
r
## Caching the Inverse of a matrix ## Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse of a matrix rather than ## computing it repeatedly ## makeCacheMatrix creates a list containing a function to ## 1. set the value of the matrix ## 2. get the value of the matrix ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Xing.R \name{XingMethod} \alias{XingMethod} \title{This function computes Xing's global distance metric learning classification algorithm.} \usage{ XingMethod(Y, X, S = NULL, D = NULL, learning_rate = 0.1, epsilon = 0.01, ...
/man/XingMethod.Rd
no_license
carltonyfakhry/DistanceLearning
R
false
true
4,719
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Xing.R \name{XingMethod} \alias{XingMethod} \title{This function computes Xing's global distance metric learning classification algorithm.} \usage{ XingMethod(Y, X, S = NULL, D = NULL, learning_rate = 0.1, epsilon = 0.01, ...
require(xgboost) require(methods) # we load in the agaricus dataset # In this example, we are aiming to predict whether a mushroom can be eated data(agaricus.train, package='xgboost') data(agaricus.test, package='xgboost') train <- agaricus.train test <- agaricus.test # the loaded data is stored in sparseMatrix, and la...
/tools/xgboost-0.40/R-package/demo/basic_walkthrough.R
permissive
hezila/kdd2015
R
false
false
5,212
r
require(xgboost) require(methods) # we load in the agaricus dataset # In this example, we are aiming to predict whether a mushroom can be eated data(agaricus.train, package='xgboost') data(agaricus.test, package='xgboost') train <- agaricus.train test <- agaricus.test # the loaded data is stored in sparseMatrix, and la...
library(data.table) library(dplyr) library(tidyr) library(ggplot2) library(pheatmap) library(RColorBrewer) library(survival) library(fastcluster) library(cluster) library(survminer) library(umap) library(Rtsne) library(enrichR) library(DESeq2) library(lme4) library(lmerTest) library(emmeans) library(gplots) library(str...
/Code/A14_T_cell_association.R
no_license
hzc363/COVID19_system_immunology
R
false
false
9,553
r
library(data.table) library(dplyr) library(tidyr) library(ggplot2) library(pheatmap) library(RColorBrewer) library(survival) library(fastcluster) library(cluster) library(survminer) library(umap) library(Rtsne) library(enrichR) library(DESeq2) library(lme4) library(lmerTest) library(emmeans) library(gplots) library(str...
#' Create a Boostrap 4 dashboard footer #' #' Build an blue dashboard footer #' #' @param ... Slot for \link{blueFooterMenu}. #' @param copyrights Left text, if any. #' @param src Left text src, if any. #' #' #' #' @author David Granjon, \email{dgranjon@@ymail.com} #' #' @export blueDashFooter <- function(..., copyr...
/R/dashboardFooter.R
no_license
tamas-olah/blueDash
R
false
false
1,659
r
#' Create a Boostrap 4 dashboard footer #' #' Build an blue dashboard footer #' #' @param ... Slot for \link{blueFooterMenu}. #' @param copyrights Left text, if any. #' @param src Left text src, if any. #' #' #' #' @author David Granjon, \email{dgranjon@@ymail.com} #' #' @export blueDashFooter <- function(..., copyr...
## Matrix Cache ## abstraction that speed up calculation of the matrix inverse ## ## eg. ## # create cache matrix object, provide the matrix to invert ## cm <- makeCacheMatrix(matrix(c(1, 2, 3, 4), nrow = 2, ncol = 2)) ## ## # calculate the matrix inverse the first time, subsequent invocations will return cached re...
/cachematrix.R
no_license
lrascao/ProgrammingAssignment2
R
false
false
1,130
r
## Matrix Cache ## abstraction that speed up calculation of the matrix inverse ## ## eg. ## # create cache matrix object, provide the matrix to invert ## cm <- makeCacheMatrix(matrix(c(1, 2, 3, 4), nrow = 2, ncol = 2)) ## ## # calculate the matrix inverse the first time, subsequent invocations will return cached re...
query_hive <- function(sql) { library("RJDBC") library("rJava") hadoop.class.path = list.files(path=c("./dep"), pattern="jar", full.names=T); cp = c(hadoop.class.path) .jinit(classpath=cp) url.dbc = paste0("jdbc:hive2://eb-pmp:10000/default"); drv=JDBC("org.apache.hive.jdbc.HiveDriver") conn <- dbConne...
/R/DBQuery.R
no_license
roxxette/selmodel
R
false
false
609
r
query_hive <- function(sql) { library("RJDBC") library("rJava") hadoop.class.path = list.files(path=c("./dep"), pattern="jar", full.names=T); cp = c(hadoop.class.path) .jinit(classpath=cp) url.dbc = paste0("jdbc:hive2://eb-pmp:10000/default"); drv=JDBC("org.apache.hive.jdbc.HiveDriver") conn <- dbConne...
install.packages("gapminder") library(gapminder) #ggpolt2:使用 ggplot() 函數做資料映射、使用 geom_() 函數調整圖形種類、使用 + 連結不同的函數,堆疊圖層 install.packages("tidyverse") install.packages("ggplot2") library(gapminder) # data library(ggplot2) # plotting install.packages("dplyr") library(dplyr) # data manipulations install.packages("plotly...
/其他練習/r/project.R
no_license
yenchungLin/study
R
false
false
1,806
r
install.packages("gapminder") library(gapminder) #ggpolt2:使用 ggplot() 函數做資料映射、使用 geom_() 函數調整圖形種類、使用 + 連結不同的函數,堆疊圖層 install.packages("tidyverse") install.packages("ggplot2") library(gapminder) # data library(ggplot2) # plotting install.packages("dplyr") library(dplyr) # data manipulations install.packages("plotly...
source("install.R") rmarkdown::render('pilotReport.Rmd', output_file='pilotReport.html')
/render.R
no_license
amehtaSF/reproducibility_assignment
R
false
false
91
r
source("install.R") rmarkdown::render('pilotReport.Rmd', output_file='pilotReport.html')
# initModal = function() { # showModal(modalDialog(size = "l", footer = actionButton("dismissInitModal", "Ok!"), # #title = "Welcome to GMSE-GAME!", # includeMarkdown("introduction.Rmd") # )) # } initModal1 = function() { showModal(modalDialog(size = "l", footer ...
/app/infoDialogs.R
no_license
jejoenje/GMSEGAME
R
false
false
9,086
r
# initModal = function() { # showModal(modalDialog(size = "l", footer = actionButton("dismissInitModal", "Ok!"), # #title = "Welcome to GMSE-GAME!", # includeMarkdown("introduction.Rmd") # )) # } initModal1 = function() { showModal(modalDialog(size = "l", footer ...
plot_four_panels <- function(gen, fixed, conc = TRUE, file_name) { #gen <- make('tp_wy_out', remake_file = '30_analyze_data_series.yml') #fixed <- make('tp_wy_out_stationary', remake_file = '30_analyze_data_series.yml') gen_annual <- tableResults(gen) %>% mutate(trend_type = 'Water quality trend') f...
/30_analyze_data/code/create_four_panel_summary.R
no_license
limnoliver/yahara-trends
R
false
false
4,395
r
plot_four_panels <- function(gen, fixed, conc = TRUE, file_name) { #gen <- make('tp_wy_out', remake_file = '30_analyze_data_series.yml') #fixed <- make('tp_wy_out_stationary', remake_file = '30_analyze_data_series.yml') gen_annual <- tableResults(gen) %>% mutate(trend_type = 'Water quality trend') f...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SeSAMeStr_utils.R \name{plot_inferedstrains} \alias{plot_inferedstrains} \title{Model Infered Strains} \usage{ plot_inferedstrains(sdf, out_dir) } \arguments{ \item{out_dir}{Path to output directory} \item{sdfs}{list of data frames of intens...
/man/plot_inferedstrains.Rd
no_license
Stefanos-Apostle/SeSAMeStr
R
false
true
505
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SeSAMeStr_utils.R \name{plot_inferedstrains} \alias{plot_inferedstrains} \title{Model Infered Strains} \usage{ plot_inferedstrains(sdf, out_dir) } \arguments{ \item{out_dir}{Path to output directory} \item{sdfs}{list of data frames of intens...
#' --- #' jupyter: #' jupytext_format_version: '1.0' #' jupytext_formats: ipynb,Rmd,R:spin #' kernelspec: #' display_name: R #' language: R #' name: ir #' language_info: #' codemirror_mode: r #' file_extension: .r #' mimetype: text/x-r-source #' name: R #' pygments_l...
/R/RDataWrangling/RDataWrangling.R
permissive
hbs-rcs/workshops
R
false
false
19,114
r
#' --- #' jupyter: #' jupytext_format_version: '1.0' #' jupytext_formats: ipynb,Rmd,R:spin #' kernelspec: #' display_name: R #' language: R #' name: ir #' language_info: #' codemirror_mode: r #' file_extension: .r #' mimetype: text/x-r-source #' name: R #' pygments_l...
pValue<-function(temp){ tempAOV <- aov(Counts~Diets, data=temp) testP<-summary(tempAOV)[[1]][["Pr(>F)"]][[1]] } filenames <- list.files(pattern="21_samples-HQ-LQ") for (f in filenames) { fd<-read.table(f, header=TRUE) result<-pValue(fd) rest<-c(f,":",result) print(rest) }
/pValueFinder.R
no_license
zunjuu/pValueFinder
R
false
false
287
r
pValue<-function(temp){ tempAOV <- aov(Counts~Diets, data=temp) testP<-summary(tempAOV)[[1]][["Pr(>F)"]][[1]] } filenames <- list.files(pattern="21_samples-HQ-LQ") for (f in filenames) { fd<-read.table(f, header=TRUE) result<-pValue(fd) rest<-c(f,":",result) print(rest) }
source('utils_base.R') # own sprintm = function(x, fmt, ...) sprintf(fmt, x, ...) # filter blank values out compact = partial(Filter, Negate(is.null)) # test generate_data = function(base_name, end) { 1:end %>% sprintm("%03s") %>% pre0(base_name) } read_data_naming = function( from = '', test = F ) { read.file(...
/utils.R
no_license
expomini/data_analysis_presentations
R
false
false
479
r
source('utils_base.R') # own sprintm = function(x, fmt, ...) sprintf(fmt, x, ...) # filter blank values out compact = partial(Filter, Negate(is.null)) # test generate_data = function(base_name, end) { 1:end %>% sprintm("%03s") %>% pre0(base_name) } read_data_naming = function( from = '', test = F ) { read.file(...
#agreement and correlation of pat vs patmat cor(pat.man$Effect,patmat.man$Effect)#0.97 plot(pat.man$Effect,patmat.man$Effect,main="Correlation between paternal BMI effect estimates \nobtained before and after adjustment for maternal BMI: r=0.97",xlab="Unadjusted",ylab="Adjusted") abline(0,1,col=wes_palette("Zissou1"...
/Analyses/Birth/7. Comparison to maternal estimates.r
no_license
ammegandchips/PACE_Paternal_BMI
R
false
false
7,924
r
#agreement and correlation of pat vs patmat cor(pat.man$Effect,patmat.man$Effect)#0.97 plot(pat.man$Effect,patmat.man$Effect,main="Correlation between paternal BMI effect estimates \nobtained before and after adjustment for maternal BMI: r=0.97",xlab="Unadjusted",ylab="Adjusted") abline(0,1,col=wes_palette("Zissou1"...
# test SWC function test_that('SoilHyP', { # data(dataTestthat) # -------------------------------------------- # Unimodal van Genuchten # -------------------------------------------- expect_equal(SWC(suc = seq(1, 1000, by = 1), par.shp = c(ths = 0.4, thr = 0, alfa = 0.02, n = 1.5), FUN.shp = c('vG'), ...
/tests/testthat/test_SWC.R
no_license
cran/SoilHyP
R
false
false
3,858
r
# test SWC function test_that('SoilHyP', { # data(dataTestthat) # -------------------------------------------- # Unimodal van Genuchten # -------------------------------------------- expect_equal(SWC(suc = seq(1, 1000, by = 1), par.shp = c(ths = 0.4, thr = 0, alfa = 0.02, n = 1.5), FUN.shp = c('vG'), ...
#plot1 emissions_per_year <- aggregate(Emissions ~ year, data = NEI, sum) #plot2 emissions_per_year_balt <- aggregate(Emissions ~ year, data = NEI[NEI$fips == "24510",], sum) #plot3 emissions_per_year_type_balt <- aggregate(Emissions ~ year + type, data = NEI[NEI$fips == "24510",], sum) #plot4 SCC_coal <- as.charact...
/compute graph vars and free up mem.R
no_license
rubenogit/ExData_Plotting2
R
false
false
1,303
r
#plot1 emissions_per_year <- aggregate(Emissions ~ year, data = NEI, sum) #plot2 emissions_per_year_balt <- aggregate(Emissions ~ year, data = NEI[NEI$fips == "24510",], sum) #plot3 emissions_per_year_type_balt <- aggregate(Emissions ~ year + type, data = NEI[NEI$fips == "24510",], sum) #plot4 SCC_coal <- as.charact...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clustMD_UtilityFunctions.R \name{modal.value} \alias{modal.value} \title{Calculate the mode of a sample} \usage{ modal.value(x) } \arguments{ \item{x}{a vector containing the sample values.} } \value{ The mode of the sample. In the case of a ...
/man/modal.value.Rd
no_license
cran/clustMD
R
false
true
423
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clustMD_UtilityFunctions.R \name{modal.value} \alias{modal.value} \title{Calculate the mode of a sample} \usage{ modal.value(x) } \arguments{ \item{x}{a vector containing the sample values.} } \value{ The mode of the sample. In the case of a ...
#' WriteDataFrameAsTsv #' just save a dataframe on disk in TSV format #' @param data.frame.to.save the data frame to store on disk #' @param file.name.path the file path where to store the dataset #' @param col.names see ?write.table description (default is NA) #' @param row.names see ?write.table description (default...
/R/utilities.R
no_license
drighelli/ticorser
R
false
false
11,038
r
#' WriteDataFrameAsTsv #' just save a dataframe on disk in TSV format #' @param data.frame.to.save the data frame to store on disk #' @param file.name.path the file path where to store the dataset #' @param col.names see ?write.table description (default is NA) #' @param row.names see ?write.table description (default...
# ################################################################################# # # SCRIPT_NAME: Bag of little bootstraps (BLB) # The BLB is a procedure to produce robust, computationally efficient # bootstrap estimates for a statistic of interest. # INPUTS # - data: x_1, x_2,..., x_n # - theta_hat: estimator of...
/reg_boot.R
no_license
jakeknigge/bag-of-little-boots
R
false
false
1,685
r
# ################################################################################# # # SCRIPT_NAME: Bag of little bootstraps (BLB) # The BLB is a procedure to produce robust, computationally efficient # bootstrap estimates for a statistic of interest. # INPUTS # - data: x_1, x_2,..., x_n # - theta_hat: estimator of...
# ----------------------------------------------------------------------------------------------------------- # Research: A comparison of meta-analysis methods: Understanding the influence of experiments' # statistical parameters # File name: svc-functions.R # File type: secondary R Script # Date: March...
/R/svc-functions.R
no_license
GRISE-UPM/comparison.of.meta.analysis.methods
R
false
false
3,174
r
# ----------------------------------------------------------------------------------------------------------- # Research: A comparison of meta-analysis methods: Understanding the influence of experiments' # statistical parameters # File name: svc-functions.R # File type: secondary R Script # Date: March...
# 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...
/mepstrends/hc_care/json/code/r/totPOP__sex__rsn_DN__.r
permissive
RandomCriticalAnalysis/MEPS-summary-tables
R
false
false
1,295
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...
! This rule file was created from: n-iris-aca.rul and from: m-iris.d ! -------------------------------------------------------- 1, 50, 57 (petal_width,0.1..1) -> (class,Iris-setosa) 2, 45, 46 (petal_width,1..1.7) & (petal_length,1..4.8) -> (class,Iris-versicolor) 3, 4, 5 (petal_length,4.8..5.1) & (sepal_length,6.2.....
/m-iris.r
no_license
Nidhimidha/Special-Data-Mining-EECS-839
R
false
false
1,330
r
! This rule file was created from: n-iris-aca.rul and from: m-iris.d ! -------------------------------------------------------- 1, 50, 57 (petal_width,0.1..1) -> (class,Iris-setosa) 2, 45, 46 (petal_width,1..1.7) & (petal_length,1..4.8) -> (class,Iris-versicolor) 3, 4, 5 (petal_length,4.8..5.1) & (sepal_length,6.2.....
library(crimeutils) library(dplyr) library(readr) library(DT) library(scales) library(tidyr) library(ggplot2) library(readr) library(mapproj) library(lubridate) devtools::install_github("wmurphyrd/fiftystater") library(fiftystater) make_frequency_table_year <- function(data, column, col_names) { temp <- unique(data...
/_common.R
no_license
amyfkaplan/ucrbook
R
false
false
1,507
r
library(crimeutils) library(dplyr) library(readr) library(DT) library(scales) library(tidyr) library(ggplot2) library(readr) library(mapproj) library(lubridate) devtools::install_github("wmurphyrd/fiftystater") library(fiftystater) make_frequency_table_year <- function(data, column, col_names) { temp <- unique(data...
###################################################################################### # # Predict House Sales # # This script loads the master house observations file, filters it based on year and # excludes observations with key missing features (e.g., if there's no house value, # the the record is probably the...
/Project5-Capstone/JasonSippie/predictHouseSales.R
no_license
vuchau/bootcamp007_project
R
false
false
17,938
r
###################################################################################### # # Predict House Sales # # This script loads the master house observations file, filters it based on year and # excludes observations with key missing features (e.g., if there's no house value, # the the record is probably the...
## Plot 4 # Read data header <- read.table(unz("exdata_data_household_power_consumption.zip", "household_power_consumption.txt"), nrows = 1, header = FALSE, sep =';', stringsAsFactors = FALSE) data <- read.table(unz("exdata_data_household_power_consumption.zip", "household_power_consumption.txt"), header=T, sep=";", sk...
/plot4.R
no_license
jlrichards2121/ExData_Plotting1
R
false
false
1,299
r
## Plot 4 # Read data header <- read.table(unz("exdata_data_household_power_consumption.zip", "household_power_consumption.txt"), nrows = 1, header = FALSE, sep =';', stringsAsFactors = FALSE) data <- read.table(unz("exdata_data_household_power_consumption.zip", "household_power_consumption.txt"), header=T, sep=";", sk...
# Overall Description: # A pair of functions that create and cache the inverse of a matrix. The functions # take advantage of R's scoping rules to store/cache inverses of a supplied # matrix once it has been computed and provides retrieval functions to reduce # computation times rather than requiring inverses...
/cachematrix.R
no_license
stugorf/ProgrammingAssignment2
R
false
false
2,102
r
# Overall Description: # A pair of functions that create and cache the inverse of a matrix. The functions # take advantage of R's scoping rules to store/cache inverses of a supplied # matrix once it has been computed and provides retrieval functions to reduce # computation times rather than requiring inverses...
#' "nurealcoeff" <- function(X,Y,o) { if(o!=1) { n <- length(X) zeta <- sum(Y*exp(-1i*o*X)) iota2 <- sum(exp(-2i*o*X)) 2*(n*Conj(zeta)-Conj(iota2)*zeta)/(n*n-Conj(iota2)*iota2) } else { mean(Y) } }
/R/nurealcoeff.R
no_license
nickmckay/nuspectral
R
false
false
251
r
#' "nurealcoeff" <- function(X,Y,o) { if(o!=1) { n <- length(X) zeta <- sum(Y*exp(-1i*o*X)) iota2 <- sum(exp(-2i*o*X)) 2*(n*Conj(zeta)-Conj(iota2)*zeta)/(n*n-Conj(iota2)*iota2) } else { mean(Y) } }
#### Practice II #___________________________________________UNDERTANDING FUNCTIONAL TRAIT SPACE rm(list = ls()) # install.packages(ggplot2) # install.packages(dplyr) # install.packages(reshape2) library(ggplot2) library(dplyr) library(reshape2) load("C:/Users/iq37aceh/Desktop/Lecture/vt_traits_2.RData") # vt_trai...
/week 1/5 - Friday/Class_MSc_FD_2.R
permissive
chase-lab/biodiv-patterns-course-2021
R
false
false
2,257
r
#### Practice II #___________________________________________UNDERTANDING FUNCTIONAL TRAIT SPACE rm(list = ls()) # install.packages(ggplot2) # install.packages(dplyr) # install.packages(reshape2) library(ggplot2) library(dplyr) library(reshape2) load("C:/Users/iq37aceh/Desktop/Lecture/vt_traits_2.RData") # vt_trai...
library(decryptr) library(base64enc) model_rfb <- load_model("rfb") model_rsc <- load_model("rsc") model_cadesp <- load_model("cadesp") model_nfesp <- load_model("nfesp") keys <- yaml::read_yaml("keys.yaml") #* @get / root <- function() { "hello world" } #* @post /rfb rfb <- function(img, key){ key <- openssl:...
/api.R
no_license
decryptr/api
R
false
false
1,504
r
library(decryptr) library(base64enc) model_rfb <- load_model("rfb") model_rsc <- load_model("rsc") model_cadesp <- load_model("cadesp") model_nfesp <- load_model("nfesp") keys <- yaml::read_yaml("keys.yaml") #* @get / root <- function() { "hello world" } #* @post /rfb rfb <- function(img, key){ key <- openssl:...
dmixNorm <- nimbleFunction( run = function(x = double(), p = double(1), mu = double(1), sigma = double(1), log = logical(0, default=0)) { returnType(double()) K = length(p) # out = 0 # for (j in 1:d) { # out = out + p[j] * dnorm(x, mu[j], sigma[j]) # } tmp = rep(0, K) tmp[1:K] = log(...
/R/dmixnorm.R
permissive
jtipton25/mixing-manuscript
R
false
false
1,687
r
dmixNorm <- nimbleFunction( run = function(x = double(), p = double(1), mu = double(1), sigma = double(1), log = logical(0, default=0)) { returnType(double()) K = length(p) # out = 0 # for (j in 1:d) { # out = out + p[j] * dnorm(x, mu[j], sigma[j]) # } tmp = rep(0, K) tmp[1:K] = log(...
library('RODBC') library('quantmod') library('PerformanceAnalytics') library('lubridate') library('ggplot2') library('ggthemes') library('reshape2') library('viridis') source("d:/stockviz/r/config.r") options(stringsAsFactors = FALSE) options("scipen"=100) reportPath <- "." indexName1<-"NIFTY 50" indexName2<-"NIFTY ...
/entries and exits/valuation/plot.diff.R
no_license
stockviz/blog
R
false
false
4,116
r
library('RODBC') library('quantmod') library('PerformanceAnalytics') library('lubridate') library('ggplot2') library('ggthemes') library('reshape2') library('viridis') source("d:/stockviz/r/config.r") options(stringsAsFactors = FALSE) options("scipen"=100) reportPath <- "." indexName1<-"NIFTY 50" indexName2<-"NIFTY ...
#' Viterbi algorithm #' #' For a given model, reconstructs the most probable states sequence, #' using the Viterbi algorithm. #' #' @param m An object \code{moveHMM} #' #' @return The sequence of most probable states. #' #' @examples #' # m is a moveHMM object (as returned by fitHMM), automatically loaded with the pac...
/moveHMM/R/viterbi.R
no_license
ingted/R-Examples
R
false
false
2,407
r
#' Viterbi algorithm #' #' For a given model, reconstructs the most probable states sequence, #' using the Viterbi algorithm. #' #' @param m An object \code{moveHMM} #' #' @return The sequence of most probable states. #' #' @examples #' # m is a moveHMM object (as returned by fitHMM), automatically loaded with the pac...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/value.R \name{value} \alias{value} \title{Retrieve the value from an object} \usage{ value(x, ...) } \arguments{ \item{x}{object from which to retrieve the value} \item{...}{additional arguments passed to methods} } \description{ Retrieve th...
/man/value.Rd
permissive
r-lib/covr
R
false
true
345
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/value.R \name{value} \alias{value} \title{Retrieve the value from an object} \usage{ value(x, ...) } \arguments{ \item{x}{object from which to retrieve the value} \item{...}{additional arguments passed to methods} } \description{ Retrieve th...
## this scales fairly well: ## n = (100, 1000, 10000) --> (0.53, 4.21, 38) seconds ## TODO: this function cannot deal with overlapping horizons (usually an error): > 1 row / slice ## it would be useful to support these kind of data, as many lab-sampled sites have sub-samples # this function is run on the horiz...
/R/SoilProfileCollection-slice-methods.R
no_license
IKWENZI/aqp
R
false
false
7,389
r
## this scales fairly well: ## n = (100, 1000, 10000) --> (0.53, 4.21, 38) seconds ## TODO: this function cannot deal with overlapping horizons (usually an error): > 1 row / slice ## it would be useful to support these kind of data, as many lab-sampled sites have sub-samples # this function is run on the horiz...
#The occupant in room #1 exits, and opens the closed door to every room in the hotel (starting with his/her own). The occupant in room #2 exits, and closes the now open door to every second room in the hotel leaving the others alone. The occupant in room #3 exits, and now finding somedoors open and some closed, visits...
/hotel_doors.R
no_license
BajiShaida/CourseWork
R
false
false
1,462
r
#The occupant in room #1 exits, and opens the closed door to every room in the hotel (starting with his/her own). The occupant in room #2 exits, and closes the now open door to every second room in the hotel leaving the others alone. The occupant in room #3 exits, and now finding somedoors open and some closed, visits...
# devtools library(devtools) library(roxygen2) # create documentation devtools::document() # check documentation devtools::check_man() # run tests devtools::test() # create vignettes devtools::build_vignettes() # create bundle devtools::build() # install package devtools::install()
/roller/devtools-flow.R
no_license
Derek-Shue/stat133-hws-fall18
R
false
false
288
r
# devtools library(devtools) library(roxygen2) # create documentation devtools::document() # check documentation devtools::check_man() # run tests devtools::test() # create vignettes devtools::build_vignettes() # create bundle devtools::build() # install package devtools::install()
# Analyse Script library(haven) library(tidyverse) # Data Cleaning ---- # Skalenberechnung ---- # Analyse ---- # * Analyse 1 ---- # Wir prüfen ob sich die Variable X1 von 0 Unterscheidet. print("Hypothese 1") t.test(anscombe$x1) # Graphik erstellung ----
/AnalyseScript.R
no_license
rocknromeo/rstudiotest
R
false
false
269
r
# Analyse Script library(haven) library(tidyverse) # Data Cleaning ---- # Skalenberechnung ---- # Analyse ---- # * Analyse 1 ---- # Wir prüfen ob sich die Variable X1 von 0 Unterscheidet. print("Hypothese 1") t.test(anscombe$x1) # Graphik erstellung ----
source('framework/data.R'); source('framework/backtester.R') source('framework/processResults.R'); source('strategies/macd-kdj.R') numOfDays <- 100 dataList <- getData(directory="PART1") dataList <- lapply(dataList, function(x) x[1:numOfDays]) sMult <- 0.2 # slippage multiplier #MACD seqs slowSeq <- seq...
/main_optimaize.R
no_license
TANKERS888/COMP396
R
false
false
1,742
r
source('framework/data.R'); source('framework/backtester.R') source('framework/processResults.R'); source('strategies/macd-kdj.R') numOfDays <- 100 dataList <- getData(directory="PART1") dataList <- lapply(dataList, function(x) x[1:numOfDays]) sMult <- 0.2 # slippage multiplier #MACD seqs slowSeq <- seq...
#' Read RDS file #' @description Read R data - RDS file from anywhere #' @param file path of the file to be read #' @param FUN the function using which the file is to be read #' @param data_source the name of the data source, if not set globally. s3, gcs or local #' @param bucket the name of the bucket, if not set glob...
/R/import_rds.R
no_license
intiluna/flyio
R
false
false
1,754
r
#' Read RDS file #' @description Read R data - RDS file from anywhere #' @param file path of the file to be read #' @param FUN the function using which the file is to be read #' @param data_source the name of the data source, if not set globally. s3, gcs or local #' @param bucket the name of the bucket, if not set glob...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bwplot.r \name{bwplot.mids} \alias{bwplot.mids} \alias{bwplot} \title{Box-and-whisker plot of observed and imputed data} \usage{ \method{bwplot}{mids}(x, data, na.groups = NULL, groups = NULL, as.table = TRUE, theme = mice.theme(), mayrepli...
/man/bwplot.mids.Rd
no_license
moreno-betancur/mice
R
false
true
7,942
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bwplot.r \name{bwplot.mids} \alias{bwplot.mids} \alias{bwplot} \title{Box-and-whisker plot of observed and imputed data} \usage{ \method{bwplot}{mids}(x, data, na.groups = NULL, groups = NULL, as.table = TRUE, theme = mice.theme(), mayrepli...
library(R2jags) setwd("C:/Users/mcolvin/Documents/projects/Paddlefish/analysis") mod<- function() { for(i in 1:M) { z[i]~dbern(omega) # LATENT VARIABLE, DATA AUGMENTATION for(j in 1:Nocc) { p_eff[i,j]<- z[i]*p_cap[j] # CONDITIONAL CAPTURE PROBABILITY ch[i,j]~dbern(p_eff[i,j]) }#i }#j # ACOU...
/_model-verifications/Jags-Closed-Population-Estimates/20160303-closedN (2).R
no_license
mcolvin/paddlefish-RD
R
false
false
2,289
r
library(R2jags) setwd("C:/Users/mcolvin/Documents/projects/Paddlefish/analysis") mod<- function() { for(i in 1:M) { z[i]~dbern(omega) # LATENT VARIABLE, DATA AUGMENTATION for(j in 1:Nocc) { p_eff[i,j]<- z[i]*p_cap[j] # CONDITIONAL CAPTURE PROBABILITY ch[i,j]~dbern(p_eff[i,j]) }#i }#j # ACOU...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/vulnpryr.R \docType{package} \name{vulnpryr} \alias{my_env} \alias{vulnpryr} \alias{vulnpryr-package} \title{vulnpryr: A package for prying additional utility into your CVSS scores.} \format{\preformatted{<environment: 0x00000...
/man/vulnpryr.Rd
no_license
pombreda/vulnpryr
R
false
false
1,328
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/vulnpryr.R \docType{package} \name{vulnpryr} \alias{my_env} \alias{vulnpryr} \alias{vulnpryr-package} \title{vulnpryr: A package for prying additional utility into your CVSS scores.} \format{\preformatted{<environment: 0x00000...
# lookup: # takes in a character string, outputs the corresponding key (index) in the dictionary lookup<- function(word){ for(i in 1:n){ if (names(dict[i]) == word){ return(i) } } return(NULL) } # cleanInput: # preprocesses input: giving <num> to digits, replacing :?!. with <eos> mark, ...
/global.R
no_license
lifengleaf/Next-Word-Predictor
R
false
false
2,890
r
# lookup: # takes in a character string, outputs the corresponding key (index) in the dictionary lookup<- function(word){ for(i in 1:n){ if (names(dict[i]) == word){ return(i) } } return(NULL) } # cleanInput: # preprocesses input: giving <num> to digits, replacing :?!. with <eos> mark, ...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.77900238332834e-299, 0), .Dim = c(5L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist) str(result)
/CNull/inst/testfiles/communities_individual_based_sampling_beta/AFL_communities_individual_based_sampling_beta/communities_individual_based_sampling_beta_valgrind_files/1615835295-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
270
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.77900238332834e-299, 0), .Dim = c(5L, 1L))) result <- do.call(CNull:::communities_individual_based_sampling_beta,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudbuild_objects.R \name{Operation} \alias{Operation} \title{Operation Object} \usage{ Operation(Operation.metadata = NULL, Operation.response = NULL, error = NULL, done = NULL, metadata = NULL, response = NULL, name = NULL) } \argument...
/googlecloudbuildv1.auto/man/Operation.Rd
permissive
Phippsy/autoGoogleAPI
R
false
true
1,221
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudbuild_objects.R \name{Operation} \alias{Operation} \title{Operation Object} \usage{ Operation(Operation.metadata = NULL, Operation.response = NULL, error = NULL, done = NULL, metadata = NULL, response = NULL, name = NULL) } \argument...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/number_facets.R \name{number_facets} \alias{number_facets} \title{number_facets} \usage{ number_facets(string) } \arguments{ \item{string}{character vector of facet labels} } \description{ automatically labels facets with number before the la...
/man/number_facets.Rd
no_license
padpadpadpad/MicrobioUoE
R
false
true
326
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/number_facets.R \name{number_facets} \alias{number_facets} \title{number_facets} \usage{ number_facets(string) } \arguments{ \item{string}{character vector of facet labels} } \description{ automatically labels facets with number before the la...
library(ProjectTemplate) load.project() rmst_rmtl <- mutate(rmst_rmtl, strata = as.factor(strata)) # Reference values from ECI = 0 rmtl_ref <- rmst_rmtl %>% filter(strata == "ECI=0") %>% select(data) %>% pluck(1, 1) %>% select(years, rmtl, se) # Relative RMTL compared to ECI = 0 rmtl_rr <- ...
/src/rmtl.R
no_license
eribul/rmst
R
false
false
1,670
r
library(ProjectTemplate) load.project() rmst_rmtl <- mutate(rmst_rmtl, strata = as.factor(strata)) # Reference values from ECI = 0 rmtl_ref <- rmst_rmtl %>% filter(strata == "ECI=0") %>% select(data) %>% pluck(1, 1) %>% select(years, rmtl, se) # Relative RMTL compared to ECI = 0 rmtl_rr <- ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Fecundity.R \name{Fecundity} \alias{Fecundity} \title{Kernel Functions - Fecundity} \usage{ Fecundity(z, pars, date) } \arguments{ \item{z}{Size at the beginning of the timestep [float]} \item{pars}{Data.frame containing the date-indexed par...
/man/Fecundity.Rd
no_license
npollesch/FishToxTranslator
R
false
true
797
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Fecundity.R \name{Fecundity} \alias{Fecundity} \title{Kernel Functions - Fecundity} \usage{ Fecundity(z, pars, date) } \arguments{ \item{z}{Size at the beginning of the timestep [float]} \item{pars}{Data.frame containing the date-indexed par...
library(shiny) library(leaflet) library(RColorBrewer) library(scales) library(lattice) library(dplyr) shinyServer(function(input, output, session) { ## Interactive Map ########################################### threshold <- 4000 # Creamos el mapa output$map <- renderLeaflet({ leaflet() %>% ...
/Frontur_CM/server.R
no_license
dherranznavio/KSCHOOL-TFM
R
false
false
3,276
r
library(shiny) library(leaflet) library(RColorBrewer) library(scales) library(lattice) library(dplyr) shinyServer(function(input, output, session) { ## Interactive Map ########################################### threshold <- 4000 # Creamos el mapa output$map <- renderLeaflet({ leaflet() %>% ...
#PLOT 4 the_data <- read.table("household_power_consumption.txt", sep=";", header=TRUE, na.strings = "?") # plot series newdata <- subset(the_data, Date == '1/2/2007' | Date == '2/2/2007') #let's have 2 rows of plots and one column of plots png('plot4.png') par(mfrow = c(2,2)) par(mar=rep(3.9,4)) #WORKS!!! da...
/plot4.R
no_license
kukocCoursera/ExData_Plotting1
R
false
false
1,365
r
#PLOT 4 the_data <- read.table("household_power_consumption.txt", sep=";", header=TRUE, na.strings = "?") # plot series newdata <- subset(the_data, Date == '1/2/2007' | Date == '2/2/2007') #let's have 2 rows of plots and one column of plots png('plot4.png') par(mfrow = c(2,2)) par(mar=rep(3.9,4)) #WORKS!!! da...
.onUnload <- function (libpath) { library.dynam.unload("rankdist", libpath) } paramTow = function(param.true){ w.true = rev(cumsum(rev(param.true))) w.true } wToparam = function(w.true){ param.true = numeric(length(w.true)) param.true[1:(length(w.true)-1)] = -diff(w.true) param.tru...
/rankdist/R/utils.R
no_license
ingted/R-Examples
R
false
false
7,475
r
.onUnload <- function (libpath) { library.dynam.unload("rankdist", libpath) } paramTow = function(param.true){ w.true = rev(cumsum(rev(param.true))) w.true } wToparam = function(w.true){ param.true = numeric(length(w.true)) param.true[1:(length(w.true)-1)] = -diff(w.true) param.tru...
library(glmnet) mydata = read.table("./TrainingSet/RF/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/Classifier/central_nervous_sy...
/Model/EN/Classifier/central_nervous_system/central_nervous_system_008.R
no_license
leon1003/QSMART
R
false
false
399
r
library(glmnet) mydata = read.table("./TrainingSet/RF/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/Classifier/central_nervous_sy...
#read data into dataframe power <- read.table("C:/Users/michael.breecher/Desktop/data/household_power_consumption.txt", sep = ";", header = TRUE) #create an additional field for a date converted from text. power$date_corrected <- as.Date(power$Date, format = "%d/%m/%Y") #subset...
/plot4.R
no_license
mbreecher/ExData_Plotting1
R
false
false
2,247
r
#read data into dataframe power <- read.table("C:/Users/michael.breecher/Desktop/data/household_power_consumption.txt", sep = ";", header = TRUE) #create an additional field for a date converted from text. power$date_corrected <- as.Date(power$Date, format = "%d/%m/%Y") #subset...