Closed cjrace closed 3 months ago
Add a comma_separate() function to present large numbers neatly. This will be used by format_readable(), but also more widely available as it's used frequently in our projects.
A function based on this:
comma_separate <- function(x) { format(x, big.mark = ",", trim = TRUE) }
It's basic, but given how much we use this in our projects it'll help to tidy up the code and make it more readable.
None
Is your feature request related to a problem? Please describe.
Add a comma_separate() function to present large numbers neatly. This will be used by format_readable(), but also more widely available as it's used frequently in our projects.
Describe the solution you'd like
A function based on this:
It's basic, but given how much we use this in our projects it'll help to tidy up the code and make it more readable.
Describe alternatives you've considered
None
Additional context
None