sample_immigrant_from_mainland: Sample a number of individuals from a mainland community

View source: R/sample_immigrant_from_mainland.R

sample_immigrant_from_mainlandR Documentation

Sample a number of individuals from a mainland community

Description

Individuals trait values are sampled in a normal distribution using the parameters associated to the corresponding mainland species.

Usage

sample_immigrant_from_mainland(mainland_comm, n = 1)

Arguments

mainland_comm

a tibble defining what species exist in the mainland and their trait distribution. One row per species, three columns:

  • species, (character) the name of the species

  • mean_z, (numeric) mean value of the trait for that species

  • z_sd, (numeric) standard deviation of the trait for that species

n

integer, number of individuals to sample


TheoPannetier/comsie documentation built on Nov. 21, 2022, 4:35 p.m.