formatTable | R Documentation |
Format by digit
formatTable(df, digit = 2)
df |
numeric data.frame |
digit |
default = 2 |
If you want to format by column respectively
tab_test <- structure(list(col1 = c(2e-05, 0.001, 0.568978554112256), col2 = c(3.5,45.6546548788, 12585.5663), col3 = c(200, 34.52, NA)), class = "data.frame", row.names = c(NA,-3L))
as.data.frame(Map(loonR::formatTable, tab_test, c(3L, 2L, 2L)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.