powered by
study_spli divides a data matrix in a list of matrices defined by a study input.
study_spli
study
study_split(data, study)
numeric matrix of predictors
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 tha contains submatrices of data.
study_split
data
mint.pls, mint.spls, mint.plsda, mint.splsda.
mint.pls
mint.spls
mint.plsda
mint.splsda
# NOT RUN { data = stemcells$gene exp = stemcells$study data.list = study_split(data, exp) names(data.list) lapply(data.list, dim) table(exp) # }
Run the code above in your browser using DataLab