select-style notation for a single variable
ipums_var_info()
loads all available variable information for one or more
variables into a data.frame. If object
is a vector, it will include
the variable label, variable description and value labels. If object
is
a data.frame, it will include it for all variables (or only those specified
by vars). If it is a DDI, it will also include information used to read the
data from disk, including start/end position in the fixed-width file, implied
decimals and variable type.
ipums_var_desc()
loads the variable description for a single variable.
ipums_var_label()
loads the short variable label for a single variable.
ipums_val_labels()
loads the value labels for a single variable.
Note that many R functions drop attributes that provide this information.
In order to make sure that they are available, it is best to keep a copy of the
separate from the data your are manipulating using read_ipums_ddi
. Then
you can refer to the IPUMS documentation in this object.