Converts a word vector into a line vector with variable paragraph lengths.

para_index(n, FUN, ...)

Arguments

n

Numeric. Numbers of words.

FUN

Numeric. how many words to split whole string by.

...

Extra arguments.

Value

Numeric. paragraph indicator.

Details

FUN most be a function that takes in a number n and returns a vector of natural numbers.