gen_rounded_abundances | R Documentation |
Function to generate a sampled lognormal distribution whose values are rounded to produce a vector of counts of the number of PUs that each species will occupy.
gen_rounded_abundances( tot_num_spp_after_wrapping, meanlog, sdlog, add_one_to_abundances, plot_rounded_abundances = FALSE )
tot_num_spp_after_wrapping |
integer |
meanlog |
numeric |
sdlog |
numeric |
add_one_to_abundances |
boolean |
plot_rounded_abundances |
boolean |
No zero counts are allowed, so any species that was assigned a 0 count in the lognormal generation is removed from the returned vector. This means that the number of species returned may be less than the value of tot_num_spp_after_wrapping specified in the inputs.
Returns a vector with one count for each species
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.