This function returns the positions of elements which are in a defined region.
the start position
The function returns the position of the elements in vector
which are in a specific interval, defined by
starting from position
The native R solution would be:
X <- (vec >= from) & (vec <= to)
ids <- which(X)
or the function
is just a little bit slower than
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.