strstrip: Strip leading and trailing whitespace from a character string

Description Usage Arguments Details

Description

Strip leading and trailing whitespace from a character string

Usage

1
strstrip(x, leading = TRUE, trailing = TRUE)

Arguments

x

A vector of character strings.

leading

Whether or not to remove leading whitespace. Defaults to leading=TRUE.

trailing

Whether or not to remove trailing whitespace. Defaults to trailing=TRUE.

Details

Code copied from http://stackoverflow.com/questions/2261079/how-to-trim-leading-and-trailing-whitespace-in-r, 2014-11-26.


harrysouthworth/margarita documentation built on Aug. 19, 2021, 5 a.m.