View source: R/dp_categorieslist.R
dp_categorieslist | R Documentation |
Get the a data.frame with the categories for a variable.
dp_categorieslist(x, ...)
## Default S3 method:
dp_categorieslist(
x,
fielddescriptor = attr(x, "fielddescriptor"),
datapackage = dp_get_datapackage(fielddescriptor),
...
)
## S3 method for class 'fielddescriptor'
dp_categorieslist(
x,
datapackage = dp_get_datapackage(x),
normalised = FALSE,
...
)
x |
the variable for which to get the Categories List |
... |
used to pass extra arguments on to other methods. |
fielddescriptor |
the Field Descriptor associated with the variable. |
datapackage |
the Data Package where the variable is from. |
normalised |
if |
Returns a data.frame
with the categories or NULL
when none could
be found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.