nearestX: Curving Transect Distance Measurement

View source: R/functions.R

nearestXR Documentation

Curving Transect Distance Measurement

Description

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.

Usage

nearestX(detections, transect)

Arguments

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

Value

Data-frame with measures of distance (meters) between each detection and the nearest location on the transect

Examples

nearest.distance(detections = detections, transect = transect)

esbach/CurveTransect documentation built on Oct. 11, 2023, 10:10 p.m.