load_mix_data {MixSIAR}R Documentation

Load mixture data

Description

load_mix_data loads the mixture data file and names the biotracers and any Fixed, Random, or Continuous Effects.

Usage

load_mix_data(
  filename,
  iso_names,
  factors,
  fac_random,
  fac_nested,
  cont_effects
)

Arguments

filename

csv file with the mixture/consumer data

iso_names

vector of isotope column headings in 'filename'

factors

vector of random/fixed effect column headings in 'filename'. NULL if no factors.

fac_random

vector of TRUE/FALSE, TRUE if factor is random effect, FALSE if fixed effect. NULL if no factors.

fac_nested

vector of TRUE/FALSE, TRUE if factor is nested within the other. Only applies if 2 factors. NULL otherwise.

cont_effects

vector of continuous effect column headings in 'filename'

Value

mix, a list including:

If no biotracer/isotope columns are specified, a WARNING prompts the user to select 2, 1, or 0.

If more than 2 Fixed/Random Effects are selected, a WARNING prompts the user to select 2, 1, or 0.

If more than 1 Continuous Effect is selected, a WARNING prompts the user to select 1 or 0.


[Package MixSIAR version 3.1.12 Index]