trim: Trim extra space around string

Description Usage Arguments Value Examples

Description

Remove any extra space around a string

Usage

1
trim(string)

Arguments

string

the string to be trimmed

Value

the trimmed substring

Examples

1
2
3
4
a <- " foo "
trim(a)
b <- "\n foo \n "
trim(b)

acjackman/acjackmanr documentation built on May 10, 2019, 5:11 a.m.