Recording-effort rasters from a GBIF effort table
Arguments
- table
The effort table (data.frame or path to
effort_table.csv) withlat_bin,lon_binand count columns.- extent, cell
The extent and cell size used in
gbif_effort_sql().- path
Optional folder to write
effort_<layer>.tif.
Value
A terra::SpatRaster with layers n_records, n_species,
n_target (those present); cells without records are 0.
Examples
tab <- data.frame(lat_bin = c(450, 451), lon_bin = c(100, 101),
n_records = c(10, 3), n_species = c(8, 2),
n_target = c(1, 0))
eff <- gbif_effort_rasters(tab, c(9.5, 10.5, 44.5, 45.5))
eff
#> class : SpatRaster
#> size : 10, 10, 3 (nrow, ncol, nlyr)
#> resolution : 0.1, 0.1 (x, y)
#> extent : 9.5, 10.5, 44.5, 45.5 (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
#> source(s) : memory
#> names : n_records, n_species, n_target
#> min values : 0, 0, 0
#> max values : 10, 8, 1
