Split String by Delimiter
Usage
sf_strsplit(x, s, fixed = TRUE)
Arguments
- x
<character>
vector
- s
<character>
delimiter to split by
- fixed
<logical>
fixed or regex; default is TRUE
Value
<list>
of character vectors
Examples
sf_strsplit("A|B|C", "|")
#> [[1]]
#> [1] "A" "B" "C"
#>