find_bracketed_arguments: Parse Prototype Functions for Arguments

Description Usage Arguments Value

View source: R/ubiquity.r

Description

Parses strings to find abstract functions (of the format SIFUNC[ARG1][ARG2][ARG3] and extract the arguments from that function and replace it with actual functions and any additional arguments needed

Usage

1
find_bracketed_arguments(str, pattern, replace = "", narg, op = "[", cp = "]")

Arguments

str

string containing the prototype function call

pattern

string indicating the start of the function eg. "SI_TT_BOLUS["

replace

string to replace pattern with

narg

number of arguments to prototype function

op

string used to indicating open parenthesis

cp

string used to indicating close parenthesis

Value

string containing the actual function call/code built from the prototype function


ubiquity documentation built on Sept. 5, 2021, 5:15 p.m.