convert hail.table.Table to R data frame
Source:R/as.data.frame.R
as.data.frame.hail.table.Table.Rd
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, ...)
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