powered by
Function for getting and setting options for the sets package.
sets_options(option, value)
character string indicating the option to get or set (see details). If missing, all options are returned as a list.
Value to be set. If omitted, the current value is returned.
Currently, the following options are available:
"quote"
logical specifying whether labels for character elements are quoted or not (default: TRUE).
TRUE
"hash"
logical specifying whether set elements are hashed or not (default: TRUE).
"matchfun"
the default matching function for cset (default: NULL).
cset
NULL
"orderfun"
the default ordering function for cset (default: NULL).
"universe"
the default universe for generalized sets (default: NULL).
# NOT RUN { sets_options() sets_options("quote", TRUE) print(set("a")) sets_options("quote", FALSE) print(set("a")) # }
Run the code above in your browser using DataLab