powered by
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)
A data frame, with any numeric columns rounded to the specified amount.
A data frame to input
The number of decimal places to round to (default 3)
signif_df( as.data.frame(matrix(runif(20),10,2)), digits = 3)
Run the code above in your browser using DataLab