as.data.frame.LongTable: Coerce a LongTable to a data.frame

Description Usage Arguments Value Examples

View source: R/methods-coerce.R

Description

S3 version of coerce method fro convenience.

Usage

1
2
## 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

1
as(merckLongTable, 'data.frame')

CoreGx documentation built on Nov. 8, 2020, 4:50 p.m.