Makes a SpatRaster or SpatVector mask layer of countries,
based on shapefiles for from the malaraAtlas package.
Arguments
- filename
Character of file path and name if mask is to be written to disc.
- type
Character
rasterorvector; to return mask as eitherSpatRasterorSpatVector.- res
Character
"high"or"low"; corresponding to resolution of 0.008333333 or 0.04166667 decimal degrees- countries
Character of ISO3 country names. If
NULLreturns all countries in Africa.- overwrite
logical
standard usage make_mask(filename = NULL, type = c("raster",
"vector"), res = c("high", "low"), countries = NULL)
make_africa_mask is deprecated, and is intended for backward
compatibility. It is a simple alias for make_mask:
make_africa_mask(filename = NULL, type = c("raster", "vector"), res = c("high", "low"), countries = NULL)
make_vector_mask sets type = "vector": make_mask(filename = NULL, type = "vector", res =' c("high", "low"), countries = NULL)