Combines index values, QA/QC flags, and sample metadata into a clean
data.frame for further processing. Any values flagged as "MDL01"
(below detection limit) are removed and not reported.
Arguments
- x
An
eemlistorabslistobject.- index
A character string giving the name of the index.
- value
Index values. Use
get_fluorescence()orget_absorbance()to generate these values.- flag
Flag values, the same length as
value.
Value
A data frame with four columns:
sample_id: sample identifier for the sample (if provided, otherwise uses sample: the sample's file name)
sample_name: sample name or description (if provided, otherwise uses sample: the sample's file name)
index: the name of the index
value: the index value (with
MDL01values removed)
Examples
ex <- 240:260
em <- 300:320
vals <- get_fluorescence(example_eems, ex, em, stat = "max")
flags <- flag_missing(example_eems, ex = ex, em = em, all = FALSE)
index_formatted <- format_index(
x = example_eems,
index = "test_index",
value = vals,
flag = flags
)
