Trim: Trim

Description Usage Arguments Examples

View source: R/basic_functions.R

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 Jan. 11, 2020, 9:29 a.m.