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)

Arguments

x

variable to get the units for (vector or data frame)

See also