qdap (version 2.4.6)

Trim: Remove Leading/Trailing White Space

Description

Remove leading/trailing white space.

Usage

Trim(x)

Value

Returns a vector with the leading/trailing white spaces removed.

Arguments

x

The text variable.

Examples

Run this code
if (FALSE) {
(x <- c("  talkstats.com ", "   really? ", " yeah"))
Trim(x)
}

Run the code above in your browser using DataLab