freq_matrix: Create a frequency matrix

Description Usage Arguments Value

View source: R/freq_matrix.R

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

1
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/phukieo documentation built on Aug. 17, 2020, 1:31 p.m.