get_series_lengths {rIACI}R Documentation

Get Series Lengths

Description

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

Usage

get_series_lengths(bools)

Arguments

bools

Logical vector.

Value

Numeric vector. Lengths of consecutive TRUE runs.


[Package rIACI version 1.0.0 Index]