makeCategories: Create the catgry elements for a particular variable
Description
Utility function to create the catgry elements, as well as all
necessary sub-elements (e.g. catValu, labl, varFormat) along with their
associated XML attributes.
Usage
makeCategories(metadata)
Value
A list of standard catgry DDI elements.
Arguments
metadata
A list of two or three components: labels,
na_values and/or na_range