Helper that will split definition into chunks of names and operators.
splitn(
definition,
all_names,
alt_names,
operators = c("And", "Or", "Not", "(", ")"),
split = "|",
scalar = FALSE,
dsplit = FALSE
)
definition to be split
the names of all allowed names.
vector of same length as 'all_names' to use for substitution. It can be used to speed up the process.
operators used. Default is c("And", "Or", "Not", "(", ")").
string used for splitting. Default is "|".
whether to allow presence of scalar or not. Default is FALSE.
whether to allow presence of duplicated occurrences of 'split' or not. Default is FALSE.