Learn R Programming

adehabitat (version 1.1-1)

join.asc: Finds the Value of Mapped Variables at some Specified Locations (Spatial Join)

Description

join.asc finds the value of a mapped variable at some specified locations. join.kasc is the same function as join.asc, with several maps.

Usage

join.asc(pts, x) 
 join.kasc(pts, w)

Arguments

x
an object of class asc
w
an object of class kasc
pts
the x and y coordinates of points to be placed on the map.

Value

  • join.asc returns a vector with length equals to the number of points in pts. join.kasc returns a data frame with a number of columns equals to the number of variables in the object of class kasc, and with each row corresponding to the rows of pts.

See Also

as.kasc and import.asc

Examples

Run this code
data(puechabon)
x <- puechabon$kasc

## for each relocation, finds the values of the variables in x
toto <- join.kasc(pts = cbind(puechabon$locs$X, puechabon$locs$Y), x)
toto[1:4,]

Run the code above in your browser using DataLab