compute_links: Compute species links

Description Usage Arguments Value

View source: R/metaweb_build.R

Description

Compute feeding links between species based on their size

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
compute_links(
  size_class,
  th_prey_size,
  piscivory_index,
  fish_diet_shift,
  resource_diet_shift,
  species,
  fish,
  low_bound,
  upper_bound,
  fish_resource_method = "overlap",
  pred_win_method = "midpoint"
)

Arguments

size_class

a data.frame generated by compute_classes

th_prey_size

data.frame generated by compute_prey_size

piscivory_index

data.frame generated by compute_piscivory

fish_diet_shift

a data.frame containing species, life stage, lower and upper bound size for each stage

resource_diet_shift

data.frame generated by compute_prey_size

species

variable name

fish

name of logical piscivory variable. 0 = no piscivory; 1 = piscivory

low_bound

variable containing lower limit of the stage

upper_bound

variable containing upper limit of the stage. Not used.

Value

list containing the species-species and the species-resource interaction matrix


alaindanet/SizeTrophicInteractions documentation built on Dec. 18, 2021, 11:32 p.m.