trim: Trim the whitespace from front and back of the words in a...

Description Usage Arguments Value Author(s) Examples

Description

Trim the whitespace from front and back of the words in a vector.

Usage

1
trim(x)

Arguments

x

a character vector

Value

a character vector of trimmed text

Author(s)

Mark Cowley, 2009-08-19

Examples

1
2
3
4
5
6
trim("   ABC")
# "ABC"
trim("DEF   ")
# "DEF"
trim("  ABC  ")
# "ABC"

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.