strsplit.trimws: Split string and trim white space

View source: R/base.R

strsplit.trimwsR Documentation

Split string and trim white space

Description

Trims both leading and trailing white space.

Usage

strsplit.trimws(x, split, ...)

Arguments

x

What to split, a character vector.

split

What to use for splitting. Either a character vector or an object that can coerce to such.

...

Arguments passed on to base::strsplit

fixed

logical. If TRUE match split exactly, otherwise use regular expressions. Has priority over perl.

perl

logical. Should Perl-compatible regexps be used?

useBytes

logical. If TRUE the matching is done byte-by-byte rather than character-by-character, and inputs with marked encodings are not converted. This is forced (with a warning) if any input is found which is marked as "bytes" (see Encoding).

Value

Split strings, a character vector.


royratcliffe/canny.tudor documentation built on Oct. 17, 2022, 4:17 a.m.