prot_oos_duration_calculator: Calculate the duration of a behaviour without a partner.

View source: R/prot_oos_duration_calculator.R

prot_oos_duration_calculatorR Documentation

Calculate the duration of a behaviour without a partner.

Description

Written specifically for focal protocol duration and out of sight time.

Usage

prot_oos_duration_calculator(d_focal, start_codes, end_codes, focals)

Arguments

d_focal

frame of focal observations. Currently needs all these columns with exact same names: "date", "protocol_start_time", "focal_animal", "observer", "action_time", "actor", "action","action_time_of_day_sec"

start_codes

a character vector of action codes that indicate when a behaviour starts.

end_codes

a character vector of action codes that indicate when a behaviour ends.

focals

a character vector of focal animals

Value

adds two columns to d_focal. One with the total duration in seconds (duration_s), and another with the total duration in hh:mm:ss (duration)


avrincon/phdfuns documentation built on Nov. 13, 2022, 10:34 a.m.