smart_digits: Format numbers with automatic number of digits
Description
Format numbers with automatic number of digits
Usage
smart_digits(x, ...)smart_digits_format(x, ...)
Value
A character vector.
smart_digits_format()
returns a function with a single argument
x
, a numeric vector, that returns a character vector.
Arguments
- x
A numeric vector to format
- ...
Parameters passed to format()
Author
Josh O'Brien, Baptise Auguie, Jeffrey B. Arnold