Description Details Author(s) See Also Examples
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.
TransposedDataFrame objects are constructed by calling t()
on a DataFrame object.
Hervé Pagès
DataFrame objects in the S4Vectors package.
SummarizedExperiment objects in the SummarizedExperiment package.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.