Making Pretty Numbers with prettyNum

We are taking two input numbers 1e10 and 1e-14, and formatting them with commas after zero and peroids before.

Want to learn more? I recommend working through: R for Data Science, R Cookbook, and R Graphics Cookbook.

prettyNum(
  c(1e10, 1e-14),
  big.mark = ",",
  small.mark = ".",
  preserve.width = "individual",
  scientific = FALSE
)
[1] "10,000,000,000"     "0.00000.00000.0001"