View source: R/internal_mint.block_helpers.R
study_split | R Documentation |
study_split
divides a data matrix in a list of matrices defined by a
study
input.
study_split(data, study)
data |
numeric matrix of predictors |
study |
grouping factor indicating which samples are from the same study |
study_split
simply returns a list of the same length as the
number of levels of study
that contains sub-matrices of data
.
Florian Rohart, Al J Abadi
mint.pls
, mint.spls
,
mint.plsda
, mint.splsda
.
data(stemcells)
data = stemcells$gene
exp = stemcells$study
data.list = study_split(data, exp)
names(data.list)
lapply(data.list, dim)
table(exp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.