
Retrieve a canonical parameter name from a HMSC coda object
Source:R/eco_coda_to_tibble.R
coda_match_param.RdPerforms a case-insensitive lookup of a requested HMSC posterior parameter
name against the names in obj. Returns the exact name as stored in the coda
object (e.g. "AlphaInd" when HMSC >= 3.4-0 is used, or "Alpha" for older
versions) so callers do not need to hard-code version-specific names.
Arguments
- obj
A named list (typically a HMSC coda object produced by
Hmsc::convertToCodaObject()). Cannot beNULLor empty.- param
Character. Parameter name to look up. Must be one of
"beta","alpha","omega","rho", or"gamma"(case-insensitive).- warning
Logical. If
TRUE(default), emit a warning whenparamis not found inobj.