50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

bfw (version 0.4.2)

Trim: Trim

Description

remove excess whitespace from string

Usage

Trim(s, multi = TRUE)

Arguments

s

string

multi

logical, indicating whether or not to remove excess whitespace between characters, Default: TRUE

Examples

Run this code
# NOT RUN {
 Trim("             Trimmed      string")
 # [1] "Trimmed string"
 Trim("             Trimmed      string", FALSE)
 # [1] "Trimmed      string"
# }

Run the code above in your browser using DataLab