incRact: Calculation of daily first incubation off-bout and last incubation on-bout
Description
Using a vector of incubation scores,
incRact
calculates onset of activity (first off-bout in the morning),
and end of daily activity (last on-bout in the evening) per day. A column for dates, named "date"
is needed in the data argument.
Usage
incRact(data, time_column, vector.incubation)
Value
a data frame containing fist off-bout and last on-bout per day in data.
Arguments
data
data frame containing a numeric vector of 1's and 0's (incubation scores), where "1"
means "incubating individual inside nest" and "0" means "incubating individual
outside the nests". This vector,
under the name of incR_score is provided by incRscan in the
first object (incRscan_data) of the returned list. A column named "date" is needed to refer to daily
calculations.
time_column
(character class) name of the column containing times.
vector.incubation
(character class) name of the vector containing
incubation scores. incRscan produces
this vector named "incR_score".