splitn {IFC} | R Documentation |
String Decomposition with Operators
Description
Helper that will split definition into chunks of names and operators.
Usage
splitn(
definition,
all_names,
alt_names,
operators = c("And", "Or", "Not", "(", ")"),
split = "|",
scalar = FALSE,
dsplit = FALSE
)
Arguments
definition |
definition to be split |
all_names |
the names of all allowed names. |
alt_names |
vector of same length as 'all_names' to use for substitution. It can be used to speed up the process. |
operators |
operators used. Default is c("And", "Or", "Not", "(", ")"). |
split |
string used for splitting. Default is "|". |
scalar |
whether to allow presence of scalar or not. Default is FALSE. |
dsplit |
whether to allow presence of duplicated occurrences of 'split' or not. Default is FALSE. |
[Package IFC version 0.2.1 Index]