A model is defined by the total number of species (nb_s), the number of basal species (nb_b), the number of nutrients (nb_n), the body masses (BM) of species, and the adjacency matrix (fw) representing species interactions. Nutrients are not counted as species.
Examples
library(ATNr)set.seed(123)n_species <-50n_basal <-20n_nutrients <-2masses <- sort(10^runif(n_species,2,6))#body mass of speciesL <- create_Lmatrix(masses, n_basal)fw <- L
fw[fw >0]<-1mod <- create_model_Unscaled_nuts(n_species, n_basal, n_nutrients, masses, fw)