incRatt {incR} | R Documentation |
Calculation of the percentage of daily time spent in nest
Description
This function calculates percentage of day time spent inside nest
based on the "inc.vector" variable produced by incRscan
(or any other method).
Current version do not discriminate day and night times.
Usage
incRatt(data, vector.incubation)
Arguments
data |
data frame containing a time-series vector of 1's and 0's, where "1"
means "incubating individual inside nest" and "0" means "incubating individual
outside nest". This vector,
under the name of "inc.vector" is provided by |
vector.incubation |
name of the column (vector class) storing the information about the presence/absence of the incubating individual in the nest. |
Details
The 'date' column must have a 'year-month-day' format for this function to run correctly.
Value
Daily percentage of time in nest, returned in a data frame with one day per raw.
See Also
Examples
#' # loading example data
data(incR_procdata)
incRatt (data=incR_procdata,
vector.incubation="incR_score")