content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getChromStateOR.R \name{getChromStateOR} \alias{getChromStateOR} \title{Significative variable Regression by cromatin state} \usage{ getChromStateOR(significative, chromstate, varname) } \arguments{ \item{significative}{numerical. Variable to...
/man/getChromStateOR.Rd
permissive
dpelegri/EASIER
R
false
true
766
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getChromStateOR.R \name{getChromStateOR} \alias{getChromStateOR} \title{Significative variable Regression by cromatin state} \usage{ getChromStateOR(significative, chromstate, varname) } \arguments{ \item{significative}{numerical. Variable to...
## The following two function work in tandem to reduce required # computations by saving the calculated inverse of a non-degenerate # matrix, A, and only recalculating the inverse if the matrix, A, # has changed. ## Function creating list of four items to # 1) set the value of the matrix, # 2) get the value of t...
/cachematrix.R
no_license
pmhallum/ProgrammingAssignment2
R
false
false
1,576
r
## The following two function work in tandem to reduce required # computations by saving the calculated inverse of a non-degenerate # matrix, A, and only recalculating the inverse if the matrix, A, # has changed. ## Function creating list of four items to # 1) set the value of the matrix, # 2) get the value of t...
#=========== #run_model.R #=========== #This script demonstrates the VisionEval framework for the RSPM model. #Load libraries #-------------- library(visioneval) #Initialize model #---------------- initializeModel( ParamDir = "defs", RunParamFile = "run_parameters.json", GeoFile = "geo.csv", ModelParamFile =...
/sources/models/VERSPM/Test1/run_model.R
permissive
n8mauer/VisionEval
R
false
false
4,107
r
#=========== #run_model.R #=========== #This script demonstrates the VisionEval framework for the RSPM model. #Load libraries #-------------- library(visioneval) #Initialize model #---------------- initializeModel( ParamDir = "defs", RunParamFile = "run_parameters.json", GeoFile = "geo.csv", ModelParamFile =...
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should b...
/dev/02_dev.R
no_license
kgilds/ACLOlderAmericansProfile
R
false
false
2,058
r
# Building a Prod-Ready, Robust Shiny Application. # # README: each step of the dev files is optional, and you don't have to # fill every dev scripts before getting started. # 01_start.R should be filled at start. # 02_dev.R should be used to keep track of your development during the project. # 03_deploy.R should b...
\name{consensus_heatmap-ConsensusPartition-method} \alias{consensus_heatmap,ConsensusPartition-method} \alias{consensus_heatmap} \title{ Heatmap for the consensus matrix } \description{ Heatmap for the consensus matrix } \usage{ \S4method{consensus_heatmap}{ConsensusPartition}(object, k, internal = FALSE, anno = ge...
/man/consensus_heatmap-ConsensusPartition-method.rd
permissive
liangdp1984/cola
R
false
false
2,066
rd
\name{consensus_heatmap-ConsensusPartition-method} \alias{consensus_heatmap,ConsensusPartition-method} \alias{consensus_heatmap} \title{ Heatmap for the consensus matrix } \description{ Heatmap for the consensus matrix } \usage{ \S4method{consensus_heatmap}{ConsensusPartition}(object, k, internal = FALSE, anno = ge...
household_power_data_raw <- read.csv("exdata-data-household_power_consumption/household_power_consumption.txt",sep=";") household_power <- household_power_data_raw household_power$Date <- as.Date(household_power$Date,"%d/%m/%Y") household_power$Time <- strptime(household_power$Time,"%H:%M:%S") dates <- (household_p...
/plot1.R
no_license
dgilliga/ExData_Plotting1
R
false
false
871
r
household_power_data_raw <- read.csv("exdata-data-household_power_consumption/household_power_consumption.txt",sep=";") household_power <- household_power_data_raw household_power$Date <- as.Date(household_power$Date,"%d/%m/%Y") household_power$Time <- strptime(household_power$Time,"%H:%M:%S") dates <- (household_p...
library(influxdbr) library(xts) library(mlbench) require(caret) #Read train file trainFile = read.csv("Data/BPHTrain.csv") #Create the prediction model using Random Forest algorithm control = trainControl(method="repeatedcv", number=10, repeats=3) set.seed(7) cforest_trained <- train(Infestation~., data=trainFile, me...
/BphPrediction.R
no_license
divmohan/PestInfestationPrediction
R
false
false
1,878
r
library(influxdbr) library(xts) library(mlbench) require(caret) #Read train file trainFile = read.csv("Data/BPHTrain.csv") #Create the prediction model using Random Forest algorithm control = trainControl(method="repeatedcv", number=10, repeats=3) set.seed(7) cforest_trained <- train(Infestation~., data=trainFile, me...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rekognition_operations.R \name{rekognition_detect_text} \alias{rekognition_detect_text} \title{Detects text in the input image and converts it into machine-readable text} \usage{ rekognition_detect_text(Image, Filters = NULL) } \arguments{ \i...
/cran/paws.machine.learning/man/rekognition_detect_text.Rd
permissive
paws-r/paws
R
false
true
1,044
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rekognition_operations.R \name{rekognition_detect_text} \alias{rekognition_detect_text} \title{Detects text in the input image and converts it into machine-readable text} \usage{ rekognition_detect_text(Image, Filters = NULL) } \arguments{ \i...
# day03_05_crawling.R install.packages('rvest') library(rvest) ## - id는 # ## - class는 . tour_rank <- read_html('https://en.wikipedia.org/wiki/World_Tourism_rankings') tour_rank tables <- html_nodes(tour_rank, '.wikitable') # 세계국가 순위는 1번쨰 방에 저장되어있음 df <- html_table(tables[1])[[1]] df # 컬럼 정보 확인 str(d...
/day03/day03_05_crawling.R
no_license
Kyungpyo-Kang/R_Bigdata
R
false
false
1,830
r
# day03_05_crawling.R install.packages('rvest') library(rvest) ## - id는 # ## - class는 . tour_rank <- read_html('https://en.wikipedia.org/wiki/World_Tourism_rankings') tour_rank tables <- html_nodes(tour_rank, '.wikitable') # 세계국가 순위는 1번쨰 방에 저장되어있음 df <- html_table(tables[1])[[1]] df # 컬럼 정보 확인 str(d...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/here_batch_geocoder.R \name{here_batch_geocoder} \alias{here_batch_geocoder} \title{Batch Geocoding with Here API} \usage{ here_batch_geocoder(df, search_var, country, here_id, here_code) } \arguments{ \item{df}{A data.frame containing the co...
/man/here_batch_geocoder.Rd
no_license
paeselhz/heRe
R
false
true
1,946
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/here_batch_geocoder.R \name{here_batch_geocoder} \alias{here_batch_geocoder} \title{Batch Geocoding with Here API} \usage{ here_batch_geocoder(df, search_var, country, here_id, here_code) } \arguments{ \item{df}{A data.frame containing the co...
# A pair of functions that cache the inverse of a matrix. # This function creates a special "matrix" object that can cache its inverse. # Example use: # n <- 10 # x <- matrix(sample(1:n^2), nrow = n) # y <- makeCacheMatrix(x) makeCacheMatrix <- function(x = matrix()) { # initialize the inverse m <- NULL ...
/cachematrix.R
no_license
nirski/ProgrammingAssignment2
R
false
false
1,755
r
# A pair of functions that cache the inverse of a matrix. # This function creates a special "matrix" object that can cache its inverse. # Example use: # n <- 10 # x <- matrix(sample(1:n^2), nrow = n) # y <- makeCacheMatrix(x) makeCacheMatrix <- function(x = matrix()) { # initialize the inverse m <- NULL ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/p_depends.R \name{p_depends} \alias{p_depends} \alias{p_depends_reverse} \title{Package Dependencies} \usage{ p_depends(package, local = FALSE, character.only = FALSE, ...) p_depends_reverse(package, local = FALSE, character.only = F...
/man/p_depends.Rd
no_license
khughitt/pacman
R
false
false
1,504
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/p_depends.R \name{p_depends} \alias{p_depends} \alias{p_depends_reverse} \title{Package Dependencies} \usage{ p_depends(package, local = FALSE, character.only = FALSE, ...) p_depends_reverse(package, local = FALSE, character.only = F...
#devtools::install_github("rystanley/genepopedit") #devtools::install_github("bwringe/hybriddetective") #devtools::install_github("bwringe/parallelnewhybrid") #modified from script by Bradley Martin suppressMessages(library("parallelnewhybrid")) suppressMessages(library("hybriddetective")) suppressMessages(library("gen...
/run_newhyb.R
no_license
tkchafin/newhyb_pipeline
R
false
false
1,365
r
#devtools::install_github("rystanley/genepopedit") #devtools::install_github("bwringe/hybriddetective") #devtools::install_github("bwringe/parallelnewhybrid") #modified from script by Bradley Martin suppressMessages(library("parallelnewhybrid")) suppressMessages(library("hybriddetective")) suppressMessages(library("gen...
# 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_cond/json/code/r/meanEXP__Condition__employed__.r
permissive
RandomCriticalAnalysis/MEPS-summary-tables
R
false
false
3,500
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...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download_tar.R \name{URLs_IMAGEWOOF_160} \alias{URLs_IMAGEWOOF_160} \title{IMAGEWOOF_160 dataset} \usage{ URLs_IMAGEWOOF_160(filename = "IMAGEWOOF_160", untar = TRUE) } \arguments{ \item{filename}{the name of the file} \item{untar}{logical, ...
/man/URLs_IMAGEWOOF_160.Rd
permissive
Cdk29/fastai
R
false
true
418
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/download_tar.R \name{URLs_IMAGEWOOF_160} \alias{URLs_IMAGEWOOF_160} \title{IMAGEWOOF_160 dataset} \usage{ URLs_IMAGEWOOF_160(filename = "IMAGEWOOF_160", untar = TRUE) } \arguments{ \item{filename}{the name of the file} \item{untar}{logical, ...
#' @title Censored Mixed-Effects Models with Autoregressive Correlation Structure and DEC for Normal and t-Student Errors #' @import numDeriv #' @import TruncatedNormal #' @import LaplacesDemon #' @import tcltk #' @import MASS #' @import stats #' @import relliptical #' @import expm #' @description This functin...
/R/ARpMMEC.est.R
no_license
cran/ARpLMEC
R
false
false
19,429
r
#' @title Censored Mixed-Effects Models with Autoregressive Correlation Structure and DEC for Normal and t-Student Errors #' @import numDeriv #' @import TruncatedNormal #' @import LaplacesDemon #' @import tcltk #' @import MASS #' @import stats #' @import relliptical #' @import expm #' @description This functin...
setwd('~/Workspace/pim_kinase') library(ggplot2) library(grid) library(limma) library(survival) TCGA.BRCA <- function() { source('~/Workspace/pim_kinase/TCGA_BRCA_exp_HiSeqV2-2014-08-28/tcga_brca.r') TCGA.BRCA() } ISPY1_DATASET <- function() { source('~/Workspace/pim_kinase/ispy1_082814/ispy1.r') I...
/pim_analysis.r
no_license
snjvb/pim_kinase
R
false
false
17,904
r
setwd('~/Workspace/pim_kinase') library(ggplot2) library(grid) library(limma) library(survival) TCGA.BRCA <- function() { source('~/Workspace/pim_kinase/TCGA_BRCA_exp_HiSeqV2-2014-08-28/tcga_brca.r') TCGA.BRCA() } ISPY1_DATASET <- function() { source('~/Workspace/pim_kinase/ispy1_082814/ispy1.r') I...
testlist <- list(doy = NaN, latitude = c(2.77448001762435e+180, 2.36468317547528e+179, NaN, 2.77448001762435e+180, NaN, 2.85279195360568e+180, 2.77448001762435e+180, 6.34899725744383e-66, 2.7744800222921e+180, NaN, NaN, -5.48545699190201e+303, NaN, NaN, 1.18182239014916e-125, NaN, NaN, NaN, NaN, NaN, NaN, 1.0840889...
/meteor/inst/testfiles/ET0_ThornthwaiteWilmott/libFuzzer_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1612735593-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
1,308
r
testlist <- list(doy = NaN, latitude = c(2.77448001762435e+180, 2.36468317547528e+179, NaN, 2.77448001762435e+180, NaN, 2.85279195360568e+180, 2.77448001762435e+180, 6.34899725744383e-66, 2.7744800222921e+180, NaN, NaN, -5.48545699190201e+303, NaN, NaN, 1.18182239014916e-125, NaN, NaN, NaN, NaN, NaN, NaN, 1.0840889...
## ## isj ## load("isj.Rdata") head(isj) plot(isj[,2:3],type="n",main="Elevation",asp=1) na.idx=which(is.na(isj$elev)) elev.star=isj$elev[-na.idx] norm.elev=(elev.star-min(elev.star))/(max(elev.star)-min(elev.star)) points(isj[-na.idx,2:3],pch=20,col=grey(1-norm.elev)) points(isj[1:307,2:3],pch=4,col="red") occ=isj...
/ExampleCode/CorrelatedResids.r
no_license
TheMetaphysicalCrook/STAT511
R
false
false
2,066
r
## ## isj ## load("isj.Rdata") head(isj) plot(isj[,2:3],type="n",main="Elevation",asp=1) na.idx=which(is.na(isj$elev)) elev.star=isj$elev[-na.idx] norm.elev=(elev.star-min(elev.star))/(max(elev.star)-min(elev.star)) points(isj[-na.idx,2:3],pch=20,col=grey(1-norm.elev)) points(isj[1:307,2:3],pch=4,col="red") occ=isj...
source('library/boot.R') mean.homicides <- sapply(zipcodes, function (z) {with(subset(homicides, Zipcode == z), mean(Probability))}) threshold <- 0.05 most.dangerous.zipcodes <- zipcodes[which(mean.homicides > threshold)] worst.homicides <- subset(homicides, Zipcode %in% most.dangerous.zipcodes) worst.homicides$Z...
/visualizations/historical_trends.R
no_license
johnmyleswhite/analytics_x_prize
R
false
false
644
r
source('library/boot.R') mean.homicides <- sapply(zipcodes, function (z) {with(subset(homicides, Zipcode == z), mean(Probability))}) threshold <- 0.05 most.dangerous.zipcodes <- zipcodes[which(mean.homicides > threshold)] worst.homicides <- subset(homicides, Zipcode %in% most.dangerous.zipcodes) worst.homicides$Z...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Measure.R \name{makeMeasure} \alias{makeMeasure} \alias{Measure} \title{Construct performance measure.} \usage{ makeMeasure( id, minimize, properties = character(0L), fun, extra.args = list(), aggr = test.mean, best = NULL, wo...
/man/makeMeasure.Rd
no_license
fdrennan/mlr
R
false
true
4,420
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Measure.R \name{makeMeasure} \alias{makeMeasure} \alias{Measure} \title{Construct performance measure.} \usage{ makeMeasure( id, minimize, properties = character(0L), fun, extra.args = list(), aggr = test.mean, best = NULL, wo...
# Take the file topicHierarchy.tab and convert to JSON nested format # Note this could probably be done much easier just by adding a JSON bracket to each line of the text file? library(RJSONIO) try(setwd("~/OneDrive - Cardiff University/Research/Bristol/CHIELD/CHIELD_Online/processing/")) # use readLines to work ou...
/processing/makeTopicHierarchy.R
no_license
CHIELDOnline/CHIELD
R
false
false
3,561
r
# Take the file topicHierarchy.tab and convert to JSON nested format # Note this could probably be done much easier just by adding a JSON bracket to each line of the text file? library(RJSONIO) try(setwd("~/OneDrive - Cardiff University/Research/Bristol/CHIELD/CHIELD_Online/processing/")) # use readLines to work ou...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/housekeeping.R \name{GetPleguezuelosManzanoIndelSignaturesData} \alias{GetPleguezuelosManzanoIndelSignaturesData} \title{Returns the Pleguezuelos-Manzano indel reference signature data} \usage{ GetPleguezuelosManzanoIndelSignaturesData() } \v...
/man/GetPleguezuelosManzanoIndelSignaturesData.Rd
no_license
Honglab-Research/MutaliskR
R
false
true
526
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/housekeeping.R \name{GetPleguezuelosManzanoIndelSignaturesData} \alias{GetPleguezuelosManzanoIndelSignaturesData} \title{Returns the Pleguezuelos-Manzano indel reference signature data} \usage{ GetPleguezuelosManzanoIndelSignaturesData() } \v...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/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="mse",alpha=0.9,family="gaussian",standardize=TRUE) sink('./NSCLC_089.txt',append=TRUE) pr...
/Model/EN/Correlation/NSCLC/NSCLC_089.R
no_license
esbgkannan/QSMART
R
false
false
347
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/Correlation/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="mse",alpha=0.9,family="gaussian",standardize=TRUE) sink('./NSCLC_089.txt',append=TRUE) pr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_functions.R \name{plotSimulatedThresholds} \alias{plotSimulatedThresholds} \title{Plots simulation data for QTLseq analysis} \usage{ plotSimulatedThresholds(SNPset = NULL, popStruc = "F2", bulkSize, depth = NULL, replications = 100...
/man/plotSimulatedThresholds.Rd
no_license
bioShaun/QTLseqr
R
false
true
1,910
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plotting_functions.R \name{plotSimulatedThresholds} \alias{plotSimulatedThresholds} \title{Plots simulation data for QTLseq analysis} \usage{ plotSimulatedThresholds(SNPset = NULL, popStruc = "F2", bulkSize, depth = NULL, replications = 100...
#!/usr/bin/env Rscript library(GenomicRanges) load("ensemble_construction_workplace.RData") GEMSTAT_init_BOlinear(.exp.nu = 1, .dir="/shared-mounts/sinhas/tabebor2/ER_Project/Model/GEMSTAT/based_on_linear", .GEMSTAT_call = "/shared-mounts/sinhas/tabebor2/GEMSTAT_git/my_fork/...
/Ensemble_based_on_linear_creator.R
no_license
ShayanBordbar/ER_scripts
R
false
false
3,134
r
#!/usr/bin/env Rscript library(GenomicRanges) load("ensemble_construction_workplace.RData") GEMSTAT_init_BOlinear(.exp.nu = 1, .dir="/shared-mounts/sinhas/tabebor2/ER_Project/Model/GEMSTAT/based_on_linear", .GEMSTAT_call = "/shared-mounts/sinhas/tabebor2/GEMSTAT_git/my_fork/...
\name{residuals.dppm} \alias{residuals.dppm} \title{ Residuals for Fitted Determinantal Point Process Model } \description{ Given a determinantal point process model fitted to a point pattern, compute residuals. } \usage{ \method{residuals}{dppm}(object, \dots) } \arguments{ \item{object}{ The fitted dete...
/man/residuals.dppm.Rd
no_license
spatstat/spatstat.core
R
false
false
1,131
rd
\name{residuals.dppm} \alias{residuals.dppm} \title{ Residuals for Fitted Determinantal Point Process Model } \description{ Given a determinantal point process model fitted to a point pattern, compute residuals. } \usage{ \method{residuals}{dppm}(object, \dots) } \arguments{ \item{object}{ The fitted dete...
cb.print.evaluation <- function (period = 10) { callback <- function(env = parent.frame()) { if (is.null(env$time)){ env$time = Sys.time() } i <- env$iteration if (i == env$begin_iteration){ cat('Iteration', i ,"\n") } if ( (i>env$begin_iteration & i<(10+env$be...
/R/cb.print.evaluation.r
no_license
cran/twangRDC
R
false
false
679
r
cb.print.evaluation <- function (period = 10) { callback <- function(env = parent.frame()) { if (is.null(env$time)){ env$time = Sys.time() } i <- env$iteration if (i == env$begin_iteration){ cat('Iteration', i ,"\n") } if ( (i>env$begin_iteration & i<(10+env$be...
library(purrr) #Elbow method library(cluster) #Silhouette method library(gridExtra) #Silhouette method library(grid) #Silhouette method library(NbClust) #Silhouette method library(factoextra) #Silhouette method data <- read.csv("Mall_Customers.csv") #Determine optimal number of clusters #Intra-cluster Sum of Squares ...
/customerSegmentation.R
no_license
msyphus/customer-segmentation
R
false
false
2,462
r
library(purrr) #Elbow method library(cluster) #Silhouette method library(gridExtra) #Silhouette method library(grid) #Silhouette method library(NbClust) #Silhouette method library(factoextra) #Silhouette method data <- read.csv("Mall_Customers.csv") #Determine optimal number of clusters #Intra-cluster Sum of Squares ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write.mzXML.R \name{write.mzXML} \alias{write.mzXML} \title{Write a standard mzXML.} \usage{ write.mzXML(mzXML, filename, precision = c("32", "64")) } \arguments{ \item{mzXML}{The generic mzXML object} \item{filename}{A mzXML file...
/man/write.mzXML.Rd
no_license
cran/CorrectOverloadedPeaks
R
false
true
994
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/write.mzXML.R \name{write.mzXML} \alias{write.mzXML} \title{Write a standard mzXML.} \usage{ write.mzXML(mzXML, filename, precision = c("32", "64")) } \arguments{ \item{mzXML}{The generic mzXML object} \item{filename}{A mzXML file...
plus = as.symbol('+') colon = as.symbol(':') star = as.symbol('*') tilde = as.symbol('~') varCompScoreTests = c(score='LinScore',score='VM03',score='SS95') varCompTests=c(varCompScoreTests,score='HP01',RLRT='RLRT') #,'Wald', 'RWD88') # varCompTestTypes = structure(names(varCompTests), names=varCompTests) informa...
/varComp/R/varComp-const.R
no_license
ingted/R-Examples
R
false
false
492
r
plus = as.symbol('+') colon = as.symbol(':') star = as.symbol('*') tilde = as.symbol('~') varCompScoreTests = c(score='LinScore',score='VM03',score='SS95') varCompTests=c(varCompScoreTests,score='HP01',RLRT='RLRT') #,'Wald', 'RWD88') # varCompTestTypes = structure(names(varCompTests), names=varCompTests) informa...
#Function for creating tokenized DTMs from a corpus using a dictionary tokenize_corpus <- function(ng, corpus, weighting, dictionary) { dict_wc <- nchar(dictionary) - nchar(gsub(" ",'',dictionary)) + 1 dtm_list <- list() colname_list <- list() for (i in 1:length(ng)) { tokenizer <- function(x) {unlist(lapp...
/datascience-master/functions/tokenize_corpus.R
no_license
goughgorski/clusteryourself
R
false
false
875
r
#Function for creating tokenized DTMs from a corpus using a dictionary tokenize_corpus <- function(ng, corpus, weighting, dictionary) { dict_wc <- nchar(dictionary) - nchar(gsub(" ",'',dictionary)) + 1 dtm_list <- list() colname_list <- list() for (i in 1:length(ng)) { tokenizer <- function(x) {unlist(lapp...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.09756868649237e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.2955...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615833216-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,049
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.09756868649237e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.2955...
# This file was generated by Rcpp::compileAttributes # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 .htdpinit <- function() { invisible(.Call('htdp_htdpinit', PACKAGE = 'htdp')) } displace <- function(xy, t0, t1, iopt) { .Call('htdp_displace', PACKAGE = 'htdp', xy, t0, t1, iopt) }
/R/RcppExports.R
no_license
cran/htdp
R
false
false
313
r
# This file was generated by Rcpp::compileAttributes # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 .htdpinit <- function() { invisible(.Call('htdp_htdpinit', PACKAGE = 'htdp')) } displace <- function(xy, t0, t1, iopt) { .Call('htdp_displace', PACKAGE = 'htdp', xy, t0, t1, iopt) }
#------------------------------------------------------------------------------- # Initialization rm(list = ls(all = TRUE), envir = .GlobalEnv) require('ProjectTemplate') load.project() enableJIT(3) #------------------------------------------------------------------------------- # Configuration input.file <- 'cac...
/src/parse_murally.R
permissive
adrianwebb/r-classifier
R
false
false
511
r
#------------------------------------------------------------------------------- # Initialization rm(list = ls(all = TRUE), envir = .GlobalEnv) require('ProjectTemplate') load.project() enableJIT(3) #------------------------------------------------------------------------------- # Configuration input.file <- 'cac...
################################################################################ ### General utils #' @name convertToSf #' @title convertToSf #' @description convert spdf & df to sf #' @param spdf spdf #' @param df df #' @param spdfid spdfid #' @param dfid dfid #' @return an sf object #' @noRd convertToSf <- function...
/R/utils.R
no_license
arthurgailes/cartography
R
false
false
9,347
r
################################################################################ ### General utils #' @name convertToSf #' @title convertToSf #' @description convert spdf & df to sf #' @param spdf spdf #' @param df df #' @param spdfid spdfid #' @param dfid dfid #' @return an sf object #' @noRd convertToSf <- function...
# The Main Diving Script # # I provide this version of the script for use starting # Wednesday July 9. I will expand it through the rest of # this case study. It is a reduced version of what we # did Monday/Tuesday, but I have removed some things. ################################### # Special note for Wednesday July...
/Diving.R
no_license
jakezhaojb/Diving_problem
R
false
false
5,774
r
# The Main Diving Script # # I provide this version of the script for use starting # Wednesday July 9. I will expand it through the rest of # this case study. It is a reduced version of what we # did Monday/Tuesday, but I have removed some things. ################################### # Special note for Wednesday July...
#' Group input by rows #' #' \code{rowwise} is used for the results of \code{\link{do}} when you #' create list-variables. It is also useful to support arbitrary #' complex operations that need to be applied to each row. #' #' Currently \code{rowwise} grouping only works with data frames. Its #' main impact is to allow...
/R/rowwise.r
no_license
kbroman/dplyr
R
false
false
1,728
r
#' Group input by rows #' #' \code{rowwise} is used for the results of \code{\link{do}} when you #' create list-variables. It is also useful to support arbitrary #' complex operations that need to be applied to each row. #' #' Currently \code{rowwise} grouping only works with data frames. Its #' main impact is to allow...
browser() options( stringsAsFactors=FALSE) library(lpSolve,lib.loc="/Users/amita/software/Rpackage") library(irr,lib.loc="/Users/amita/software/Rpackage") setwd("~/git/summary_repo/Summary/src/Similarity_Labels/Similarity_Data/gay-rights-debates/MTdata_cluster/Labels_Updated/AllMT_task/") #sets R's working directory...
/Summary/Rscript/kirpendorrfalpha.R
no_license
amitamisra/Summary_Dialogs
R
false
false
716
r
browser() options( stringsAsFactors=FALSE) library(lpSolve,lib.loc="/Users/amita/software/Rpackage") library(irr,lib.loc="/Users/amita/software/Rpackage") setwd("~/git/summary_repo/Summary/src/Similarity_Labels/Similarity_Data/gay-rights-debates/MTdata_cluster/Labels_Updated/AllMT_task/") #sets R's working directory...
# ******************************************************************************* # OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
/docker/R/lib/fast99.R
permissive
jmarrec/OpenStudio-server
R
false
false
8,265
r
# ******************************************************************************* # OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
#--------------------------------------**--------------------------------------# # File Name: stat305-hw3-soln.R # Purpose: #--------------------------------------**--------------------------------------# # Ch. 3 Ex. 12 x1 <- c( 2, 1, 1, 1, 0, 0, -2, 10, -5, 1) x2 <- c(-2, -6, -1, -2, -1, -2, -1, -1, -1, -5) x...
/materials/hw/hw3/stat305-hw3-soln.R
no_license
HaniehBaktash/stat305.github.io
R
false
false
1,434
r
#--------------------------------------**--------------------------------------# # File Name: stat305-hw3-soln.R # Purpose: #--------------------------------------**--------------------------------------# # Ch. 3 Ex. 12 x1 <- c( 2, 1, 1, 1, 0, 0, -2, 10, -5, 1) x2 <- c(-2, -6, -1, -2, -1, -2, -1, -1, -1, -5) x...
generate = function(day){ # 성별 S = rep(sample(c('M','F'),1),day) # 나이 A = rep(sample(20:85, 1),day) # 기저질병 D = rep(sample(c(TRUE, FALSE), 1),day) ## 체온 T = sample(c(0,1,2,3), day, replace = TRUE, prob = c(0.6,0.2,0.1,0.1)) T = sapply(T, function(i){ if(i==3){ # <= 35.0 return(sa...
/generateSample.R
permissive
shinykorea/corona-triage
R
false
false
3,847
r
generate = function(day){ # 성별 S = rep(sample(c('M','F'),1),day) # 나이 A = rep(sample(20:85, 1),day) # 기저질병 D = rep(sample(c(TRUE, FALSE), 1),day) ## 체온 T = sample(c(0,1,2,3), day, replace = TRUE, prob = c(0.6,0.2,0.1,0.1)) T = sapply(T, function(i){ if(i==3){ # <= 35.0 return(sa...
#' Plots multiple b-scored normalised platemaps #' #' Transforms numerical values using the b-score normalisation process to #' account for row and column effects. Uses well and plate labels to plot the #' normalised values in the form of microtitre plates. Works for 96, 384 and #' 1536 well plates. #' #' @param data N...
/R/b_grid.R
no_license
jayhesselberth/platetools
R
false
false
2,745
r
#' Plots multiple b-scored normalised platemaps #' #' Transforms numerical values using the b-score normalisation process to #' account for row and column effects. Uses well and plate labels to plot the #' normalised values in the form of microtitre plates. Works for 96, 384 and #' 1536 well plates. #' #' @param data N...
#' Convert an arsenal::tableby object to a kable #' #' Create a funnel plot from a dataframe containing at least two columns (i.e numerator and denominator) #' It is currently working only with binary outcome, continuous outcomes will be supported in future #' #' @param tableby tableby object #' @param label_translatio...
/R/tableby_to_kable.R
permissive
farhadsalimi/registryr
R
false
false
1,524
r
#' Convert an arsenal::tableby object to a kable #' #' Create a funnel plot from a dataframe containing at least two columns (i.e numerator and denominator) #' It is currently working only with binary outcome, continuous outcomes will be supported in future #' #' @param tableby tableby object #' @param label_translatio...
#' @title A `drake`-plan-like pipeline archetype #' @description Simplify target specification in pipelines. #' @details Allows targets with just targets and commands #' to be written in the pipeline as `target = command` instead of #' `tar_target(target, command)`. Also supports ordinary #' target objects if the...
/R/tar_plan.R
permissive
limnoliver/tarchetypes
R
false
false
2,162
r
#' @title A `drake`-plan-like pipeline archetype #' @description Simplify target specification in pipelines. #' @details Allows targets with just targets and commands #' to be written in the pipeline as `target = command` instead of #' `tar_target(target, command)`. Also supports ordinary #' target objects if the...
#the code to create the third plot #set working directory and read in data #will need to adjust WD to wherever cloned directory is setwd("C:/Users/wbradley/Desktop/datasciencecoursera/ExData_Plotting1") #decided to read in only relevant rows, and relabel columns plotdata <- read.table("household_power_consumption.tx...
/plot3.R
no_license
WJHBradley/ExData_Plotting1
R
false
false
1,115
r
#the code to create the third plot #set working directory and read in data #will need to adjust WD to wherever cloned directory is setwd("C:/Users/wbradley/Desktop/datasciencecoursera/ExData_Plotting1") #decided to read in only relevant rows, and relabel columns plotdata <- read.table("household_power_consumption.tx...
##### this version attempts to optimize the code in any manner possible... #clear the workspace of any residual data rm(list=ls()) boxOfficeData<-read.csv("./data/boxOfficeData_2014.csv", header=TRUE, sep=",") attach(boxOfficeData) cols<-colnames(boxOfficeData) #read in the list of representative columns - these col...
/Applied Econometrics/ASSIGNMENT 1 - go bollywood/latest/bollywood/movieEarningPredictionv2.1.R
no_license
snimkar0924/PGCDS
R
false
false
3,905
r
##### this version attempts to optimize the code in any manner possible... #clear the workspace of any residual data rm(list=ls()) boxOfficeData<-read.csv("./data/boxOfficeData_2014.csv", header=TRUE, sep=",") attach(boxOfficeData) cols<-colnames(boxOfficeData) #read in the list of representative columns - these col...
labs <- elr_linelist %>% filter(str_detect(str_to_lower(auth_facility), "urgent care|urgentcare|afc|gohealth|physicianone|prohealth uc|physician one|carewell|alliance uc|uc-#")) %>% mutate (auth_facility = str_to_lower(auth_facility), urgentcaregroup = ifelse(str_detect(auth_facility, "afc"), "AFC", ...
/urgentcares.R
no_license
HuanW1/SDE
R
false
false
1,683
r
labs <- elr_linelist %>% filter(str_detect(str_to_lower(auth_facility), "urgent care|urgentcare|afc|gohealth|physicianone|prohealth uc|physician one|carewell|alliance uc|uc-#")) %>% mutate (auth_facility = str_to_lower(auth_facility), urgentcaregroup = ifelse(str_detect(auth_facility, "afc"), "AFC", ...
#' Custom createCoveriate Settings #' #' This function is Custom createCoveriate Settings. #' @param connection,oracleTempSchema,cdmDatabaseSchema,cohortTable,cohortId,cdmVersion,rowIdField,covariateSettings,aggregated #' @keywordsa createCovariateSetting #' @examples #' getTopicFromNoteSettings() #' @export getTopicFr...
/R/getTopicFromNoteSettings.R
permissive
ABMI/noteCovariateExtraction
R
false
false
23,668
r
#' Custom createCoveriate Settings #' #' This function is Custom createCoveriate Settings. #' @param connection,oracleTempSchema,cdmDatabaseSchema,cohortTable,cohortId,cdmVersion,rowIdField,covariateSettings,aggregated #' @keywordsa createCovariateSetting #' @examples #' getTopicFromNoteSettings() #' @export getTopicFr...
require(e1071) # Enter your code here. Read input from STDIN. Print output to STDOUT x <- suppressWarnings(readLines(file("stdin"))); x <- x[-1]; x <- matrix(unlist(strsplit(x,","),","),byrow=TRUE,ncol=18); #append(x,matrix(x[x[,18] == "-1",],ncol=18)) #x <- rbind(x, c("bass",0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,...
/Programming Assignment 7/NiaveBayesClassifier.R
no_license
ShrashtiSinghal/Data-Mining
R
false
false
823
r
require(e1071) # Enter your code here. Read input from STDIN. Print output to STDOUT x <- suppressWarnings(readLines(file("stdin"))); x <- x[-1]; x <- matrix(unlist(strsplit(x,","),","),byrow=TRUE,ncol=18); #append(x,matrix(x[x[,18] == "-1",],ncol=18)) #x <- rbind(x, c("bass",0,0,1,0,0,1,1,1,1,0,0,1,0,1,0,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/events.R \name{read_isruc_metadata} \alias{read_isruc_metadata} \title{Read ISRUC-Sleep dataset records metadata.} \usage{ read_isruc_metadata(dir) } \arguments{ \item{dir}{ISRUC dataset directory.} } \value{ A dataframe containing records me...
/man/read_isruc_metadata.Rd
permissive
Jun-Lizst/sleepr
R
false
true
431
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/events.R \name{read_isruc_metadata} \alias{read_isruc_metadata} \title{Read ISRUC-Sleep dataset records metadata.} \usage{ read_isruc_metadata(dir) } \arguments{ \item{dir}{ISRUC dataset directory.} } \value{ A dataframe containing records me...
#' Reading dates and focing from filename #' #' @param dir dir with raw files #' #' @return a database with Date(POSIX) and forcing from filenames #' @export create_dates_forcing #' #' @examples create_dates_forcing <- function(dir){ Dates <- strsplit(substr(dir, start = nchar(dir) - 27, stop = nchar(dir) - 3), '-') ...
/R/dates_and_forcing.R
no_license
hanel/advanced.r.stuff
R
false
false
627
r
#' Reading dates and focing from filename #' #' @param dir dir with raw files #' #' @return a database with Date(POSIX) and forcing from filenames #' @export create_dates_forcing #' #' @examples create_dates_forcing <- function(dir){ Dates <- strsplit(substr(dir, start = nchar(dir) - 27, stop = nchar(dir) - 3), '-') ...
\name{center_data} \alias{center_data} \title{Centers the observations in a matrix by their respective class sample means} \usage{ center_data(x, y) } \arguments{ \item{x}{matrix containing the training data. The rows are the sample observations, and the columns are the features.} \item{y}{vector of class la...
/man/center_data.Rd
no_license
wfudong/sparsediscrim
R
false
false
544
rd
\name{center_data} \alias{center_data} \title{Centers the observations in a matrix by their respective class sample means} \usage{ center_data(x, y) } \arguments{ \item{x}{matrix containing the training data. The rows are the sample observations, and the columns are the features.} \item{y}{vector of class la...
#Finding Andy's Data #Jazmyn Winzer #jiwinzer@email.arizona.com #2020/3/23 library(tidyverse) eBut <- read_csv("eBut Data.csv") glimpse(eBut) eBut.AH = eBut %>% filter(Observer == "Andrew Hogan") write.csv(eBut.AH, "eBut_ah.csv")
/Saving Andy's Data.R
no_license
jazwin26/Tohono-Chul-
R
false
false
249
r
#Finding Andy's Data #Jazmyn Winzer #jiwinzer@email.arizona.com #2020/3/23 library(tidyverse) eBut <- read_csv("eBut Data.csv") glimpse(eBut) eBut.AH = eBut %>% filter(Observer == "Andrew Hogan") write.csv(eBut.AH, "eBut_ah.csv")
library(tidyverse) library(janitor) # This data contains monthly temperature deviations in °C from the respective # average temperature in a region during 1991-2020. The data from before 1991 # initally used another reference time period, but values were re-calculated # later on. Note: the variable us49 excludes Haw...
/data-raw/make_temperature.R
permissive
tcweiss/primer.data
R
false
false
1,988
r
library(tidyverse) library(janitor) # This data contains monthly temperature deviations in °C from the respective # average temperature in a region during 1991-2020. The data from before 1991 # initally used another reference time period, but values were re-calculated # later on. Note: the variable us49 excludes Haw...
###### INC118-123 numSamples <- 1000 task_len <- 118 fileName <- paste("inc",task_len,"-",task_len+2,"_hist_bin_count.txt",sep="") fraction <- 0 count <- -1 for (task_len in c(118,119,120,121,122,123)){ count <- count+1 fraction <- 0 dataFileName <- paste("INC",task_len,".",fraction,".dat",sep="") INC_label <- pa...
/pt_characterization/protocol/intermediate_data/pt_hist_sodb9.r
no_license
yksuh-azcs/papers
R
false
false
76,980
r
###### INC118-123 numSamples <- 1000 task_len <- 118 fileName <- paste("inc",task_len,"-",task_len+2,"_hist_bin_count.txt",sep="") fraction <- 0 count <- -1 for (task_len in c(118,119,120,121,122,123)){ count <- count+1 fraction <- 0 dataFileName <- paste("INC",task_len,".",fraction,".dat",sep="") INC_label <- pa...
head(Brain)
/inst/snippets/Exploration9.1.3.R
no_license
rpruim/ISIwithR
R
false
false
13
r
head(Brain)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ger_indices.R \name{ger_GRS} \alias{ger_GRS} \title{Germinated Seed Number} \usage{ ger_GRS(evalName, data) } \arguments{ \item{evalName}{Prefix of the names of the periods of evaluation.} \item{data}{The name of the data frame co...
/man/ger_GRS.Rd
no_license
cran/GerminaR
R
false
true
558
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ger_indices.R \name{ger_GRS} \alias{ger_GRS} \title{Germinated Seed Number} \usage{ ger_GRS(evalName, data) } \arguments{ \item{evalName}{Prefix of the names of the periods of evaluation.} \item{data}{The name of the data frame co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gdal_grid.R \name{gdal_grid} \alias{gdal_grid} \title{gdal_grid} \usage{ gdal_grid( src_datasource, dst_filename, ot, of, txe, tye, outsize, a_srs, zfield, z_increase, z_multiply, a, spat, clipsrc, clipsrcsql, ...
/man/gdal_grid.Rd
no_license
cran/gdalUtils
R
false
true
13,376
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gdal_grid.R \name{gdal_grid} \alias{gdal_grid} \title{gdal_grid} \usage{ gdal_grid( src_datasource, dst_filename, ot, of, txe, tye, outsize, a_srs, zfield, z_increase, z_multiply, a, spat, clipsrc, clipsrcsql, ...
# Swaggy Jenkins # # Jenkins API clients generated from Swagger / Open API specification # # OpenAPI spec version: 1.0.0 # Contact: blah@cliffano.com # Generated by: https://openapi-generator.tech #' HudsonMasterComputermonitorData Class #' #' @field hudson.node_monitors.SwapSpaceMonitor #' @field hudson.node_monito...
/clients/r/generated/R/HudsonMasterComputermonitorData.r
permissive
rahulyhg/swaggy-jenkins
R
false
false
10,285
r
# Swaggy Jenkins # # Jenkins API clients generated from Swagger / Open API specification # # OpenAPI spec version: 1.0.0 # Contact: blah@cliffano.com # Generated by: https://openapi-generator.tech #' HudsonMasterComputermonitorData Class #' #' @field hudson.node_monitors.SwapSpaceMonitor #' @field hudson.node_monito...
# ____ _ # / ___| / \ Genetic Algorithm # | | _ / _ \ for # | |_| |/ ___ \ Subset Selection # \____/_/ \_\ # # <https://www.jstatsoft.org/article/view/v053i04/v53i04.pdf> labels <- c("Ca","P","pH","Sand","SOC") label <- labels[1] cost <- c(1e0,1e0,1e0,1e0,1e0)*1e4 names(cost) <- labels...
/procedures/feature_selection_via_genetic_algorithm.R
no_license
data-science-competitions/Kaggle-Africa-Soil-Property-Prediction-Challenge
R
false
false
5,892
r
# ____ _ # / ___| / \ Genetic Algorithm # | | _ / _ \ for # | |_| |/ ___ \ Subset Selection # \____/_/ \_\ # # <https://www.jstatsoft.org/article/view/v053i04/v53i04.pdf> labels <- c("Ca","P","pH","Sand","SOC") label <- labels[1] cost <- c(1e0,1e0,1e0,1e0,1e0)*1e4 names(cost) <- labels...
#' Render / Convert PDF #' #' High quality conversion of pdf page(s) to png, jpeg or tiff format, or render into a #' raw bitmap array for further processing in R. #' #' @export #' @name rendering #' @rdname pdf_render_page #' @param pdf file path or raw vector with pdf data #' @param page which page to render #' @para...
/R/render.R
permissive
ropensci/pdftools
R
false
false
3,850
r
#' Render / Convert PDF #' #' High quality conversion of pdf page(s) to png, jpeg or tiff format, or render into a #' raw bitmap array for further processing in R. #' #' @export #' @name rendering #' @rdname pdf_render_page #' @param pdf file path or raw vector with pdf data #' @param page which page to render #' @para...
##' @include semiParametric.R survivalModels.R NULL ##' Method to calculate model restricted means ##' @name calcModelRmst ##' @rdname calcModelRmst-methods ##' @param object (SurvivalModel) A survival model - note there cannot be ##' any covariates and armAsFactor must be FALSE ##' @param ... additional arguments f...
/R/rmst.R
no_license
tomsydney/sibyl
R
false
false
7,657
r
##' @include semiParametric.R survivalModels.R NULL ##' Method to calculate model restricted means ##' @name calcModelRmst ##' @rdname calcModelRmst-methods ##' @param object (SurvivalModel) A survival model - note there cannot be ##' any covariates and armAsFactor must be FALSE ##' @param ... additional arguments f...
library(testthat) source("functions.R") expect_equal(add_nums(2, 2), 4) actual_size <- nrow(random_half_split(iris)) expect_equal(actual_size, 75)
/test.R
no_license
codememe00/testing_cl_r
R
false
false
151
r
library(testthat) source("functions.R") expect_equal(add_nums(2, 2), 4) actual_size <- nrow(random_half_split(iris)) expect_equal(actual_size, 75)
testlist <- list(ends = c(-1125300777L, 765849512L, -1760772615L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
/IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609860342-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
729
r
testlist <- list(ends = c(-1125300777L, 765849512L, -1760772615L, 791623263L, 1358782356L, -128659642L, -14914341L, 1092032927L, 1837701012L, 1632068659L), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,...
require(MASS) # Helper function to update beta distribution parameters update_beta <- function(a, b, successes, failures) { a_new <- a + successes b_new <- b + failures return(c(a_new, b_new)) } # Helper function to sample correlation coefficients given a population correlation sample_from_cor <- function(rho, ...
/RStructuralCovariance/R/beta.R
no_license
yohanyee/StructuralCovariance
R
false
false
5,619
r
require(MASS) # Helper function to update beta distribution parameters update_beta <- function(a, b, successes, failures) { a_new <- a + successes b_new <- b + failures return(c(a_new, b_new)) } # Helper function to sample correlation coefficients given a population correlation sample_from_cor <- function(rho, ...
library(sqldf) acs <- read.csv("getdata4.csv") unique(acs$AGEP) sqldf("select distinct AGEP from acs")
/03 - getting_and_cleaning_data/week_2/GCD_23.R
no_license
octopacks/coursera_data_science_jhu
R
false
false
102
r
library(sqldf) acs <- read.csv("getdata4.csv") unique(acs$AGEP) sqldf("select distinct AGEP from acs")
sigma_ewma <- function(pvProductDf, pLogReturns, plambda) { Np <- ncol(pvProductDf) EWMA_NumCol <- sum(1:ncol(pLogReturns)) EWMA_NumRow <- nrow(pvProductDf) EWMA <- matrix(rep(0, EWMA_NumCol * EWMA_NumRow), nrow = EWMA_NumRow, ncol = EWMA_NumCol) for (i in 2:EWMA_NumRow){ for (k in 1:Np){ EWMA[i,k...
/sigma.R
no_license
brunohp89/VaR_EWMA
R
false
false
1,126
r
sigma_ewma <- function(pvProductDf, pLogReturns, plambda) { Np <- ncol(pvProductDf) EWMA_NumCol <- sum(1:ncol(pLogReturns)) EWMA_NumRow <- nrow(pvProductDf) EWMA <- matrix(rep(0, EWMA_NumCol * EWMA_NumRow), nrow = EWMA_NumRow, ncol = EWMA_NumCol) for (i in 2:EWMA_NumRow){ for (k in 1:Np){ EWMA[i,k...
# All State Insurance Claims Severity Prediction # Date: 27 Oct 2016 # Load Required packages library(xgboost) library(randomForest) library(data.table) library(Matrix) library(FeatureHashing) library(dplyr) library(readr) library(Metrics) library(caret) library(ggplot2) library(data.table) #Set the current working ...
/ClaimSeverity_AR.R
no_license
shermina-dsd/IWD-Hackathon
R
false
false
3,990
r
# All State Insurance Claims Severity Prediction # Date: 27 Oct 2016 # Load Required packages library(xgboost) library(randomForest) library(data.table) library(Matrix) library(FeatureHashing) library(dplyr) library(readr) library(Metrics) library(caret) library(ggplot2) library(data.table) #Set the current working ...
#' Add a variable of a higher interval to a data frame #' #' Take the datetime variable in a data frame and map this #' to a variable of a higher interval. The mapping is added to the data frame #' in a new variable. After applying \code{thicken} the user can aggregate the #' other variables in the data frame to the hi...
/R/thicken.R
no_license
foundinblank/padr
R
false
false
8,762
r
#' Add a variable of a higher interval to a data frame #' #' Take the datetime variable in a data frame and map this #' to a variable of a higher interval. The mapping is added to the data frame #' in a new variable. After applying \code{thicken} the user can aggregate the #' other variables in the data frame to the hi...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-shakespeare.R \docType{data} \name{shakespeare_1} \alias{shakespeare_1} \title{A Comedy of Errors} \format{ igraph object } \source{ Raw data downloaded from https://github.com/mallaham/Shakespeare-Plays } \usage{ shakespeare_1 } \descri...
/man/shakespeare_1.Rd
permissive
schochastics/networkdata
R
false
true
406
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data-shakespeare.R \docType{data} \name{shakespeare_1} \alias{shakespeare_1} \title{A Comedy of Errors} \format{ igraph object } \source{ Raw data downloaded from https://github.com/mallaham/Shakespeare-Plays } \usage{ shakespeare_1 } \descri...
# 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/src/obj/bmtCatch.r
no_license
gustavdelius/BEMTOOL2.5
R
false
false
1,434
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...
options(scipen=999) library(ape) library(phytools) library(RColorBrewer) library(stats) # read in proteins file proteins <- read.FASTA("blochmania_AA_all.fasta", type="AA") # read in blast results blast <- read.table("blochmania_AA_all.blast", sep="\t", stringsAsFactors=F) colnames(blast) <- c("query", "subject", "i...
/02_blochmannia/13_pangenome/03_analyze_blastp_results.r
permissive
Weihankk/camponotus_genomes1
R
false
false
6,814
r
options(scipen=999) library(ape) library(phytools) library(RColorBrewer) library(stats) # read in proteins file proteins <- read.FASTA("blochmania_AA_all.fasta", type="AA") # read in blast results blast <- read.table("blochmania_AA_all.blast", sep="\t", stringsAsFactors=F) colnames(blast) <- c("query", "subject", "i...
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
/DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615834301-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
2,047
r
testlist <- list(Beta = 0, CVLinf = 86341236051411296, FM = 1.53632495265886e-311, L50 = 0, L95 = 0, LenBins = c(2.0975686864138e+162, -2.68131210337361e-144, -1.11215735981244e+199, -4.48649879577108e+143, 1.6611802228813e+218, 900371.947279558, 1.07063092954708e+238, 2.88003257377011e-142, 1.29554...
`plot_aggregate_data` <- function(aggr,classes,classcolors,...) { for (i in 1:length(classes)) { rates <- aggr$x[aggr$Class %in% classes[i]] plot.xy(xy.coords(x=(1:length(rates))/length(rates),y=rates), col=classcolors[i],...) } }
/nmica-r-package/R/plot_aggregate_data.R
no_license
mz2/r-utilities
R
false
false
253
r
`plot_aggregate_data` <- function(aggr,classes,classcolors,...) { for (i in 1:length(classes)) { rates <- aggr$x[aggr$Class %in% classes[i]] plot.xy(xy.coords(x=(1:length(rates))/length(rates),y=rates), col=classcolors[i],...) } }
#------------------------------------------------------------------------------- # Build tests svc <- Client( client_info = ClientInfo( endpoint = "https://test" ) ) svc$handlers$build <- HandlerList(restxml_build) #------------------------------------------------------------------------------- # REST tests...
/paws.common/tests/testthat/test_handlers_restxml.R
permissive
paws-r/paws
R
false
false
25,897
r
#------------------------------------------------------------------------------- # Build tests svc <- Client( client_info = ClientInfo( endpoint = "https://test" ) ) svc$handlers$build <- HandlerList(restxml_build) #------------------------------------------------------------------------------- # REST tests...
library(testthat) library(helloRpkg) test_check("helloRpkg")
/tests/testthat.R
no_license
maximilianmordig/helloRpkg
R
false
false
62
r
library(testthat) library(helloRpkg) test_check("helloRpkg")
.libPaths(c("/home/kristinariemer/r_libs/", .libPaths())) ###########Pull input data########### # gcc from ecoforecast.org targets_gcc <- readr::read_csv("https://data.ecoforecast.org/targets/phenology/phenology-targets.csv.gz") date <- format(max(targets_gcc$time), format = "%m-%d-%y") write.csv(targets_gcc, ...
/ML/01_pull_gcc_weather.R
permissive
genophenoenvo/neon-efi-challenge
R
false
false
3,624
r
.libPaths(c("/home/kristinariemer/r_libs/", .libPaths())) ###########Pull input data########### # gcc from ecoforecast.org targets_gcc <- readr::read_csv("https://data.ecoforecast.org/targets/phenology/phenology-targets.csv.gz") date <- format(max(targets_gcc$time), format = "%m-%d-%y") write.csv(targets_gcc, ...
##.............................................................................. ## Project: Fisher-Boschloo test ## Purpose: Provide functions around Fisher-Boschloo test for the ## comparison of two groups with binary endpoint. ## Input: none ## ...
/R/boschloo-functions.R
permissive
s-kilian/binary
R
false
false
27,743
r
##.............................................................................. ## Project: Fisher-Boschloo test ## Purpose: Provide functions around Fisher-Boschloo test for the ## comparison of two groups with binary endpoint. ## Input: none ## ...
args<-commandArgs(TRUE) i<-args[1] spp<-i # print(i) # if(i=="wgEncodeHaibTfbsGm12891Pu1Pcr1xAlnRep0"){ next } # spp<-gsub(".bam.*","",i) # info<-master[master$spp_filename==i,] print(i) # fl<-system(paste("wc -l /home/wangj2/anearline/encode_Jan2011/meme-chip.signalvalue/spp.optimal.",spp,"/spp.optimal.",spp,".to...
/backend/bin/fimo.top500-1000.random.summary.sge.R
no_license
joshuabhk/factorbook-motif-pipeline
R
false
false
1,906
r
args<-commandArgs(TRUE) i<-args[1] spp<-i # print(i) # if(i=="wgEncodeHaibTfbsGm12891Pu1Pcr1xAlnRep0"){ next } # spp<-gsub(".bam.*","",i) # info<-master[master$spp_filename==i,] print(i) # fl<-system(paste("wc -l /home/wangj2/anearline/encode_Jan2011/meme-chip.signalvalue/spp.optimal.",spp,"/spp.optimal.",spp,".to...
library(plotly) data <- read.csv(results) df <- data.frame(x = 1:3, y = 1:3, ymin = (1:3) - runif(3), ymax = (1:3) + runif(3), xmin = (1:3) - runif(3), xmax = (1:3) + runif(3)) p <- ggplot(results, data = df,aes(x = x, y = y)) + ...
/confidence-intervals2.R
no_license
moneill0/DataVisExperiment
R
false
false
626
r
library(plotly) data <- read.csv(results) df <- data.frame(x = 1:3, y = 1:3, ymin = (1:3) - runif(3), ymax = (1:3) + runif(3), xmin = (1:3) - runif(3), xmax = (1:3) + runif(3)) p <- ggplot(results, data = df,aes(x = x, y = y)) + ...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(readr) library(shiny) library(RJSONIO) library(curl) library(base64enc) # Define server logic r...
/server.R
permissive
guolivar/cona-arrowtown2019
R
false
false
2,424
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(readr) library(shiny) library(RJSONIO) library(curl) library(base64enc) # Define server logic r...
testlist <- list(b = 19L) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
/mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613105247-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
92
r
testlist <- list(b = 19L) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/viz.R \name{cluster_heatmap} \alias{cluster_heatmap} \title{Create clustered Heatmap} \usage{ cluster_heatmap(d, n, colorscheme = c(rev(google_colors$Blue$accent[4]), "black", google_colors$Red$accent[4]), square = F, show = T) } \arguments...
/man/cluster_heatmap.Rd
no_license
joelgsponer/waRRior2
R
false
true
609
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/viz.R \name{cluster_heatmap} \alias{cluster_heatmap} \title{Create clustered Heatmap} \usage{ cluster_heatmap(d, n, colorscheme = c(rev(google_colors$Blue$accent[4]), "black", google_colors$Red$accent[4]), square = F, show = T) } \arguments...
### CLUSTERS ### # Note: this code works exclusively for 3 different clusters! # Import ggplot2 package library(ggplot2) # Import ggalt package library(ggalt) # Import ggfortify package library(g...
/7. Groups/Clusters.R
no_license
rsalaza4/Data-Visualization-with-ggplot2
R
false
false
4,354
r
### CLUSTERS ### # Note: this code works exclusively for 3 different clusters! # Import ggplot2 package library(ggplot2) # Import ggalt package library(ggalt) # Import ggfortify package library(g...
## This file defines common functions used for data processing. load_data_file <- function (file, row_names) { bench <- read.table(file, sep="\t", header=FALSE, col.names=row_names, fill=TRUE) bench$rid = seq_len(nrow(bench)) bench } prepare_vm_names <- function(data) { name_map <- list("Java" ...
/papers/oopsla-2015/scripts/data-processing.R
no_license
smarr/BenchR
R
false
false
2,467
r
## This file defines common functions used for data processing. load_data_file <- function (file, row_names) { bench <- read.table(file, sep="\t", header=FALSE, col.names=row_names, fill=TRUE) bench$rid = seq_len(nrow(bench)) bench } prepare_vm_names <- function(data) { name_map <- list("Java" ...
if (!exists("limited") | !exists("times")) { data <- read.delim("household_power_consumption.txt", sep=";", na.strings="?", colClasses=c("character", "character", "numeric", "numeric"...
/loaddata.R
no_license
mmangino/ExData_Plotting1
R
false
false
695
r
if (!exists("limited") | !exists("times")) { data <- read.delim("household_power_consumption.txt", sep=";", na.strings="?", colClasses=c("character", "character", "numeric", "numeric"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tz.R \name{dtt_set_tz} \alias{dtt_set_tz} \alias{dtt_set_tz.POSIXct} \title{Set Time Zone} \usage{ dtt_set_tz(x, tz = dtt_default_tz(), ...) \method{dtt_set_tz}{POSIXct}(x, tz = dtt_default_tz(), ...) } \arguments{ \item{x}{A date/time vecto...
/man/dtt_set_tz.Rd
permissive
minghao2016/dttr2
R
false
true
931
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tz.R \name{dtt_set_tz} \alias{dtt_set_tz} \alias{dtt_set_tz.POSIXct} \title{Set Time Zone} \usage{ dtt_set_tz(x, tz = dtt_default_tz(), ...) \method{dtt_set_tz}{POSIXct}(x, tz = dtt_default_tz(), ...) } \arguments{ \item{x}{A date/time vecto...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/biomart.R \name{get_genes_of_goterm_helper} \alias{get_genes_of_goterm_helper} \title{Get genes associated with GO-term based on BiomaRt This will get the genes of the selected GO-term and \emph{all} child-terms.} \usage{ get_genes_of_goterm_...
/man/get_genes_of_goterm_helper.Rd
permissive
paulklemm/rmyknife
R
false
true
580
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/biomart.R \name{get_genes_of_goterm_helper} \alias{get_genes_of_goterm_helper} \title{Get genes associated with GO-term based on BiomaRt This will get the genes of the selected GO-term and \emph{all} child-terms.} \usage{ get_genes_of_goterm_...
setwd("C:/Users/nade/Desktop/Data Analysis R") # 1. Series: Is a given species more or less likely to # become extinct in "Star Trek: The Original Series" # or "Star Trek: The Next Generation? # 2. Alignment: Is a given species more or less likely to become # extinct if it is a friend or foe of the Enterprise (the ...
/scripts/rcourse_lesson4_cleaning.R
no_license
kangnade/Data-Analysis-R
R
false
false
4,019
r
setwd("C:/Users/nade/Desktop/Data Analysis R") # 1. Series: Is a given species more or less likely to # become extinct in "Star Trek: The Original Series" # or "Star Trek: The Next Generation? # 2. Alignment: Is a given species more or less likely to become # extinct if it is a friend or foe of the Enterprise (the ...
#' @title List available metagenomes on NCBI Genbank #' @description List available metagenomes on NCBI genbank. NCBI genbank #' allows users to download entire metagenomes of several metagenome projects. #' This function lists all available metagenomes that can then be downloaded via #' \code{\link{getMetaGenomes}}....
/R/listMetaGenomes.R
no_license
arpankbasak/biomartr
R
false
false
1,140
r
#' @title List available metagenomes on NCBI Genbank #' @description List available metagenomes on NCBI genbank. NCBI genbank #' allows users to download entire metagenomes of several metagenome projects. #' This function lists all available metagenomes that can then be downloaded via #' \code{\link{getMetaGenomes}}....
### Copyright Okiriza Wibisono & Ali Akbar S. ### July 2015 library(shiny) shinyUI(fluidPage( titlePanel('Linear Regression Simulation'), sidebarLayout( sidebarPanel( tags$div( numericInput('num_mean', 'Mean', value = 0, step = 0.01), numericInput('num_sd'...
/skrip/shiny/linreg/ui.R
no_license
GANGGAANURAGA/tentangdata
R
false
false
3,176
r
### Copyright Okiriza Wibisono & Ali Akbar S. ### July 2015 library(shiny) shinyUI(fluidPage( titlePanel('Linear Regression Simulation'), sidebarLayout( sidebarPanel( tags$div( numericInput('num_mean', 'Mean', value = 0, step = 0.01), numericInput('num_sd'...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean.R \name{eq_clean_wrong_parsed_numeric_vectors} \alias{eq_clean_wrong_parsed_numeric_vectors} \title{Clean magnitude variables} \usage{ eq_clean_wrong_parsed_numeric_vectors(dataframe) } \arguments{ \item{dataframe}{A tibble. The raw NOA...
/man/eq_clean_wrong_parsed_numeric_vectors.Rd
no_license
rhkaz/noaamsdr
R
false
true
584
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/clean.R \name{eq_clean_wrong_parsed_numeric_vectors} \alias{eq_clean_wrong_parsed_numeric_vectors} \title{Clean magnitude variables} \usage{ eq_clean_wrong_parsed_numeric_vectors(dataframe) } \arguments{ \item{dataframe}{A tibble. The raw NOA...
# Exercise-2 # What are informatics courses about? # Set up library(tidytext) library(dplyr) library(stringr) library(ggplot2) library(rvest) # Read in web page # Extract descriptions of each course into a dataframe (may take multiple steps) # How many courses are in the catalogue? # Create a tidytext sturcture...
/exercise-2/exercise.R
permissive
baochau1212/m20-text
R
false
false
688
r
# Exercise-2 # What are informatics courses about? # Set up library(tidytext) library(dplyr) library(stringr) library(ggplot2) library(rvest) # Read in web page # Extract descriptions of each course into a dataframe (may take multiple steps) # How many courses are in the catalogue? # Create a tidytext sturcture...
testlist <- list(b = c(50462592L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
/mcga/inst/testfiles/ByteVectorToDoubles/AFL_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1613102438-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
182
r
testlist <- list(b = c(50462592L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L)) result <- do.call(mcga:::ByteVectorToDoubles,testlist) str(result)
\name{pcAlgo} \title{PC-Algorithm [OLD]: Estimate Skeleton or Equivalence Class of a DAG} \alias{pcAlgo} \alias{pcAlgo.Perfect} \description{ This function is DEPRECATED! Use \code{\link{skeleton}}, \code{\link{pc}} or \code{\link{fci}} instead. Use the PC-algorithm to estimate the underlying graph (\dQuote{sk...
/man/pcAlgo.Rd
no_license
cran/pcalg
R
false
false
2,824
rd
\name{pcAlgo} \title{PC-Algorithm [OLD]: Estimate Skeleton or Equivalence Class of a DAG} \alias{pcAlgo} \alias{pcAlgo.Perfect} \description{ This function is DEPRECATED! Use \code{\link{skeleton}}, \code{\link{pc}} or \code{\link{fci}} instead. Use the PC-algorithm to estimate the underlying graph (\dQuote{sk...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 22677 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 22677 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/genbuf/genbuf11b4y.sat.qdimacs c output filena...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/genbuf/genbuf11b4y.sat/genbuf11b4y.sat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
627
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 22677 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 22677 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/genbuf/genbuf11b4y.sat.qdimacs c output filena...
library(broman) tab <- read.table("table.txt", header=TRUE) bgcolor <- rgb(0.1, 0.1, 0.1, maxColorValue=1) pdf("../Figs/table_fig.pdf", height=4, width=4, pointsize=12) par(bg=bgcolor, fg="white", col.axis="white", col.main="white", col.lab="white") layout(cbind(1,2,3), width=c(1.65,1,1)) xlab <- expression(paste(-lo...
/R/table_fig.R
permissive
kbroman/Talk_ICQG2016
R
false
false
1,858
r
library(broman) tab <- read.table("table.txt", header=TRUE) bgcolor <- rgb(0.1, 0.1, 0.1, maxColorValue=1) pdf("../Figs/table_fig.pdf", height=4, width=4, pointsize=12) par(bg=bgcolor, fg="white", col.axis="white", col.main="white", col.lab="white") layout(cbind(1,2,3), width=c(1.65,1,1)) xlab <- expression(paste(-lo...
getData <- function() { setClass('myDate') setAs("character", "myDate", function(from) as.Date(from, format="%d/%m/%Y") ) allDat <- read.table("household_power_consumption.txt", header=TRUE, sep=";", colClasses=c('myDate', 'character', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric')...
/plot3.R
no_license
sbalki2000/ExData_Plotting1
R
false
false
1,294
r
getData <- function() { setClass('myDate') setAs("character", "myDate", function(from) as.Date(from, format="%d/%m/%Y") ) allDat <- read.table("household_power_consumption.txt", header=TRUE, sep=";", colClasses=c('myDate', 'character', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric', 'numeric')...
\name{carpet_data} \alias{carpet_data} \docType{data} \title{ Carpet Data } \description{ Carper research design (orthogonal design) } \usage{data(carpet_data)} \format{ A data frame with 16 observations on the following 7 variables. \describe{ \item{\code{Profile}}{Profile no} \item{\code{Pac...
/man/carpet_data.Rd
no_license
mbailo/faisalconjoint
R
false
false
1,048
rd
\name{carpet_data} \alias{carpet_data} \docType{data} \title{ Carpet Data } \description{ Carper research design (orthogonal design) } \usage{data(carpet_data)} \format{ A data frame with 16 observations on the following 7 variables. \describe{ \item{\code{Profile}}{Profile no} \item{\code{Pac...