unit_modify_vec: Modify unit abbreviation, vectorized version

unit_modify_vecR Documentation

Modify unit abbreviation, vectorized version

Description

Modify unit abbreviation, vectorized version

Usage

unit_modify_vec(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

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

Examples

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

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