study_split: divides a data matrix in a list of matrices defined by a...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/internal_mint.block_helpers.R

Description

study_spli divides a data matrix in a list of matrices defined by a study input.

Usage

1
study_split(data, study)

Arguments

data

numeric matrix of predictors

study

grouping factor indicating which samples are from the same study

Value

study_split simply returns a list of the same length as the number of levels of study tha contains submatrices of data.

Author(s)

Florian Rohart

See Also

mint.pls, mint.spls, mint.plsda, mint.splsda.

Examples

1
2
3
4
5
6
7
8
data = stemcells$gene
exp = stemcells$study

data.list = study_split(data, exp)

names(data.list)
lapply(data.list, dim)
table(exp)

mixOmics documentation built on June 1, 2018, 5:06 p.m.