Learn R Programming

IFC (version 0.1.1)

splitn: String Decomposition with Operators

Description

Helper that will split population definition into chunks of names and operators.

Usage

splitn(
  definition,
  all_names,
  operators = c("And", "Or", "Not", "(", ")"),
  splitter = "[`~splitter~`]"
)

Arguments

definition

population definition to be splitted

all_names

the names of all allowed populations

operators

operators used. Default is c("And", "Or", "Not", "(", ")").

splitter

the splitter that will be used to help splitting