Learn R Programming

rIACI (version 1.0.0)

get_series_lengths: Get Series Lengths

Description

Calculates the lengths of consecutive TRUE values in a logical vector.

Usage

get_series_lengths(bools)

Value

Numeric vector. Lengths of consecutive TRUE runs.

Arguments

bools

Logical vector.