parse_param_comment: Parse parameter labels

View source: R/param-labels.R

parse_param_commentR Documentation

Parse parameter labels

Description

Extracts parameter labels from comments in raw ctl string.

Usage

parse_param_comment(.x, .theta = FALSE)

parse_same_block(.x)

Arguments

.x

an object from the list that comes out of clean_ctl() (i.e. .ctl_clean$THETA, .ctl_clean$SIGMA, .ctl_clean$OMEGA)

.theta

If FALSE, the default, assumes element is an OMEGA or SIGMA and parses ⁠[{}]⁠ to "type" column. If TRUE, assumes THETA and parses ⁠[{}]⁠ to unit.

Details

parse_param_comment() is heavily modified from tidynm::parse_theta() to parse out the comments into the right columns for all three params.

parse_same_block() iterates over a list of $OMEGA or $SIGMA blocks and replaces the SAME blocks with a copy of the block they are referring to.


metrumresearchgroup/rbabylon documentation built on Aug. 8, 2024, 11:18 p.m.