Formatted Character Data

DESCRIPTION:

Coerces the input to character strings using a common format. The function is useful for building custom output displays, and is often used in conjunction with cat to print such displays.

USAGE:

format(x, ...) 

REQUIRED ARGUMENTS:

x
an object of a class that has a method for format, or an atomic object.

VALUE:

an object similar to the input, but converted to character.

DETAILS:

This is a generic function.

SEE ALSO:

, , , , , .

EXAMPLES:

format(2^seq(10)) 
#  [1] "   2" "   4" "   8" "  16" "  32" 
#  [6] "  64" " 128" " 256" " 512" "1024"