join: Finds the Value of Mapped Variables at some Specified Locations
(Spatial Join)
Description
join finds the value of a mapped variable at some specified
locations.
Usage
join(xy, x)
Value
If only one variable is mapped in x, a vector with length
equals to the number of points in xy.
If only several variables are mapped in x, a data.frame
with a number of columns equal to the number of variables in the
object of class SpatialPixelsDataFrame, and with each row
corresponding to the rows of xy.
data(lynxjura)
## show the dataimage(lynxjura$map)
points(lynxjura$locs)
## join the data to the maps:res <- join(lynxjura$locs, lynxjura$map)
head(res)