trim: trim

Description Usage Arguments Value Examples

Description

trim removes whitespace from the left and right side. Depricated with R v3.0.0 (trimws())

Usage

1
trim(x, side = "both")

Arguments

x

string or vector of strings

side

Which side should be trimmed: 'both', 'left', or 'right'

Value

string or vector of strings

Examples

1
2
3
4
5
6
#x = "bill "
#x2 = c("bill ", " bill", " bill ")
#trim(x)
#trim(x2)
#trim(x2, "left")
#trim(x2, "right")

TaylorAndrew/atClean documentation built on May 9, 2019, 4:21 p.m.