incRatt: Calculation of the percentage of daily time spent in nest

incRattR 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 incRscan in the first object of the returned list. A column named "date" is needed to refer to daily calculations.

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

incRprep incRscan incRact

Examples

#' # loading example data
data(incR_procdata)
incRatt (data=incR_procdata, 
               vector.incubation="incR_score")

PabloCapilla/incR documentation built on July 22, 2023, 12:18 p.m.