dpcodelist: Get the Code List for a variable.

View source: R/dpcodelist.R

dpcodelistR Documentation

Get the Code List for a variable.

Description

Get the Code List for a variable.

Usage

dpcodelist(x, ...)

## Default S3 method:
dpcodelist(
  x,
  fielddescriptor = attr(x, "fielddescriptor"),
  datapackage = dpgetdatapackage(fielddescriptor),
  ...
)

## S3 method for class 'fielddescriptor'
dpcodelist(x, datapackage = dpgetdatapackage(x), ...)

Arguments

x

the variable for which to get the Code 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.

Value

Returns a data.frame with the Code List or NULL when none could be found.


djvanderlaan/datapackage documentation built on March 18, 2024, 4:57 p.m.