View source: R/FilterSuccessiveInds.R
FilterSuccessiveInds | R Documentation |
Filters consecutive indices
FilterSuccessiveInds(x)
x |
vector of Inds |
Zahlenproblem c(1,2,3,4,9,14,15,16) filtern zu Anfang c(1,9,14) und c(4,1,3) Laenge
# Output List V of # V$length[1:m] length of consecutive inds # V$values[1:m] start ind of consecutive inds
see seqle in https://stackoverflow.com/questions/16118050/how-to-check-if-a-vector-contains-n-consecutive-numbers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.