find longest sequence of TRUEs
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
logical vector: input vector
logical: if TRUE, NAs are tretaed as FALSE
Jannis v. Buttlar
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.