Age of captured sterile males
survey_ages.Rd
Compute the age (i.e. number of days since release to capture) of released sterile males.
Value
A data.frame, with a similar structure as surveys
but with captures
of the sterile males from the target releases only, and with additional
variables for the release date and the age of the individual at the moment
of the survey in number of days.
Examples
head(
survey_ages(sit_adult_surveys(sit_prototype), sit_revents(sit_prototype))
)
#> pop_col id trap_code datetime_start datetime_end sex n
#> 1 blue 2261 6 2019-12-20 23:00:00 2019-12-21 23:00:00 male 0
#> 2 blue 1671 15 2019-12-14 23:00:00 2019-12-15 23:00:00 male 0
#> 3 blue 1431 9 2019-12-12 23:00:00 2019-12-13 23:00:00 male 0
#> 4 blue 1811 1 2019-12-16 23:00:00 2019-12-17 23:00:00 male 0
#> 5 blue 2171 10 2019-12-19 23:00:00 2019-12-20 23:00:00 male 0
#> 6 blue 1396 2 2019-12-12 23:00:00 2019-12-13 23:00:00 male 0
#> release_date age
#> 1 2019-12-12 23:00:00 9
#> 2 2019-12-12 23:00:00 3
#> 3 2019-12-12 23:00:00 1
#> 4 2019-12-12 23:00:00 5
#> 5 2019-12-12 23:00:00 8
#> 6 2019-12-12 23:00:00 1