strs_slice
extracts substrings from each element of a character vector,
specified by start and stop positions. It is similar to Python's slicing
syntax for strings, but it uses 1 indexing and stops are inclusive.
Arguments
- string
A character vector where each element is a string to slice.
- start
An integerish scalar for the starting position for slicing (inclusive).
- stop
An integerish scalar for the ending position for slicing (inclusive).
- ...
Used to force keyword argument usage of
step
.- step
An integer greater than 0 or equal to -1 for the step size. If -1 is provided, each string will be reversed after slicing operations.