splitPCA: Split an eSet object and run PCA on each split, return PCA...

View source: R/splitPCA.R

splitPCAR Documentation

Split an eSet object and run PCA on each split, return PCA scores as one data.frame

Description

Split an eSet object and run PCA on each split, return PCA scores as one data.frame

Usage

splitPCA(eset, factor, func = function(e) exprs(e), ...)

Arguments

eset

An eSet object

factor

One or more factor vectors, used to split the eSet object

func

Function to retrieve values from split sub-eset objects

...

Passed to pcaScores

Examples

data(ribios.ExpressionSet, package="ribiosExpression")
fac1 <- gl(2,13)
pcaScore1 <- splitPCA(ribios.ExpressionSet, fac1)

bedapub/ribiosExpression documentation built on Sept. 2, 2023, 4:37 a.m.