Basic lookup function of coordinates on an icosahedral grid
Basic lookup function of coordinates on an icosahedral grid
locate(x, y, ...) ## S4 method for signature 'trigrid,matrix' locate(x, y, randomborder = FALSE, output = "ui") ## S4 method for signature 'trigrid,numeric' locate(x, y, ...) ## S4 method for signature 'trigrid,data.frame' locate(x, y, ...) ## S4 method for signature 'trigrid,SpatialPoints' locate(x, y, ...) ## S4 method for signature 'trigrid,SpatialPointsDataFrame' locate(x, y, ...) ## S4 method for signature 'hexagrid,matrix' locate(x, y, output = "ui", randomborder = FALSE, forceNA = FALSE)
x |
( |
y |
( |
... |
Arguments passed to class specific methods. |
randomborder |
( |
output |
( |
forceNA |
( |
The function returns the cell names (as character
) where the input coordinates fall.
# create a grid g <- trigrid(4) # some random points randomPoints<-rpsphere(4, output="polar") # cells locate(g, randomPoints)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.