getWindowIndex | R Documentation |
From a set of windows, find the index of the window into which a given point falls. Can be applied to detection and habitat windows.
getWindowIndex(curCoords, lowerCoords, upperCoords)
curCoords |
Vector of coordinates of a single spatial point |
lowerCoords, upperCoords |
Matrices of lower and upper x- and y-coordinates of a set of windows. One row for each window. |
Index of the window where the given point falls; -1 is returned if the point does not fall in any window.
Pierre Dupont
sourceCoords <- c(1.5,2.2) lowerCoords <- cbind(c(0,1,3,0),c(0,1,2,2)) upperCoords <- cbind(c(1,3,5,3),c(1,2,4,4)) getWindowIndex(sourceCoords, lowerCoords, upperCoords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.