trim: Strip whitespace from a string.

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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

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

sealevel documentation built on May 2, 2019, 6:51 p.m.