Learn R Programming

qdap (version 1.3.5)

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
(x <- c("  talkstats.com ", "   really? ", " yeah"))
Trim(x)

Run the code above in your browser using DataLab