Add metabolites to the attribute removed
remove_metabolites.Rd
remove_metabolites()
remove the specified metabolites from data by adding
them to the attribute removed
.
Arguments
- dat
a
raw_data
object. Output ofread_data()
function.- metabolites_to_remove
a character string or vector specifying the names of metabolites to remove.
- type
a character string specifying the criterion used to evaluate whether a metabolite should be removed. Can be one of
LOD
,QC
orQC_man
.
Examples
path <- get_example_data("small_biocrates_example.xls")
test_dat <- read_data(path)
attr(remove_metabolites(test_dat, "C0", "LOD"), "removed")
#> $LOD
#> [1] "C0"
#>
#> $QC
#> NULL
#>
#> $QC_man
#> NULL
#>