fill_block_matrix: Fill a block matrix

View source: R/fill_block_matrix.R

fill_block_matrixR Documentation

Fill a block matrix

Description

fill the elements of an empty block matrix (build_block_matrix) given a series of intra- and interguild matrices

Usage

fill_block_matrix(
  block.matrix,
  pp.matrix = NA,
  ph.matrix = NA,
  pfv.matrix = NA,
  fv.overlap.matrix = NA,
  h.overlap.matrix = NA,
  switch.herb.sign = TRUE
)

Arguments

block.matrix

empty block matrix

pp.matrix

plant-plant neighbours

ph.matrix

plant-herbivore matrix

pfv.matrix

plant-floral visitor matrix

fv.overlap.matrix

floral visitor intraguild matrix

h.overlap.matrix

herbivore intraguild matrix

switch.herb.sign

if TRUE, plants have different signs over herbivores than herbivores over plants

Value

a filled block matrix of the same dimensions as block.matrix


RadicalCommEcol/MultitrophicFun documentation built on Oct. 13, 2023, 1:27 a.m.