Learn R Programming

textutils (version 0.4-1)

spaces: Create Vectors of White Space

Description

Create character vectors of white space.

Usage

spaces(n)

Value

character

Arguments

n

integer

Author

Enrico Schumann

Details

The function creates a character vector of white-space strings. Such vectors are useful, for instance, for padding character vectors.

See Also

strexp

Examples

Run this code
spaces(0:3)

Run the code above in your browser using DataLab