Matches BETYdb species IDs to model-specific PFTs

match_pft(
  bety_species_id,
  pfts,
  query = NULL,
  con = NULL,
  allow_missing = FALSE,
  model = NULL
)

Arguments

bety_species_id

vector of BETYdb species IDs

pfts

settings$pfts. List of pfts with database matching based on name

query

Default is NULL. query to BETY db.

con

database connection, if NULL use traits package

allow_missing

flag to indicate that settings file does not need to match exactly

model

Default is NULL. This is the BETY model ID for matching pfts to the correct model.

Value

table of BETYdb PFT IDs matched to species IDs

Author

Mike Dietze, Istem Fer