TRIM: Trim Leading & Trailing Whitespace in String/Vector

Description Usage Arguments Value Author(s) See Also Examples

View source: R/TRIM.R

Description

Trims leading/trailing whitespace in a string/character vector.

Usage

1
TRIM(x)

Arguments

x

Character vector or string you would like to remove trailing/leading whitespace from.

Value

Returns the string/character vector with leading/trailing whitespace removed.

Author(s)

Nick Bultman, njbultman74@gmail.com, January 2021

See Also

trimws

Examples

1
2
TRIM("     hello world!    ")
TRIM(c("hi    ", "    hey", "   hello   "))

njbultman/xlsxFunctions documentation built on Aug. 8, 2021, 3:14 p.m.