Get the primary keys from a specification object

primary_keys(x)

Arguments

x

a yspec object

Examples

primary_keys(load_spec_ex())
#> [1] "ID"   "EVID" "SEQ"