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 Feb. 11, 2024, 11:16 p.m.