InfoDataFrame-class {dcGOR}R Documentation

Definition for S4 class InfoDataFrame

Description

InfoDataFrame has two slots: data and dimLabels.

Value

Class InfoDataFrame

Slots

data

A data.frame containing terms (rows) and measured variables (columns).

dimLabels

A character descripting labels for rows and columns.

Creation

An object of this class can be created via: new("InfoDataFrame", data, dimLabels)

Methods

Class-specific methods:

Standard generic methods:

Access

Ways to access information on this class:

See Also

InfoDataFrame-method

Examples

# generate data on domain information on
data <- data.frame(x=1:10, y=I(LETTERS[1:10]),
row.names=paste("Domain", 1:10, sep="_"))
dimLabels <- c("rowLabels", "colLabels")
# create an object of class InfoDataFrame
x <- new("InfoDataFrame", data=data, dimLabels=dimLabels)
x
# alternatively, using coerce methods
x <- as(data, "InfoDataFrame")
x
# look at various methods defined on class Anno
dimLabels(x)
dim(x)
nrow(x)
ncol(x)
rowNames(x)
colNames(x)
Data(x)
x[1:3,]

[Package dcGOR version 1.0.6 Index]