x
at consecutive indices n
, thereby
generating consecutive substrings of length n
and
returning the result as a list. This function will safely
'slice' a UTF-8 encoded vector.
str_slice2(x, n = 1, USE.NAMES = TRUE)
x
, pass this through to the result?x
, with each
element made up of the substrings generated from
x[i]
.
str_slice
, for slicing an ASCII vector.