.roundIt {twoddpcr} | R Documentation |
For a data frame, if an extry is < 1, then round it to n significant figures. If it is >= 1, then round it to n decimal places.
.roundIt(df, n = 3)
df |
A data frame. |
n |
How many decimal places/significant figures to round to. |
The data frame x
with rounded entries.