Description Usage Arguments Details Author(s) References
takes a numeric vector (e.g. 1200, 1300000) and converts it to use SI suffixes (e.g. 1.2K, 1.3M)
1  | compress(x, round_by = 2)
 | 
x | 
 a vector of numeric or integer values  | 
round_by | 
 how many digits to round the resulting numbers by  | 
This function is made available under CC-BY-SA 3.0
Original code: 42-; improvement: Mikhail
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.