get_p_dyad_count: Get partner dyad count

View source: R/get_p_dyad_count.R

get_p_dyad_countR Documentation

Get partner dyad count

Description

Get partner dyad count

Usage

get_p_dyad_count(x)

Arguments

x

A data frame. Needs columns "date", "focal_animal" and "action_partner"

Value

Adds new column "partner_dyad_count" to x. It is 0 when focal and partner were not focalled on the same day, and >0 when they were. The number indicates how many times they interacted that day from the focal animal's perspective.


avrincon/avr documentation built on Nov. 8, 2022, 4:30 a.m.