
Last chance! 50% off unlimited learning
Sale ends in
Given a tessellation and a list of spatial points, determine which tile of the tessellation contains each of the given points.
tileindex(x, y, Z)
Spatial coordinates. Numeric vectors of equal length.
A tessellation (object of class "tess"
).
A factor, of the same length as x
and y
,
whose levels are the names of the tiles of Z
.
This function determines which tile of the tessellation Z
contains each of the spatial points
with coordinates (x[i],y[i])
.
The result is a factor, of the same length as x
and y
,
indicating which tile contains each point. The levels of the factor
are the names of the tiles of Z
.
Values are NA
if the corresponding point lies outside the tessellation.
cut.ppp
and split.ppp
to
divide up the points of a point pattern according to
a tessellation.
as.function.tess
to create a function whose
value is the tile index.
# NOT RUN {
X <- runifpoint(7)
V <- dirichlet(X)
tileindex(0.1, 0.4, V)
# }
Run the code above in your browser using DataLab