All functions

alphaterm()

Function definition for deterministic model run with global dispersal Compute alpha term in Beverton-Holt function

bevHoltFct()

Beverton-Holt function

check_trait_weights()

Check trait weights data.frame

compute_compet_distance()

Compute trait distance between species

compute_hierarchical_compet()

Compute Hierarchical Competition coefficient at each time step

create_trait_weights()

Generates a data.frame of trait weights

env_curve()

Species growth rate for a given trait and environment

extract_growth_rates()

Extract different growth rates from fdcoexist simulation

extract_mismatches()

Extract species mismatches

generate_cor_traits()

Generate correlated traits

generate_cor_traits_rand()

Generate random traits Compared to generate_cor_traits() introduce a little of variability in first trait as instead of being directly determined by the species number it adds little white noise to it and scale it to a minimum of 0 if negative and maximum of 25 if maximum value is over 25.

mismatch()

Plot mismatch per species between environmental optimum and max. abundance

multigen()

Function to run the simulation

plot_patch()

Plot patch dynamics

plot_rh()

Plot hierarchical growth of species in all the patches

r_env()

Plot environmental response curves of species in all the patches

r_env_CT()

Extract Species by Patch Growth Rates and Optimal Patches

scale_distance()

Scale distance or matrix between 0 and 1

sp_ab_gr()

Plot environmental response curves of species in all the patches

wtd_kurtosis()

Weighted Kurtosis with na.rm

wtd_mean()

Weighted mean that allows NA in values and weights

wtd_skewness()

Weighted Skewness with na.rm

wtd_var()

Weighted Variance