occupied {icosa} | R Documentation |
Faces occupied by the specified object
Description
This function will return a facelayer
class object showing which faces are occupied by the input object.
Usage
occupied(gridObj, data, out = "logical", ...)
Arguments
gridObj |
|
data |
( |
out |
( |
... |
Arguments passed to the class specific methods |
Details
This is a wrapper function on the OccupiedFaces
methods that are specific to grid class and input data.
Value
The function Returns a facelayer
-class object.
Examples
# create a grid
g <- trigrid(8, sf=TRUE)
# create random points
randPoints <- rpsphere(100,output="polar")
# the faces occupied by these points
occ <- occupied(g, randPoints)
# plot using sf slot independently
plot(g@sf[occ,"geometry"])
points(randPoints, col="red", pch="+")
[Package icosa version 0.11.0 Index]