as.long.table: Coerce from data.table to LongTable

View source: R/methods-coerce.R

as.long.tableR Documentation

Coerce from data.table to LongTable

Description

Coerce a data.table with the proper configuration attributes back to a LongTable

Usage

as.long.table(x)

Arguments

x

A data.frame with the 'longTableDataMapper' attribute, containing three lists named assayCols, rowDataCols and colDataCols. This attribute is automatically created when coercing from a LongTable to a data.table.

Value

LongTable object configured with the longTableDataMapper

Examples

dataTable <- as(merckLongTable, 'data.table')
print(attr(dataTable, 'longTableDataMapper')) # Method doesn't work without this
as.long.table(dataTable)


bhklab/CoreGx documentation built on March 14, 2024, 3:04 a.m.