units_options {units} | R Documentation |
set units global options, mostly related how units are printed and plotted
units_options(..., sep, group, negative_power, parse, set_units_mode, auto_convert_names_to_symbols, simplify)
... |
ignored |
sep |
character length two; default |
group |
character length two; start and end group, may be two empty strings, a parenthesis pair, or square brackets; default: square brackets. |
negative_power |
logical, default |
parse |
logical, default |
set_units_mode |
character; either |
auto_convert_names_to_symbols |
logical, default |
simplify |
logical, default |
The default NA
value for simplify
means units are not simplified in set_units or as_units, but are simplified in arithmetical expressions.
units_options(sep = c("~~~", "~"), group = c("", "")) # more space, parenthesis ## set defaults: units_options(sep = c("~", "~"), group = c("[", "]"), negative_power = FALSE, parse = TRUE)