seqLongest: find longest sequence of TRUEs

Description Usage Arguments Author(s)

Description

The function determines the first position and the length of the longest uninterupted series of TRUEs in a logical sequence. This for example can be used to find gapless positions in a series

Usage

1
seqLongest(array_in, na.rm = FALSE)

Arguments

array_in

logical vector: input vector

na.rm

logical: if TRUE, NAs are tretaed as FALSE

Author(s)

Jannis v. Buttlar



Search within the JBTools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.