query.traits.Rd
Query available trait data associated with a given pft and a list of traits
query.traits(
ids,
priors,
con,
update.check.only = FALSE,
ids_are_cultivars = FALSE
)
vector of species or cultivar id's from trait database
vector of parameters for which priors have been specified
database connection object
if TRUE, returns results but does not print summaries
if TRUE, ids is a vector of cultivar IDs, otherwise they are species IDs
list of dataframes, each with data for one trait
if (FALSE) { # \dontrun{
con <- db.open(your_settings_here)
species <- query.pft_species('ebifarm.c4crop')
spstr <- vecpaste(species$id)
trvec <- c('leafN', 'SLA')
trait.data <- query.traits(spstr, trvec, con)
} # }