spaste: Add Leading/Trailing Spaces

View source: R/spaste.R

spasteR Documentation

Add Leading/Trailing Spaces

Description

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

Usage

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

## 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 31, 2023, 5:20 p.m.