chop: Cleans leading and trailing whitespace.

Description Usage Arguments Value Examples

View source: R/my_functions.r

Description

Removes leading and trailing whitespace in a vector of strings.

Usage

1
chop(x)

Arguments

x

A character vector.

Value

A vector with leading and trailing whitespace removed.

Examples

1
2
3
chop(c("    hello ", "  123  \t"))

[1] "hello" "123"

traversc/trqwe documentation built on Dec. 4, 2020, 4:21 a.m.