baytrends (version 1.1.0)

strip.blanks: Remove Spaces

Description

Removes leading and trailing blanks from a character string. From smwrGraphs package.

Usage

strip.blanks(x)

Arguments

x

a character vector.

Value

A vector like x, but with leading and trailing spaces removed from each element.

See Also

link[base]{sub}

Examples

Run this code
# NOT RUN {
strip.blanks("   keep me   ")

# }

Run the code above in your browser using DataCamp Workspace