load_mix_data: Load mixture data

Description Usage Arguments Value

View source: R/load_mix_data.R

Description

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

Usage

1
2
3
4
5
6
7
8
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.


brianstock/MixSIAR documentation built on Oct. 23, 2020, 4:48 a.m.