Learn R Programming

limma (version 3.28.14)

trimWhiteSpace: Trim Leading and Trailing White Space

Description

Trims leading and trailing white space from character strings.

Usage

trimWhiteSpace(x)

Arguments

x
character vector

Value

A character vector of the same length as x in which leading and trailing white space has been stripped off each value.

See Also

An overview of LIMMA functions for reading data is given in 03.ReadingData.

Examples

Run this code
x <- c("a "," b ")
trimWhiteSpace(x)

Run the code above in your browser using DataLab