strstrip: Trim space of a string.

Description Usage Arguments Value Author(s) Examples

View source: R/strstrip.R

Description

Trim space of a string.

Usage

1
strstrip(string, side = c("both", "left", "right"))

Arguments

string

A character vector.

side

Which side of the string to be trimed, 'both', 'left' or 'right'.

Value

Trimed vector.

Author(s)

Jian Li <[email protected]>

Examples

1
strstrip(c("\taaaa ", " bbbb    "))

tmcn documentation built on March 18, 2018, 1:44 p.m.