as.dets: Coerce a 'data.frame' to class 'dets'

Description Usage Arguments Examples

View source: R/s1_proc_inputs.R

Description

Coerces a data.frame to a dets object

Usage

1
as.dets(x, crs = 4326)

Arguments

x

A data.frame to coerce to a dets object.

crs

Coordinate Reference System to use for the detections. Passed to sf::st_crs() to set CRS for sf object. Defaults to 4326, longitude/latitude on the WGS84 spheroid.

Examples

1
2
3
4
5
6
7
#Load a CSV of already processed detections
proc.det.csv <- read.csv(
                 system.file("extdata", "processed_detections.csv",
                              package = "ADePTR"))

#Coerce to dets
proc.det2 <- as.dets(proc.det.csv)

bsmity13/ADePTR documentation built on Nov. 9, 2019, 12:43 a.m.