Trim: Trim

View source: R/basic_functions.R

TrimR Documentation

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

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

bfw documentation built on March 18, 2022, 6:19 p.m.