Learn R Programming

oce (version 1.7-10)

trimString: Remove leading and trailing whitespace from strings (deprecated)

Description

This function will be removed from an upcoming version of oce, because the base function trimws() does the same and more, without having problems with encoding (see https://github.com/dankelley/oce/issues/1993).

Usage

trimString(s)

Value

a new vector formed by trimming leading and trailing whitespace from the elements of s.

Arguments

s

vector of character strings