This function returns the units of a numerical value generated by iso_double_with_units
. It returns NA
) for unitless variables. Returns a column-named vector of units if x
is a data frame / tibble. Returns the direct units of x
in all other cases.
iso_get_units(x)
variable to get the units for (vector or data frame)
Other functions for values with units:
iso_is_double_with_units()
,
iso_make_units_explicit()
,
iso_make_units_implicit()
,
iso_strip_units()
,
iso_with_units()