View source: R/utils_rounding.R
num2str | R Documentation |
Convert numeric value to a string abbreviation with K, M, B for Thousand, Million & Billion
num2str(
x,
sf = 2,
outtype = c("abbreviated", "with_suffix", "rounded"),
suffix_lb = "K"
)
x |
|
sf |
|
outtype |
|
chr
num2str_vec
Other rounding:
magnitude_order()
,
magnitude_triplet()
,
num2str_vec()
,
num_chr_suffi
,
round_to()
,
size()
,
unit_find()
,
unit_modify()
,
unit_modify_vec()
,
unit_string()
num2str(10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.