Trim leading/trailing whitespace from character strings

Share:

Description

Trim leading and trailing whitespace from character strings. Used by read.gantt and read.burndown.

Usage

1

Arguments

x

a character string, or vector of character strings.

Value

As x, but with leading and trailing space removed

Author(s)

Dan Kelley

Examples

1
2
3
4
library(plan)
x <- c("  hellow there", "ba bye   ", " buddy   ")
print(x)
print(trim.whitespace(x))