get_comp_coeff_comm: Get the competition coefficients between an individual and...

View source: R/get_comp_coeff_comm.R

get_comp_coeff_commR Documentation

Get the competition coefficients between an individual and the rest of the community

Description

Returns the competition coefficients experienced by a focal individual from each individual in the community, including the focal individual on itself.

Usage

get_comp_coeff_comm(
  trait_ind,
  traits_comm,
  competition_sd = default_competition_sd()
)

Arguments

trait_ind

numeric. Trait value z of a focal individual.

traits_comm

numeric vector of variable length, the trait values of every individual in the community.

competition_sd

numeric ⁠>= 0⁠.Parameter \sigma_{\alpha} of the competition coefficient. Modulates the the strength of competition between two individuals given their distance in trait space.

Value

a numeric vector containing the competitive effect caused by each individual in the community on the focal individual. Each effect varies between 0 (no effect at all) and 1 (the two individuals have the same trait value).

Author(s)

Theo Pannetier


TheoPannetier/comrad documentation built on April 8, 2023, 8:06 a.m.