samplesources: samplesources

Description Usage Arguments Value

View source: R/makefood.R

Description

Function to simulate sample-based estimate of prey source isotopic values for subsequent mixture decomposition.

Usage

1
2
3
4
5
6
7
samplesources(
  num_samples,
  food,
  filename = NULL,
  writefile = T,
  returnobject = F
)

Arguments

num_samples

Integer, the number of samples to colect from each prey source

food

list object of simulated food sources.

filename

name of file to save. Passed to 'savesources'.

writefile

boolean, whether to write the csv to file needed by MixSIAR default is TRUE. Passed to 'savesources'.

returnobject

boolean, whether to return an object within the current environment, default is FALSE. Passed to 'savesources'.

Value

Writes a .csv to file containing the sample-based estimates for prey source isotop distribution in 'MixSIAR' format.


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