Skip to contents

Spatiotemporal average of maximum trophic positions using sglv output

Usage

foodchain(
  n,
  n_species,
  n_patch,
  alpha,
  start = ceiling(max(n[, 1]) - max(n[, 1]) * 0.5) + 1,
  end = floor(max(n[, 1])),
  full = FALSE
)

Arguments

n

Numeric. Matrix output from sglv

n_species

Integer. Number of species

n_patch

Integer. Number of habitat patches

alpha

Numeric. Interaction matrix

start

Integer. Initial time step to be included in the calculation. floor applied internally

end

Integer. Last time step to be included in the calculation. floor applied internally

full

Logical. If TRUE, a full spatiotemporal matrix of food chain length returned as attributes.

Author

Akira Terui, hanabi0111@gmail.com