phenoData-class {Biobase}R Documentation

Class phenoData, a class for patient or experiment level data.

Description

The class consists of a data.frame and some accompanying methods suited to handle patient level data for microarrays.

Creating Objects

new('phenoData',
pData = ...., # Object of class \code{data.frame}
varLabels = ...., # Object of class \code{list}
varMetadata = ...., # Object of class \code{data.frame}
)

Slots

pData:
Object of class "data.frame". The data.
varLabels:
Object of class "list". Obtional long labels for the different variables.
varMetadata:
Object of class "data.frame". A data frame with a column named varNames and arbitrarily many additional columns.

Methods

[
(phenoData): A subset operator.
pData
(phenoData): An accessor function for pData.
show
(phenoData): A method to display the data in a nice manner.
varLabels
(phenoData): A method to display the variable labels.
split
(phenoData, vector): A method to split pData and return a list of phenoData objects. Unlike split this function requires the number of rows of pData to be a multiple of the length of vector.
$
An old-style method. It is pData(object)[[as.character(val)]] which does not quite have the right semantics but it is close. This operator extracts the named component of the pData slot in phenoData.
pData<-
(phenoData): A replacement method for the pData slot.
phenoData<-
(exprSet): A replacement method for the phenoData slot.

Examples

data(eset)
pes <- phenoData(eset)
pes <- convertVarLabels(pes)
varMetadata(pes)
pes <- addVarMetadataEntry(pes, "cov1", "units", "inches")
getUnits(pes, "cov1")

[Package Biobase version 1.5.12 Index]