get_codes_names: Get codes-names key

View source: R/codes_names.R

get_codes_namesR Documentation

Get codes-names key

Description

Note that a list is only sensible form of having code-name keys for different variables as different variables have a different number of these keys. Thus, this function produces lists of named vectors for many variables and named vectors for one variable.

Usage

get_codes_names(x, db_list_name = NULL, variable = NULL, offline = TRUE)

Arguments

x

chr, table_code or url. If table code function requires db_list_name

db_list_name

chr, db_list_name

variable

chr, (statfitools::make_names-cleaned) variable name

offline

logical, whether to try look for pxweb_metadata in the db_list_offline

Value

A named (column codes) list of named (codes) vectors (names).


pttry/pttdatahaku documentation built on Jan. 25, 2025, 10:37 a.m.