samplesourcesvector: samplesourcesvector

Description Usage Arguments Value

View source: R/makefood.R

Description

Function to simulate sampling of potential diet source populations across a set of values for the size of the sample. Largely a convenience function to run 'samplesources' across multiple values of sample size.

Usage

1
2
3
4
5
6
7
8
samplesourcesvector(
  n_vec,
  food,
  filepath = NULL,
  writefile = T,
  returnobject = F,
  ...
)

Arguments

n_vec

numeric, vector of sample sizes for sampling from diet sources.

food

list object of simulated food sources.

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'

filename

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

Value

Saves diest source sampled isotope distributions to files of format used by 'MixSIAR'


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