GenomicDataCommons (version 1.3.1)

as.data.frame.GDCResults: Convert GDC results to data.frame

Description

GDC results are typically returned as an R list structure. This method converts that R list structure to a data.frame. Some columns in the resulting data.frame may remain lists, but there will be one list element for each row though that list element may contain multiple values.

Usage

as.data.frame.GDCResults(x, row.names, optional, ...)

Arguments

x

a GDCResults object to be converted to a data.frame.

row.names

not used here; row.names are calculated from the data to maintain data integrity

optional

not used here; just for matching method call for as.data.frame

...

not used here; just for matching method call for as.data.frame

Value

a data.frame, potentially with list columns still present.

Examples

Run this code
# NOT RUN {
expands = c("diagnoses","diagnoses.treatments","annotations",
            "demographic","exposures")
head(cases() %>% expand(expands) %>% results() %>% as.data.frame())

# }

Run the code above in your browser using DataLab