Skip to contents

Retrieve a SpatRaster useful for spatiotemporal epidemic compartmental modelling.

Usage

getCountryPopulation.SpatRaster(countryCodeISO3C, folder = NULL)

Arguments

countryCodeISO3C

The uppercase ISO three character code a recognized country.

folder

Passed on to method downloadWorldPopData

Value

A SpatRaster of WorldPop population count data with the layer name "Population", with all NAs replaced by zeros.

Author

Bryce Carson

Michael Myer

Ashok Krishnmaurthy

Examples

getCountryPopulation.SpatRaster("COD")
#> class       : SpatRaster 
#> dimensions  : 2261, 2289, 1  (nrow, ncol, nlyr)
#> resolution  : 0.008333333, 0.008333333  (x, y)
#> extent      : 12.20708, 31.28208, -13.45042, 5.39125  (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 (EPSG:4326) 
#> source(s)   : memory
#> varname     : cod_ppp_2020_1km_Aggregated_UNadj 
#> name        : Population 
#> min value   :       0.00 
#> max value   :   83281.66