TransposedDataFrame-class: TransposedDataFrame objects

Description Details Author(s) See Also Examples

Description

The TransposedDataFrame class is a container for representing a transposed DataFrame, that is, a rectangular data container where the rows are variables and the columns observations.

Details

TransposedDataFrame objects are constructed by calling t() on a DataFrame object.

Author(s)

Hervé Pagès

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
df <- DataFrame(aa=letters, bb=101:126, row.names=LETTERS)
tdf <- t(df)
tdf

## A TransposedDataFrame object can be used inside a SummarizedExperiment
## object if the transposed layout is needed (e.g. if the rows in the
## original DataFrame are samples and the columns features):
library(SummarizedExperiment)
se <- SummarizedExperiment(tdf)
se

assay(se)  # tdf

hpages/TransposedDataFrame documentation built on Dec. 1, 2019, 2:57 a.m.