stringTrim: Trim whitespace from start and end of string

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Trim whitespace from start and end of string

Usage

1
  trim(input, side = "both")

Arguments

input

input character vector

side

side on which whitespace is removed (left, right, or both)

Value

character vector with leading and trailing whitespace removed

Examples

1
2
3
4
## Not run: 
trimString("\n\nString with trailing and leading white space \t")

## End(Not run)

jjallaire/RcppStrings documentation built on May 19, 2019, 11:37 a.m.