chrsplit: strsplit

View source: R/string.R

chrsplitR Documentation

strsplit

Description

strsplit

Usage

chrsplit(
  x,
  split = "",
  unlist = TRUE,
  fixed = FALSE,
  perl = FALSE,
  use_bytes = FALSE
)

Arguments

x

character vector, each element of which is to be split. Other inputs, including a factor, will give an error.

split

character vector (or object which can be coerced to such) containing regular expression(s) (unless fixed = TRUE) to use for splitting. If empty matches occur, in particular if split has length 0, x is split into single characters. If split has length greater than 1, it is re-cycled along x.

unlist

logical. Should the result ve a vector?

fixed

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

perl

logical. Should Perl-compatible regexps be used?

use_bytes

logical. If TRUE the matching is done byte-by-byte rather than character-by-character, and inputs with marked encodings are not converted.


D-Se/ergo documentation built on May 24, 2022, 5:20 p.m.