Split string into pieces of fixed length and computing q-grams
Open
- Dominant language
- C++
- Stars
- 318
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Is there any existing function that does this?
```R
x <- c("ab", "def", "g")
split_length(x, 1)
#> list(c("a", "b"), c("d", "e", "f"), "g")
split_length(x, 2)
#> list("ab", c("de", "f"), "g")
```
I feel like this has to be a simple application of an existing function, but I can't figure it out.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.