Let's consider this simple data frame produced by kable function:
library(knitr)
df <- data.frame("X_1" = c(0.9131357, 0.9022396), "X_2" = c(6.328998e-07, 1.607509e-07))
kable(df, format = "pipe", digits = 3)
|   X_1| X_2|
|-----:|---:|
| 0.913|   0|
| 0.902|   0|
My question is - is there any possibility to add trailing zeroes to X_2 ? i.e. to have 0.000 instead of just 0 - it looks much better in my opinion when decimal places are equal for each column.
 
     
    