Skip to contents

S3 support

Usage

as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

entity coercible to data.frame

row.names

character or NULL

optional

logical

...

any args

Value

data.frame

Examples

hl <- hail_init()
annopath <- path_1kg_annotations()
tab <- hl$import_table(annopath, impute = TRUE)$key_by("Sample")
as.data.frame(tab$head(3L))
#>    Sample Population SuperPopulation isFemale PurpleHair CaffeineConsumption
#> 1 HG00096        GBR             EUR    FALSE      FALSE                   4
#> 2 HG00097        GBR             EUR     TRUE       TRUE                   4
#> 3 HG00098        GBR             EUR    FALSE      FALSE                   5