Take a tibble containing population estimates per year and extend this by copying the latest estimates n times up to max_pop_year

extend_pop_estimates(pops_df, max_pop_year, year_var = "year")

Arguments

pops_df

a tibble containing population estimates

max_pop_year

The latest year required

year_var

The variable containing the year

Value

a tibble with extra years added