loadSample: Sample loading

View source: R/sampleBuilding.R

loadSampleR Documentation

Sample loading

Description

Load and preprocess sample.

Usage

loadSample(file.RDS, RclusTool.env = initParameters(), file.config = "")

Arguments

file.RDS

character vector for the name of the .RDS file where built data.sample object is saved.

RclusTool.env

environment in which all global parameters, raw data and results are stored.

file.config

character vector for the name of the configuration file.

Details

loadSample reads RDS sample file; sample is preprocessed by call to function preprocessSample()

Value

data.sample loaded data.sample.

See Also

importSample

Examples

dat <- rbind(matrix(rnorm(100, mean = 0, sd = 0.3), ncol = 2), 
           matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2), 
           matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2))
tf <- tempfile()
write.table(dat, tf, sep=",", dec=".")

x <- importSample(tf, dir.save=dirname(tf))

res <- loadSample(x$files$RDS)       



RclusTool documentation built on May 29, 2024, 5:23 a.m.