Convenience wrapper around dplyr's collect()
and
set_ipums_var_attributes()
. Use this to attach variable labels when
collecting data from a database.
ipums_collect(data, ddi, var_attrs = c("val_labels", "var_label", "var_desc"))
A local tibble
with the requested
attributes attached.
A dplyr tbl
object (generally a tbl_lazy
object stored in a database).
An ipums_ddi object created with read_ipums_ddi()
.
Variable attributes to add to the output. Defaults to
all available attributes.
See set_ipums_var_attributes()
for more details.