round_text: Converting Numeric Values into Characters with the Same Digits
Description
This simple function is to facilitate something like
decimal horizontal adjustment
which demands each value has the
same digits after the decimal point.
Usage
round_text(x, digits = 2, na = NULL)
Arguments
x
a vector of numeric values.
digits
digits which is to be passed
to round. It should not be smaller than 0.
na
how to show NAs. The default is
to show " NA", however, you can change it
to "NA" or simply NA.