nearestX | R Documentation |
This function uses the output of “objectXY” (xy coordinates of each detected object) and a GIS file of the transect to measure the nearest distance between each object and the curved transect. It returns a data-frame of distances (x) that can be used in distance sampling analyses.
nearestX(detections, transect)
detections |
Output of "objectXY": data-frame with the animal's spatial location as xy coordinates, which must be labelled: "x.obs", "y.obs" |
transect |
GIS file of the transect of class SpatialLines |
Data-frame with measures of distance (meters) between each detection and the nearest location on the transect
nearest.distance(detections = detections, transect = transect)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.