Learn R Programming

rIACI (version 1.0.0)

get.series.lengths.at.ends: 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)

Value

Numeric vector. Lengths of runs at the ends.

Arguments

x

Logical vector.

na.value

Logical. Value to assign to NA elements.