trimWhitespace: Trims whitespace from a word

View source: R/utils.R

trimWhitespaceR Documentation

Trims whitespace from a word

Description

Trims whitespace from a word

Usage

trimWhitespace(word)

Arguments

word

Character to trim

Value

Character without whitespace

Examples

psichomics:::trimWhitespace("    hey   there     ")
psichomics:::trimWhitespace(c("pineapple    ", "one two three",
                              " sunken    ship   "))

nuno-agostinho/psichomics documentation built on Jan. 2, 2025, 4:10 a.m.