Learn R Programming

tmcn (version 0.2-13)

strstrip: Trim space of a string.

Description

Trim space of a string.

Usage

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.

Examples

Run this code
# NOT RUN {
strstrip(c("\taaaa ", " bbbb    "))


# }

Run the code above in your browser using DataLab