classify_da_id: Classify da_pa_ids

Description Usage Arguments Value

View source: R/classify_da_id.R

Description

Checks if an aggression inside a da_pa_id was given or received at least once. Prioritises high intensity over low.

Usage

1
classify_da_id(x, agg.low, agg.high, id, tag = NULL)

Arguments

x

A data frame of focal observations

agg.low

A character vector of low intensity aggression codes

agg.high

A character vector of high intensity aggression codes

id

A character vector of aggression partner IDs

tag

A character string that denotes the class of aggression partner. will be added to the new column name. e.g. "mm" or "mf".

Value

A data frame with two new columns.


avrincon/phukieo documentation built on Aug. 17, 2020, 1:31 p.m.