randomized_sequence_from_matrix: convert interaction matrix to sequence

View source: R/randomized_sequence_from_matrix.R

randomized_sequence_from_matrixR Documentation

convert interaction matrix to sequence

Description

convert interaction matrix to sequence

Usage

randomized_sequence_from_matrix(mat, n_rand = 1)

Arguments

mat

square matrix

n_rand

number of randomized sequences to produce (default is 1)

Value

a list with a matrix of winner ids and a matrix with loser ids

Examples

data(bonobos, package = "EloRating")
bonobos[1:4, 1:4]
randomized_sequence_from_matrix(bonobos[1:4, 1:4])

gobbios/EloSteepness.data documentation built on Oct. 18, 2022, 11:19 p.m.