signif_df {COINr} | R Documentation |
Tiny function just to round down a data frame by significant figures for display in a table, ignoring non-numeric columns.
signif_df(df, digits = 3)
df |
A data frame to input |
digits |
The number of decimal places to round to (default 3) |
A data frame, with any numeric columns rounded to the specified amount.
signif_df( as.data.frame(matrix(runif(20),10,2)), digits = 3)