Learn R Programming

RclusTool (version 0.91)

loadSample: 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.

Value

data.sample loaded data.sample.

Details

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

See Also

importSample

Examples

Run this code
# NOT RUN {
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=tempdir())

res <- loadSample(file.path(getwd(), x$files$RDS))       


# }

Run the code above in your browser using DataLab