trim {bazar}R Documentation

Removes extra whitespaces from a string

Description

The function trim removes unnecessary whitespaces from a character vector.

Usage

trim(x)

Arguments

x

character. The character vector at stake.

Value

A character vector of the same length as x.

See Also

gsub.

Examples

trim(c(" a b", "Hello  World "))


[Package bazar version 1.0.11 Index]