num2str_vec: Convert number to string Vectorized version

num2str_vecR Documentation

Convert number to string Vectorized version

Description

Convert number to string Vectorized version

Usage

num2str_vec(
  x,
  sf = 2,
  outtype = c("abbreviated", "with_suffix", "rounded"),
  suffix_lb = "K"
)

Arguments

x

num

sf

num significant figures to round to

outtype

chr Format of the outtype

  • abbreviated takes the form XX where X are digits

  • with_suffix takes the form XXS where X are digits and S is the suffix

  • rounded takes the form XX.XX rounded with sf sig figs

Value

chr

See Also

num2str

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

Examples

num2str(10000)

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