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
raster
orvector
; to return mask as eitherSpatRaster
orSpatVector
.- res
Character
"high"
or"low"
; corresponding to resolution of 0.008333333 or 0.04166667 decimal degrees- countries
Character of ISO3 country names. If
NULL
returns 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)