Filter population data for a specific census year. This function is intended
for use with population datasets loaded via load_pop_data(), but can work
with any data frame that contains a year column.
Usage
pop_data_by_year(data, yr)
Value
A tibble (or data frame) containing only rows from the specified year.
Arguments
data
A data frame or tibble containing population data.
Must include a column named year.