powered by
A function to split strings by a delimiter
sf_split(subject, split, encode_mode = "auto", fixed = FALSE, nthreads = getOption("stringfish.nthreads", 1L))
A list of stringfish character vectors
A character vector
A delimiter to split the string by
"auto", "UTF-8" or "byte". Determines multi-byte (UTF-8) characters or single-byte characters are used.
determines whether the split parameter should be interpreted literally or as a regular expression
Number of threads to use
strsplit
if(getRversion() >= "3.5.0") { sf_split(datasets::state.name, "\\s") # split U.S. state names by any space character }
Run the code above in your browser using DataLab