Converts a word vector into a line vector with variable paragraph lengths.
para_index(n, FUN, ...)
n | Numeric. Numbers of words. |
---|---|
FUN | Numeric. how many words to split whole string by. |
... | Extra arguments. |
Numeric. paragraph indicator.
FUN most be a function that takes in a number n and returns a vector of natural numbers.