splitByPattern.Rd
Splits a single character string by pattern. The main difference compared to strsplit
()
is that this method also returns the part of the string that matched
the pattern. Also, it only takes a single character string.
# S3 method for default
splitByPattern(str, pattern, ...)
Returns a named character
vector
with names equal to "TRUE"
if element is a pattern part and "FALSE"
otherwise.
Compare to strsplit
().