randomize_all: Full randomisation of an interaction table

View source: R/Randomization_functions.R

randomize_allR Documentation

Full randomisation of an interaction table

Description

During the full randomisation procedure, ALL interspecific interaction strengths are randomly reshuffled within the network. Intraspecific interactions, the diagonal matrix elements are not affects and network topology is preserved (zeros remain in place).

Usage

randomize_all(df, ij_col, ji_col)

Arguments

df

interaction table (created by interaction_strenghts())

ij_col

column of a_{ij} values to randomise (choose scaled or unscaled)

ji_col

column of a_{ji} values to randomise (scaled or unscaled)

Details

The function returns a new interaction table that contains two new columns $a_ij_rand and $a_ji_rand that contains the same values as the original columns but in a different order.

To get a fully randomised Jacobian matrix, use assemble_jacobian() and specify the new columns.

Value

interaction table with two additional columns $a_ij_rand and $a_ji_rand that contain the interaction strengths in a randomised order


franzikoch/Feedbackloops documentation built on July 1, 2023, 12:42 p.m.