runs_in_sequence.Rd
Given a sequence of values of which a subset are dubbed 'hits', determine the number of runs of hits and the start and end of each run of hits.
runs_in_sequence(x, codes_for_hit = 1)
A vector of values.
A vector of the values
in x
indicating a hit.
A list with a) the total number of runs, and b) a matrix with a column for the start position of each run and a column for the end position of each run.