recapture_pairs: Return the recaptures from amongst the samples

View source: R/recapture_pairs.R

recapture_pairsR Documentation

Return the recaptures from amongst the samples

Description

Given the tibble of sampled individuals return a tibble of all the recaptures. This is a somewhat complicated operation that expands recaptures to all possible pairs of recaptures. (i.e. if the individual was caught on 3 different occasions there will be three separate pairs). The column pair_type shows RC for recapture.

Usage

recapture_pairs(S)

Arguments

S

the samples tibble with columns ID, sex, born_year, sampling_year

Details

This is broken now that sampling in different life episodes is demarcated as such. But I have left it in here unexported and internal in case I want to pick it up at some point.


eriqande/CKMRpop documentation built on Jan. 25, 2024, 2:10 p.m.