longest_run: Function for finding longest consecutive run of non-missing...

View source: R/internal-longest_run.R

longest_runR Documentation

Function for finding longest consecutive run of non-missing indices

Description

Function for finding longest consecutive run of non-missing indices

Usage

longest_run(x)

Arguments

x

A vector of indices for which to find the longest consecutive run of indices

Value

A named list, containing arguments:

from

The first index of the longest run.

to

The last index of the longest run.

step

The stepsize of the longest run.


MAPCtools documentation built on June 25, 2025, 5:09 p.m.