tally_from_matrix: Create tally from a raw matrix

View source: R/tally.R

tally_from_matrixR Documentation

Create tally from a raw matrix

Description

Creates a toporanga_tally objects from a matrix representing counts of domination events between pairs of agents.

Usage

tally_from_matrix(x)

Arguments

x

matrix to convert. It must be square, have zero diagonal, non-negative values and identical column and row names or lack of both ("1".."n" is gonna be inferred in this case).

Value

toporanga_tally object.

Note

If in doubt, use tally_log instead of this function.


toporanga documentation built on Aug. 8, 2025, 6:15 p.m.