We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Is there any existing function that does this?
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.