Skip to contents

convert hail.table.Table to R data frame

Usage

# S3 method for class 'hail.table.Table'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

instance of "hail.table.Table"

row.names

not used

optional

not used

...

not used

Value

data.frame

Note

only use on small table because collect is used

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