as.data.frame.LongTable {CoreGx}R Documentation

Coerce a LongTable to a data.frame

Description

S3 version of coerce method fro convenience.

Usage

## S3 method for class 'LongTable'
as.data.frame(x, row.names, optional = TRUE, ...)

Arguments

x

['LongTable'] to coerce to 'data.frame'.

row.names

An optional ['character'] vector of rownames. We do not recommend using this parameter, it is included for S3 method consistency with 'as.data.frame'.

optional

['logical'] Is it optional for row and column names to be valid R names? If FALSE will use the make.names function to ensure the row and column names are valid R names. Defaults to TRUE.

...

Does nothing.

Value

['data.frame'] containing the data from the LongTable, with the ‘LongTable.config’ attribute containg the metadata needed to reverse the coercion operation.

Examples

as(merckLongTable, 'data.frame')


[Package CoreGx version 1.2.0 Index]