Retrieve PFT ID, name, and type from BETY

query_pfts(dbcon, pft_names, modeltype = NULL, strict = FALSE)

Arguments

dbcon

Database connection object

pft_names

character vector of PFT names

modeltype

character. If specified, only returns PFTs matching this modeltype. If NULL, considers all modeltypes.

strict

(Logical) If `TRUE`, throw an error if any of the input `pft_names/ids` or `traits` are missing from the output. If `FALSE` (default), only throw a warning.

Value

`data.frame` containing PFT ID (`id`), type (`pft_type`), and name (`name`).

Author

Alexey Shiklomanov, Chris Black