Skip to contents

Extract variable codes from a variable tibble

Usage

variable_extract_ids(var_df)

Arguments

var_df

A tibble returned by get_variables().

Value

A character vector of variable codes.

Examples

# \donttest{
scb <- px_api("scb", lang = "en")
if (px_available(scb)) {
  get_variables(scb, "TAB638") |> variable_extract_ids()
}# }
#> [1] "Region"       "Civilstand"   "Alder"        "Kon"          "ContentsCode"
#> [6] "Tid"