concept formatC() in category R

appears as: formatC()
Exploring Data with R

This is an excerpt from Manning's book Exploring Data with R.

Base R contains many functions to format text! We can start with numbers and use the formatC() function to transform them to text, using options that define exactly how the final text-based numbers will appear. Why would we format numbers to text? We often do this for display purposes. Formatting a numeric vector to a character vector can allow for consistent usage of decimal places, decoration of numbers with commas and units (like currency symbols or percent signs), or, left/right padding with spaces or other characters.