str_all_substrings | R Documentation |
Find all substrings of a given length
str_all_substrings(x, n)
x |
The input string. Non-character inputs will be coerced with |
n |
The length of the desired substrings. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.