set_period: Set a resighting period

Description Usage Arguments Value Examples

View source: R/set_period.R

Description

Set a resighting period

Usage

1
set_period(x, period = NA, rsint = y)

Arguments

x

A dataframe generated by format_bandedbirds with columns for ResightDate and FlagID.

period

The duration of one resighting period (time unit used to build encounter histories). Enter "year", "month", "week", or "other".

rsint

If period = "other" enter the desired unit of time (i.e. "3 days").

Value

Dataframe with columns for ResightPeriod and FlagID (flag colour and code).

Examples

1
2
3
set_period(resight_data, period = "year")

set_period(resight_data, period = "other", rsint = "3 days")

ajmacdonald3/bb2enchist documentation built on Nov. 5, 2019, 4:47 p.m.