Learn R Programming

RclusTool (version 0.91.61)

loadSample: Sample loading

Description

Load and preprocess sample.

Usage

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

Value

data.sample loaded data.sample.

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()

See Also

importSample

Examples

Run this code
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)       


Run the code above in your browser using DataLab