dp_categorieslist {datapackage} | R Documentation |
Get the a data.frame with the categories for a variable.
Description
Get the a data.frame with the categories for a variable.
Usage
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,
...
)
Arguments
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 |
Value
Returns a data.frame
with the categories or NULL
when none could
be found.
[Package datapackage version 0.2.3 Index]