neweS {LMGene} | R Documentation |
This function converts a data matrix into an ExpressionSet
object.
neweS(mat, vlist, vlabel = as.list(names(vlist)))
mat |
A data matrix to be converted. |
vlist |
A list, each component of which describes a factor in the experimental design. |
vlabel |
A list of labels for each component of |
Each element of a component of vlist
corresponds to a column of mat
.
See vlist
for an example.
eset |
An |
David Rocke and Geun-Cheol Lee
library(Biobase) library(LMGene) #data data(sample.mat) data(vlist) Smpdt <- neweS(sample.mat,vlist) data(sample.eS) identical(exprs(sample.eS), exprs(Smpdt)) identical(pData(sample.eS), pData(Smpdt))