Count the number of health facilities within a given country or extent

hs_count_facilities(country = NULL, extent = NULL)

Arguments

country

a character the country name

extent

either a numeric vector (xmin, ymin, xmax, ymax) or objects of class sf, sfc, ‘Spatial’ or ‘Raster’ using the geographical projection (epsg:4326)

Value

an integer the number of health facilities within the selected country or extent.

Examples

if (FALSE) { extent <- c(xmin = -12.17, ymin = 10.1, xmax = 4.27, ymax = 24.97) hs_count_facilities(extent = extent) }