multigen.Rd
Using specified parameters this function run the simulation
multigen(
traits,
trait_weights,
env,
time,
species,
patches,
composition,
A = A,
B = B,
d,
k,
width,
H,
h_fun = "+",
di_thresh = 24,
lim_sim_exponent = 2,
hierar_exponent = 0.5
)
a species-traits data.frame with species as rownames and
traits as numeric columns with names matching
trait_weights
column trait
data.frame with at least three columns equal to trait
(giving the name of the concerned traits in traits
df), growth_weight
the relative weight of the trait in
growth and compet_weight
the relative weight of the
trait in competition.
a vector of environmental values
an integer giving the total number of generations
an integer giving the total number of species to simulate
an integer giving the total number of patches to simulate
the actual array containing species abundances per site over time, giving the initial populations of each species
the scalar of inter-specific competition coefficient
(see bevHoltFct()
)
the scalar for intra-specific competition coefficient by default B = A
a numeric value between 0 and 1 giving the percentage of dispersal occurring across all patches
a scalar giving the maximum growth rate in optimal environment
a numeric giving niche breadth of all species
a numeric for hierarchical competition such as H/k <= 1
a function that describes how hierarchical is combined to
environmental-based growth (default: sum()
)
dissimilary threshold above which species are considered maximally dissimilar
exponent to use for limiting similarity distances
exponent to use for hierarchical compet. distances