- dataset_id
A character string specifying the dataset ID(s) of one or more rasters. These dataset ids can be found in the data.frame returned by listRaster, in the dataset_id column e.g. c('Malaria__202206_Global_Pf_Mortality_Count', 'Malaria__202206_Global_Pf_Parasite_Rate')
- surface
deprecated argument. Please remove it from your code.
- shp
SpatialPolygon(s) object of a shapefile to use when clipping downloaded rasters. (use either shp
OR extent
; if neither is specified global raster is returned).
- extent
2x2 matrix specifying the spatial extent within which raster data is desired, as returned by sf::st_bbox() - the first column has the minimum, the second the maximum values; rows 1 & 2 represent the x & y dimensions respectively (matrix(c("xmin", "ymin","xmax", "ymax"), nrow = 2, ncol = 2, dimnames = list(c("x", "y"), c("min", "max")))) (use either shp
OR extent
; if neither is specified global raster is returned).
- file_path
string specifying the directory to which raster files will be downloaded, if you want to download them. If none given, rasters will not be saved to files.
- year
default = rep(NA, length(dataset_id))
(use NA
for static rasters); for time-varying rasters: if downloading a single surface for one or more years, year
should be a string specifying the desired year(s). if downloading more than one surface, use a list the same length as dataset_id
, providing the desired year-range for each time-varying surface in dataset_id
or NA
for static rasters.
- vector_year
deprecated argument. Please remove it from your code.