trim: Trim leading and trailing white space

Description Usage Arguments Examples

View source: R/trim.R

Description

Removes white space from the start and end of each element in a character vector (or other similar character object, e.g. matrix).

Usage

1
trim(txt)

Arguments

txt

Character object

Examples

1
trim(c('    abc','xyz  ','\t\tindented.  '))

stevetnz/stevesRfunctions documentation built on May 28, 2019, 8:21 a.m.