objectXY: Spatial Location of Detected Objects

View source: R/functions.R

objectXYR Documentation

Spatial Location of Detected Objects

Description

This function uses the xy coordinates of a transect to locate an observer’s location and calculate their bearing (based on the buffer distance). Using the provided distance (between the observer and the object) and angle, it then spatially locates each detected object. It returns a data frame with xy coordinates for each detection.

Usage

objectXY(transectXY, detections, buffer)

Arguments

transectXY

Two column data-matrix containing the transect's spatial coordinates

detections

Data frame with colums 'meter,' 'distance,' and 'angle.'

buffer

Number of meters around the observer's location used to make bearing on the transect.

Value

Data-frame with the animal's spatial location as xy coordinates, plus the original 'meter', 'distance,' and 'angle.'

Examples

objectXY(transect=transectXY, detections=ds, buffer=5) 

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