longrun: linear time longest run search: find the longest run of...

Description Usage Arguments Value

View source: R/common.R

Description

linear time longest run search: find the longest run of values in the ordered vector within the specified limit

Usage

1
longrun(v, limit, group = NULL)

Arguments

v

a vector with entries ordered in increasing order

limit

distance interval

group

optional vector with entries -1 and 1 corresponding to the group membership of each element in v (two groups)

Value

run length


bwlewis/tcor documentation built on Sept. 6, 2020, 4:18 p.m.