to_human.RdConvert large number to human readable string
to_human(n, prec = 0, family = "number", errors = "raise", custom_suff = NULL)
| n | number to convert float |
|---|---|
| prec | precision to round to |
| family | family of suffix, numeric or filesize |
| errors | 'raise', 'coerce', default 'raise' If 'raise', then invalid parsing will raise an exception. If 'coerce', then invalid parsing will return NA. |
| custom_suff | List of custom suffixes, default NULL |
string in human readable version
to_human(69420, prec = 1)#> [1] "69.4K""69.4K"#> [1] "69.4K"