Trim: Trim

Description Usage Arguments Examples

Description

remove excess whitespace from string

Usage

1
Trim(s, multi = TRUE)

Arguments

s

string

multi

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

Examples

1
2
3
4
 Trim("             Trimmed      string")
 # [1] "Trimmed string"
 Trim("             Trimmed      string", FALSE)
 # [1] "Trimmed      string"

bfw documentation built on May 2, 2019, 6:51 a.m.