Count the non-missing elements of a list variable
Usage
count_list(
df,
var_pattern,
missing_vals = c("##N/A##", "", NA_character_),
attrib_name,
attrib_vars = var_pattern
)
Arguments
- df
Data frame. Household-level microdata that contains the attribute to extract.
- var_pattern
Character. Regular expression used to select variables to be counted.
- missing_vals
Character. Values that describes an empty element of a list variable.
- attrib_name
Character. Name to give the attribute in the issues data file
- attrib_vars
Character. Regular expression that identifies the variable in
var
.