simulate_ind_mass: Simulate masses for individuals

Description Usage Arguments Value

View source: R/simulate_community_data.R

Description

Randomly generate masses for individuals given species assignments & mean masses for each species. Assumes a normal distribution with SD = 0.1 * mass.

Usage

1
simulate_ind_mass(individual_species, community_masses)

Arguments

individual_species

Vector of species identities for each individual

community_masses

Vector of mean body size for each species

Value

vector of masses for N individuals, drawn according to the species' mean mass and the species assignments.


diazrenata/revisitbecs documentation built on May 21, 2019, 6:48 a.m.