str_all_substrings {levitate} | R Documentation |
Find all substrings of a given length
Description
Find all substrings of a given length
Usage
str_all_substrings(x, n)
Arguments
x |
The input string. Non-character inputs will be coerced with |
n |
The length of the desired substrings. |
Value
A character vector containing all the length n
substrings of x
. If x
has length >
then a list is returned containing an entry for each input element.
[Package levitate version 0.2.0 Index]