trimspace: Trim Whitespace

Description Usage Arguments Value Examples

View source: R/trimspace.R

Description

Trim leading and trailing whitespace from a character vector.

Usage

1
trimspace(charvec)

Arguments

charvec

A character vector to be trimmed.

Value

A character vector, the same length as charvec, without leading and trailing whitespace.

Examples

1
2
trimspace("    Bob   and Alice")
trimspace(" Harriet and    June    ")

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.