make.onesit: Reduces MRDS data frame to CDS data frame.

View source: R/utils.R

make.onesitR Documentation

Reduces MRDS data frame to CDS data frame.

Description

Reduces mark-recapture Distance sampling (MRDS) data frame dat, with two lines per detection, to a conventional distance sampling (CDS) data frame with a single line per detection. In the case of duplicates ("recaptures"), takes the information from the detection made farthest ahead (i.e. that with larger y) With duplicates that have the same y or neither of which have a y, it chooses according to the parameter prefer. If only one of the duplicates has a y, it chooses that one.

Usage

make.onesit(dat, prefer = 1)

Arguments

dat

MRDS data frame.

prefer

which of the two observers' data to prefer when forward distances are missing/equal must be 1 or 2.


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.