get.series.lengths.at.ends {rIACI}R Documentation

Get Series Lengths at Ends

Description

Calculates the lengths of runs at the ends of a logical vector.

Usage

get.series.lengths.at.ends(x, na.value = FALSE)

Arguments

x

Logical vector.

na.value

Logical. Value to assign to NA elements.

Value

Numeric vector. Lengths of runs at the ends.


[Package rIACI version 1.0.0 Index]