Extracts population data from canreg-style objects and optionally summarizes it by specified grouping variables.
get_pop(data, sum_by = NULL, collapse = FALSE)
# S3 method for class 'canreg'
get_pop(data, sum_by = NULL, collapse = FALSE)
# S3 method for class 'canregs'
get_pop(data, sum_by = NULL, collapse = FALSE)
# S3 method for class 'fbswicd'
get_pop(data, sum_by = NULL, collapse = FALSE)
# S3 method for class 'fbswicds'
get_pop(data, sum_by = NULL, collapse = FALSE)A data frame or a list of data frames depending on collapse.