I need to print my numbers with the same number of trailing zeros (automatically "guessed" for each input), and can't find the right parameter in prettyNum(). What I want is the following:
prettyNum(c(1, 1.1, 2), ...)
# "1.0" "1.1" "2.0"
prettyNum(c(100, 1.1, 2, 2.25), ...)
# "100.00" " 1.10" " 2.00" " 2.25"