Learn R Programming

qdap (version 2.3.0)

Trim: Remove Leading/Trailing White Space

Description

Remove leading/trailing white space.

Usage

Trim(x)

Arguments

x

The text variable.

Value

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

Examples

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

Run the code above in your browser using DataLab