Is there a standard way to convert numeric values ββto a character with a specific type of formatting.
I am thinking of something like:
formatR(32390,"dollars") # returns "$32,390" formatR(1.25,"percent") # returns "125%"
Obviously, itβs not so difficult to write them yourself, but the need for such things is quite constant when preparing reports, and should there already be some kind of package?
source share