| importLabels | R Documentation |
Import Dataset-Scoped Dimension or Attribute Labels.
importLabels(OECDDimCode, dataset = NULL)
importDimLabel(OECDDimCode, dataset = NULL)
OECDDimCode |
A component ID such as |
dataset |
Optional dataset short code or canonical reference, as in oecdDataset. Defaults to the |
Labels are resolved from the specific DSD, concept scheme and enumerated
codelist, including agency and version. The requested language is preferred, then
English, then the first available label. Ambiguous dictionaries cause an error
rather than an arbitrary selection. Labels are permissible codes, not a claim
that observations exist. A component without an enumerable dictionary can be
passed to importDimLabel with dataset context to retrieve its name,
but cannot be passed to importLabels.
Use oecdDataset first when agency, prefix or version selectors are needed.
Attributes identify the OECDDimCode, resolved OECDDatasetCode,
and DownloadTime.
importLabels returns a two-column data frame with classes
OECDLabels and data.frame. The first column uses the component
name supplied by the caller; the second appends _labels. Columns are
factors by default. importDimLabel returns one character label.
oecdStructure, describe
if (interactive()) {
code <- "CLI"
importLabels("REF_AREA", dataset = code)
importDimLabel("REF_AREA", dataset = code)
old <- oecdOptions(dataset = code)
importLabels("FREQ")
options(old)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.