savediscrimination: savediscrimination

Description Usage Arguments Value

View source: R/makefood.R

Description

function to simulate isotope discrimination data in the format needed by MixSIAR. Defaults to no discrimination factors.

Usage

1
2
3
4
5
6
7
8
savediscrimination(
  food,
  filename = NULL,
  discr_carb = c(0, 0, 0),
  discr_nit = c(0, 0, 0),
  writefile = T,
  returnobject = F
)

Arguments

food

list object of simulated food sources

filename

name of file to save

discr_carb

vector of carbon discrimination values, one per diet source. Default is no discrimintation

discr_nit

vector of nitrogen discrimination values, one per diet source. Default is no discrimintation

writefile

boolean, whether to write the csv to file needed by MixSIAR default is TRUE

returnobject

boolean, whether to return an object within the current environment, default is FALSE

Value

either writes a MixSIAR formatted csv to file or a dataframe object


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