prms_conds_to_modify: Extract the conditions and parameters from an instruction...

View source: R/core_flex_prms.R

prms_conds_to_modifyR Documentation

Extract the conditions and parameters from an instruction string

Description

This function takes an instruction as a string and then extracts the conditions and parameters, depending on what "type" of operation it is. The expected structure is listed in the details docu of flex_prms()

Usage

prms_conds_to_modify(formula_instr, operation, all_conds, all_prms)

Arguments

formula_instr

an instruction string

operation

what to expect in terms of the string's structure. Can be "vary", "restrain", "fix", "set" or "dependency"

all_conds

all potential conditions (necessary for extending missing condition specification)

all_prms

all potential paramters (necessary for extending missing condition specification)

Value

a named list prms_to_adress and conds_to_adress as character vectors.


dRiftDM documentation built on April 3, 2025, 7:48 p.m.