InfoDataFrame-class: Definition for S4 class InfoDataFrame

Description Value Slots Creation Methods Access See Also Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# 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,]

dcGOR documentation built on May 2, 2019, 6:14 p.m.