makefood: makefood

Description Usage Arguments Value

View source: R/makefood.R

Description

Simulates the 13C isotope values for an arbitray number of potential diet endpoints. Each endpoint population is simulated as a normally distributed variable

Usage

1
makefood(num_sources, popsize, mu_carb, sd_carb, mu_nit, sd_nit)

Arguments

num_sources

integer, number of potential food sources to simulate

popsize

vector whose length = 'num_sources', each entry of which is the size of the diet source population to simulate

mu_carb

vector whose length = 'num_sources', each entry of which is the mean 13C value of the diet source population to simulate

sd_carb

vector whose length = 'num_sources', each entry of which is the standard deviation of the 13C of the diet source population to simulate #' @param mu_nit vector whose length = 'num_sources', each entry of which is the mean 15N value of the diet source population to simulate

sd_nit

vector whose length = 'num_sources', each entry of which is the standard deviation of the 15N of the diet source population to simulate

Value

A list, each element of which is a vector of isotope vales for each simulated diet endpoint individual


syanco/checkyourself documentation built on Jan. 18, 2021, 4:50 a.m.