Get Subregional Estimate Urls

getSubregionalUrls(path, areas)

Arguments

path

A character string container the overall path to subnational estimates

areas

A character vector listing the subregional estimates (assuming that listed in the geoData with capitalisation and without capitalisation in the path).

Value

A named list of subnational urls.

Examples


getSubregionalUrls(path = "https://epiforecasts.io/covid/posts/national/",
                  areas = c('Afghanistan', 'Brazil', 'Colombia', 'United States'))
#>                                                   Afghanistan 
#>   "https://epiforecasts.io/covid/posts/national/afghanistan/" 
#>                                                        Brazil 
#>        "https://epiforecasts.io/covid/posts/national/brazil/" 
#>                                                      Colombia 
#>      "https://epiforecasts.io/covid/posts/national/colombia/" 
#>                                                 United States 
#> "https://epiforecasts.io/covid/posts/national/united-states/"