freq_matrix: Create a frequency matrix

View source: R/freq_matrix.R

freq_matrixR Documentation

Create a frequency matrix

Description

Create a matrix with the frequency that a certain behaviour occurs for a particular dyad (e.g. proximity, body contact or grooming bouts)

Usage

freq_matrix(action_df, matrix_rows, matrix_cols)

Arguments

action_df

A data frame with all occurences of a single behaviour. Usually created by duration_calculator().

m_rows

A character vector of IDs to go in matrix rows

m_cols

A character vector of IDs to go in matrix columns

Value

A matrix with frequencies per dyad


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