Skip to contents

Detect consecutive runs of TRUE in a logical vector Returns list with run_id, run_len, run_pos for each element

Usage

detect_runs(flagged)

Arguments

flagged

Logical vector