Returns a list of sub-regions in the COVID-19 tracker. By default, returns all 805 sub-regions.
Examples
get_subregions()
#> # A tibble: 806 × 5
#> code province zone region population
#> <chr> <chr> <chr> <chr> <int>
#> 1 AB001 AB SOUTH CROWSNEST PASS 6280
#> 2 AB002 AB SOUTH PINCHER CREEK 8344
#> 3 AB003 AB SOUTH FORT MACLEOD 6753
#> 4 AB004 AB SOUTH CARDSTON-KAINAI 16595
#> 5 AB005 AB SOUTH COUNTY OF LETHBRIDGE 25820
#> 6 AB006 AB SOUTH TABER MD 19028
#> 7 AB007 AB SOUTH COUNTY OF WARNER 11104
#> 8 AB008 AB SOUTH COUNTY OF FORTY MILE 6409
#> 9 AB009 AB SOUTH NEWELL 27753
#> 10 AB010 AB SOUTH OYEN 3486
#> # … with 796 more rows
get_subregions("AB001")
#> # A tibble: 1 × 5
#> code province zone region population
#> <chr> <chr> <chr> <chr> <int>
#> 1 AB001 AB SOUTH CROWSNEST PASS 6280
get_subregions(c("SK003", "SK005"))
#> # A tibble: 2 × 5
#> code province zone region population
#> <chr> <chr> <chr> <chr> <int>
#> 1 SK003 SK Far North Far North East 22098
#> 2 SK005 SK North North Central 85750