A convenience wrapper to tidyr::pivot_longer to switch population projections from UNFPA to long format.
sd_tidy_pop()
A tibble containing 6 columns and 110808 rows that is a longer format version of the UNFPA population dataset
sd_tidy_pop()#> # A tibble: 110,808 x 6 #> state locality ageGrp sex year population #> <chr> <chr> <chr> <chr> <chr> <dbl> #> 1 Northern State Halfa All ages Total 2009 34735 #> 2 Northern State Halfa All ages Male 2009 19290 #> 3 Northern State Halfa All ages Female 2009 15446 #> 4 Northern State Halfa All ages Total 2010 35694 #> 5 Northern State Halfa All ages Male 2010 19754 #> 6 Northern State Halfa All ages Female 2010 15940 #> 7 Northern State Halfa All ages Total 2011 36636 #> 8 Northern State Halfa All ages Male 2011 20211 #> 9 Northern State Halfa All ages Female 2011 16425 #> 10 Northern State Halfa All ages Total 2012 37562 #> # … with 110,798 more rows