Split Character Vector Into Blocks of Lines
Arguments
- x
vector of lines of character
- pattern
pattern maching the start lines of the blocks
- offset.start
offset added to the indices matching the block starts to identify the first lines of the blocks to be cut
- offset.stop
offset defining the end of the blocks. A value of zero (default) means that a block ends one line before the start of the next block (a line matching
pattern
)