spaste: Add Leading/Trailing Spaces

Description Usage Arguments Value Examples

View source: R/spaste.R

Description

Adds trailing and/or leading spaces to a vector of terms.

Usage

1
spaste(terms, trailing = TRUE, leading = TRUE)

Arguments

terms

A character vector of terms to insert trailing and/or leading spaces.

trailing

logical. If TRUE inserts a trailing space in the terms.

leading

logical. If TRUE inserts a leading space in the terms.

Value

Returns a character vector with trailing and/or leading spaces.

Examples

1
2
3
4
5
6
7
## Not run: 
spaste(Top25Words)
spaste(Top25Words, FALSE)
spaste(Top25Words, trailing = TRUE, leading = FALSE) #or
spaste(Top25Words, , FALSE)

## End(Not run)

qdap documentation built on May 15, 2018, 9:04 a.m.