GIFT_env | R Documentation |
Retrieve environmental data associated to each GIFT checklists. Sources of environmental variables can come from raster layers or from shape files (miscellaneous). Users need to define what variables they are interested in and then ask for a set of summary statistics (in case of raster layers).
GIFT_env(
entity_ID = NULL,
miscellaneous = if (is.null(rasterlayer)) "area" else NULL,
rasterlayer = NULL,
sumstat = "mean",
GIFT_version = "latest",
api = "https://gift.uni-goettingen.de/api/extended/"
)
entity_ID |
A vector defining the ID of the lists to retrieve.
|
miscellaneous |
character vector or list specifying the miscellaneous
data to retrieve. . A list of all miscellaneous layers for which precomputed
information exists in the database can be viewed in the output table
returned by |
rasterlayer |
character vector or list specifying the raster
data to retrieve. A list of all raster layers for which precomputed
information exists in the database can be viewed in the output table
returned by |
sumstat |
Vector or list indicating the desired summary statistics out
of Important note |
GIFT_version |
character string defining the version of the GIFT
database to use. The function retrieves by default the |
api |
character string defining from which API the data will be retrieved. |
The columns of the data.frame are the following:
entity_ID - Identification number of the polygon
geo_entity - Name of the polygon
The other columns relate to the environmental variables the user asked for.
A data frame with the environmental values per polygon (entity_ID).
Denelle, P., Weigelt, P., & Kreft, H. (2023). GIFT—An R package to access the Global Inventory of Floras and Traits. Methods in Ecology and Evolution, 14, 2738-2748. https://doi.org/10.1111/2041-210X.14213 Weigelt, P, König, C, Kreft, H. GIFT – A Global Inventory of Floras and Traits for macroecology and biogeography. J Biogeogr. 2020; 47: 16– 43. https://doi.org/10.1111/jbi.13623
GIFT_env_meta_misc()
and GIFT_env_meta_raster()
ex <- GIFT_env(entity_ID = c(1,5),
miscellaneous = c("perimeter", "biome"),
rasterlayer = c("mn30_grd", "wc2.0_bio_30s_01"),
sumstat = list(c("mean", "med"), "max"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.