Get the a data.frame with the categories for a variable.
dp_categorieslist(x, ...)# S3 method for default
dp_categorieslist(
x,
fielddescriptor = attr(x, "fielddescriptor"),
datapackage = dp_get_datapackage(fielddescriptor),
...
)
# S3 method for fielddescriptor
dp_categorieslist(
x,
datapackage = dp_get_datapackage(x),
normalised = FALSE,
...
)
Returns a data.frame
with the categories or NULL
when none could
be found.
the variable for which to get the Categories List
used to pass extra arguments on to other methods.
the Field Descriptor associated with the variable.
the Data Package where the variable is from.
if TRUE
the column with values will be named
value
and the the columnd with labels label
.