split_pieces: Split a string vector into a list of string piece vectors.

Description Usage Arguments Value

Description

First, a replacement is performed at alphanumeric piece edges to create pieces that are delimited by a space or punctuation character. Second, the string is split by split_pat into pieces

Usage

1
split_pieces(x_chr, split_pat = character())

Arguments

x_chr

character vector of strings to be split

split_pat

regex pattern to delimit pieces

Value

pieces list with same length as x_chr, whose i-th element contains a character vector of split products of x_chr[i]


mbadge/MyUtilsR documentation built on May 27, 2019, 1:08 p.m.