unit_string: Extract the units from a string

View source: R/utils_rounding.R

unit_stringR Documentation

Extract the units from a string

Description

It is assumed that units are encased in parentheses at the end of the string

Usage

unit_string(x)

unit_string(x) <- value

Arguments

x

chr String(s) to extract units from/assign units to

Value

chr

See Also

Other rounding: magnitude_order(), magnitude_triplet(), num2str(), num2str_vec(), num_chr_suffi, round_to(), size(), unit_find(), unit_modify(), unit_modify_vec()

Other rounding: magnitude_order(), magnitude_triplet(), num2str(), num2str_vec(), num_chr_suffi, round_to(), size(), unit_find(), unit_modify(), unit_modify_vec()

Examples

unit_string("Elevation (F)")

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.