Rounds to digits decimal places and keeps trailing zeros, so a column of numbers lines up in a table.
Examples
std.error <- c(0.12, 0.001, 1.2)
format_num(std.error)
#> [1] "0.120" "0.001" "1.200"
Rounds to digits decimal places and keeps trailing zeros, so a column of numbers lines up in a table.
std.error <- c(0.12, 0.001, 1.2)
format_num(std.error)
#> [1] "0.120" "0.001" "1.200"