trim.whitespace {plan}R Documentation

Trim leading/trailing whitespace from character strings

Description

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

Usage

trim.whitespace(x)

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

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

[Package plan version 0.1.0 Index]