Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

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

Run the code above in your browser using DataLab