get.trait.data.Rd
This will use the following items from settings: - `settings$pfts` - `settings$model$type` - `settings$database$bety` - `settings$database$dbfiles` - `settings$meta.analysis$update`
get.trait.data(
pfts,
modeltype,
dbfiles,
database,
forceupdate,
write = FALSE,
trait.names = NULL
)
the list of pfts to get traits for
type of model that is used, this is is used to distinguish between different PFTs with the same name.
location where previous results are found
database connection parameters (see `params` argument to [db.query()])
(Logical) If `TRUE`, force a database update whether or not it is needed. If `FALSE`, only update if an update is needed.
(Logical) If `TRUE` updated posteriors will be written to BETYdb. Defaults to FALSE.
Character vector of trait names to search. If `NULL` (default), use all traits that have a prior for at least one of the `pfts`.
list of PFTs with update posteriorids