Load posterior distributions and/or Monte Carlo samples for a PFT
Source:R/load_posteriors.R
load.posteriors.RdDetects posterior type by file contents, not filenames.
Monte Carlo samples (trait.mcmc) take precedence over
distribution summaries (post.distns / prior.distns).
Falls back to legacy outdir + DB lookup when
posterior.file is NA, with a deprecation warning.
Usage
load.posteriors(
posterior.file,
outdir = NULL,
posteriorid = NULL,
con = NULL,
hostname = NULL
)Arguments
- posterior.file
path to a posterior file or directory, or
NA.- outdir
Deprecated. Legacy PFT output directory used only when
posterior.fileisNA. Will be removed in a future version; pass an explicitposterior.fileinstead.- posteriorid
Deprecated. Posterior ID for DB lookup, used only in the legacy fallback path.
- con
Deprecated. Database connection, used only in the legacy fallback path.
- hostname
Deprecated. Hostname for DB file lookup, used only in the legacy fallback path.