prettyround Return a formatted version of numeric vector.
prettyround
prettyround(p, r = 3)
Vector of numerical values
A numeric value that indicates the number of digits to round to
Return a formatted vector with rounded numbers
No detail.
# NOT RUN { prettyround(c(-0.05,0.001,0.00001),3) # }
Run the code above in your browser using DataCamp Workspace