A pipe friendly version of units<-
set_units(x, value, ..., mode = units_options("set_units_mode"))
a numeric to be assigned units, or a units object to have units converted
a units
object, or something coercible to one with
as_units
. Depending on mode
, the unit is constructed from the
supplied bare expression or from the supplied value via standard
evaluation.
passed on to as_units
if "symbols"
(the default), then unit is constructed from
the expression supplied. Otherwise, ifmode = "standard"
,
standard evaluation is used for the supplied value This argument can be set
via a global option units_options(set_units_mode = "standard")