loops: Calculate the strengths and weights of all loops of length...

View source: R/Loops_functions_new.R

loopsR Documentation

Calculate the strengths and weights of all loops of length n within the matrix A

Description

To do this, I simply assume that all possible loops of length n (all possible combinations of n-species) exist. Then, the function goes through all possible loops and calculates their strengths using loop_weights().

Usage

loops(n, A)

Arguments

n

loop length

A

a Jacobian matrix in which all loops of length should be identified

Details

If the loop weight is 0, at least one of the links is missing and the loop is removed from the list.

Value

A dataframe containing the loops, their strengths and weights


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