Skip to contents

extract field names from hail.table.Table

Usage

# S4 method for class 'hail.table.Table'
colnames(x, do.NULL = TRUE, prefix = "col")

Arguments

x

hail.table.Table instance

do.NULL

ignored

prefix

ignored

Value

character vector

Examples

hl <- hail_init()
annopath <- path_1kg_annotations()
tab <- hl$import_table(annopath, impute = TRUE)$key_by("Sample")
colnames(tab)
#> [1] "Sample"              "Population"          "SuperPopulation"    
#> [4] "isFemale"            "PurpleHair"          "CaffeineConsumption"