powered by
Round double in a data.frame to a specified number of decimal places
rounddf(tbl, dec = 3)
Data frame
Number of decimal places
Data frame with rounded doubles
# NOT RUN { data.frame(x = as.factor(c("a","b")), y = c(1L, 2L), z = c(-0.0005, 3.1)) %>% rounddf(dec = 3) # }
Run the code above in your browser using DataLab