unit_modify: Modify unit abbreviations

View source: R/utils_rounding.R

unit_modifyR Documentation

Modify unit abbreviations

Description

Modify unit abbreviations

Usage

unit_modify(x, unit, outtype, magnitude = magnitude_order(x))

Arguments

x

num The maximum number in the dataset

unit

chr Type of units, supported values are: AF, F, $, W, MW

outtype

chr The type of output to be added. Current possibilities are: begin, end, abbrev, unit_eng

magnitude

num The order of magnitude for the unit. The highest triplet will be used. See magnitude_triplet

Value

chr updated units

See Also

unit_modify_vec

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

Examples

unit_modify(10^7, "AF", "abbrev")

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