options: Options for the 'sets' package

optionsR Documentation

Options for the ‘sets’ package

Description

Function for getting and setting options for the sets package.

Usage

sets_options(option, value)

Arguments

option

character string indicating the option to get or set (see details). If missing, all options are returned as a list.

value

Value to be set. If omitted, the current value is returned.

Details

Currently, the following options are available:

"quote":

logical specifying whether labels for character elements are quoted or not (default: TRUE).

"hash":

logical specifying whether set elements are hashed or not (default: TRUE).

"matchfun":

the default matching function for cset (default: NULL).

"orderfun":

the default ordering function for cset (default: NULL).

"universe":

the default universe for generalized sets (default: NULL).

See Also

cset

Examples

sets_options()
sets_options("quote", TRUE)
print(set("a"))
sets_options("quote", FALSE)
print(set("a"))

sets documentation built on March 7, 2023, 7:58 p.m.