Determine Which Tile Contains Each Given Point
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)
x,y |
Spatial coordinates.
Numeric vectors of equal length.
(Alternatively |
Z |
A tessellation (object of class |
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.
A factor, of the same length as x
and y
,
whose levels are the names of the tiles of Z
.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk
as.function.tess
to create a function whose
value is the tile index.
X <- runifrect(7) V <- dirichlet(X) tileindex(0.1, 0.4, V) tileindex(list(x=0.1, y=0.4), Z=V) tileindex(X, Z=V)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.