Description Usage Arguments Value
View source: R/ap_sb_gr_duration_calculator.R
Written specifically for approach, body contact and grooming.
1 | ap_sb_gr_duration_calculator(d_focal, start_codes, end_codes, focals, partners)
|
d_focal |
data frame of focal observations. Currently needs all these columns with exact same names: "date", "protocol_start_time", "focal_animal", "observer", "group", "action_time", "actor", "action", "receiver", "modifier_1", "modifier_2", "action_partner", "at_sec_since_mdn" |
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 |
partners |
a character vector of partners which took part in the behaviour. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.