Set a function for pretty-printing kables

pretty_kable(df, ...)

Arguments

df

Data frame containing data to format as a table

...

Additional options to be passed to kable

Value

A kable table

Examples

pretty_kable(data.frame(x = c(1000, 999), y = c(0.345:0.351)))
#> #> #> | x| y| #> |-----:|----:| #> | 1,000| 0.34| #> | 999| 0.34|