naming {BaseSet}R Documentation

Name an operation

Description

Helps setting up the name of an operation.

Usage

naming(
  start = NULL,
  sets1,
  middle = NULL,
  sets2 = NULL,
  collapse_symbol = "union"
)

Arguments

start, middle

Character used as a start symbol or to divide sets1 and sets2.

sets1, sets2

Character of sets

collapse_symbol

Name of the symbol that joins the sets on sets1 and sets2.

Value

A character vector combining the sets

See Also

set_symbols()

Examples

naming(sets1 = c("a", "b"))
naming(sets1 = "a", middle = "union", sets2 = "b")
naming(sets1 = "a", middle = "intersection", sets2 = c("b", "c"))
naming(sets1 = "a", middle = "intersection", sets2 = c("b", "c"))
naming(
    start = "complement", sets1 = "a", middle = "intersection",
    sets2 = c("b", "c"), collapse_symbol = "intersection"
)

[Package BaseSet version 0.9.0 Index]