incRact {incR} | R Documentation |
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)
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 |
time_column |
(character class) name of the column containing times. |
vector.incubation |
(character class) name of the vector containing
incubation scores. |
Value
a data frame containing fist off-bout and last on-bout per day in data.
Author(s)
Pablo Capilla-Lasheras
See Also
Examples
#' # loading example data
data(incR_procdata)
incRact (data=incR_procdata,
time_column="time",
vector.incubation="incR_score")