Description Usage Arguments Value
View source: R/simulate_community_data.R
Randomly generate masses for individuals given species assignments & mean masses for each species. Assumes a normal distribution with SD = 0.1 * mass.
1 | simulate_ind_mass(individual_species, community_masses)
|
individual_species |
Vector of species identities for each individual |
community_masses |
Vector of mean body size for each species |
vector of masses for N individuals, drawn according to the species' mean mass and the species assignments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.