incRact: Calculation of daily first incubation off-bout and last...

Description Usage Arguments Value Author(s) See Also Examples

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

1
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 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".

Value

a data frame containing fist off-bout and last on-bout per day in data.

Author(s)

Pablo Capilla-Lasheras

See Also

incRprep incRscan

Examples

1
2
3
4
5
#' # loading example data
data(incR_procdata)
incRact (data=incR_procdata, 
              time_column="time",
              vector.incubation="incR_score")

incR documentation built on May 2, 2019, 6:12 a.m.