split_prior_info: Extract priors information from a string with a particular...

View source: R/utils-split-prior-info.R

split_prior_infoR Documentation

Extract priors information from a string with a particular format into a vector

Description

Extract priors information from a string with a particular format into a vector

Usage

split_prior_info(prior_str, dec_points = 1, first_to_lower = FALSE)

Arguments

prior_str

A string with the format Lognormal(2.0,1.01)

dec_points

The number of decimal points to use

first_to_lower

Make the first letter of the prior name lower case

Value

A vector of length 3 with the following format: c("Lognormal", 2.0, 1.01)


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.