| which.first | R Documentation | 
Determines the location, i.e., index of the first or last TRUE
value in a logical vector.
which.first(x)
which.last(x)
| x | 
 | 
integer, index of the first/last TRUE
value. integer(0) if no TRUE (everything FALSE or NA)
was found.
Sebastian Gibb
which.min()
Other helper functions for developers: 
between(),
isPeaksMatrix(),
rbindFill(),
validPeaksMatrix(),
vapply1c()
l <- 2 <= 1:3
which.first(l)
which.last(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.