Learn R Programming

IFC (version 0.1.6)

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", "(", ")"),
  split = "|"
)

Arguments

definition

population definition to be splitted

all_names

the names of all allowed populations

operators

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

split

string used for splitting. Default is "|".