eFrameDS: eFrameDS

View source: R/eFrame.R

eFrameDSR Documentation

eFrameDS

Description

eFrameDS creates an eFrame data object for data collected by distance sampling, specifically from remote cameras. Distance sampling is used to estimate the area of a camera viewshed by fitting a detection function and estimating the effective sampled area.

Usage

eFrameDS(distance, size, siteID, cutpoints, w, bin_nums = FALSE)

Arguments

distance

A vector of distances (or distance bin number) for each detected individual. Actual distances are the distance (m) to the midpoint of each distance bin.

size

the number of individuals recorded for each distance measurement (i.e. groupsize).

siteID

A vector indicating the camera ID for each distance measurement.

cutpoints

vector of bin cutpoints indicating the distance to the end of each bin. cutpoints should begin at zero and end with w.

w

Truncation distance or maximum distance from camera that will be considered in the analysis. All distances or bins further than this will be discarded.

bin_nums

A logical indicating whether distance records distances or bin numbers. Bin numbers are assumed to be numbered from 1.

Value

a eFrameDS holding data containing the data suitable for estimating a camera detection function

Examples

 ddata<- HogDeer$ddata
 cutpoints<- HogDeer$cutpoints
 emf<- eFrameDS(ddata$distance, ddata$size, ddata$camID, cutpoints, w=12.5, bin_num=TRUE)


dslramsey/eradicate documentation built on March 16, 2024, 1:40 p.m.