trim {sealevel}R Documentation

Strip whitespace from a string.

Description

This function replaces all whitespace (\ s) from a string and returns the stripped version.

Usage

trim(string)

Arguments

string

a string that will be stripped

Value

string

The string stripped from whitespace

Author(s)

Fedor Baart

See Also

gsub

Examples

 s <- "	 in between spaces and tabs 	"
 trim(s)

[Package sealevel version 0.2.1 Index]