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

Description Usage Arguments

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

1
make.onesit(dat, prefer = 1)

Arguments

dat

distance data frame in mrds form. Must have columns 'object' (unique detection identifier), 'seen' (binary indicating detecteb by observer or not) and 'y' (forward) detection distance.

prefer

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

dat

MRDS data frame.


DistanceDevelopment/hsltm documentation built on June 21, 2019, 2:22 p.m.