[ top | up ]

Encode in a Common Format

Syntax

format(x, trim=FALSE)

Description

This function converts its first argument to a vector of character strings, which have a common format (as is done by print). If trim is TRUE, leading blanks are trimmed off the strings. This is useful when the strings are to be used for plot axis annotation.

Examples

format(1:10)