View source: R/sampleBuilding.R
loadSample | R Documentation |
Load and preprocess sample.
loadSample(file.RDS, RclusTool.env = initParameters(), file.config = "")
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. |
loadSample reads RDS sample file; sample is preprocessed by call to function preprocessSample()
data.sample loaded data.sample.
importSample
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.