assemble_jacobian: Construct a community matrix

View source: R/Get_Jacobians_Functions.R

assemble_jacobianR Documentation

Construct a community matrix

Description

Turns interaction strengths from the tabular format (output of interaction_strengths()) into a community matrix.

Usage

assemble_jacobian(interaction_table, species_list, ij_col, ji_col)

Arguments

interaction_table

dataframe created by the interaction strengths function

species_list

list of species names in the community, can be taken from the abundance table

ij_col

name of the column that contains effects of species i on species j

ji_col

name of the column that contains effects of species j on species j

Details

To do this, species names from the abundance table is used to name the rows and columns of the matrix. The corresponding interaction strengths are then picked from the dataframe, based on the species name.

Value

A community matrix


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