Combines posteriors exported by Hmsc-HPC
into an Hmsc object
Source: R/mod_get_posteriors.R
mod_get_posteriors.Rd
This function converts posterior files exported by Hmsc-HPC
into an Hmsc
object. It can either read the data directly from RDS files or convert it
from JSON format if specified.
Arguments
- path_posterior
Character vector. Path to the RDS files containing the exported posterior files. This argument is mandatory and cannot be empty.
- from_JSON
Logical. Whether the loaded models should be converted from
JSON
format. Defaults toFALSE
, meaning the data will be read directly from RDS files without conversion.