splitIntoBlocks: Split Character Vector Into Blocks of Lines

View source: R/bwb_rain_corr_wide.R

splitIntoBlocksR Documentation

Split Character Vector Into Blocks of Lines

Description

Split Character Vector Into Blocks of Lines

Usage

splitIntoBlocks(x, pattern, offset.start = 0, offset.stop = 0)

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)


KWB-R/kwb.read documentation built on Oct. 2, 2023, 10:40 a.m.