Removing the specified metabolites from the attribute removed
unremove_metabolites.Rd
unremove_metabolites()
flags the specified metabolites as not removed.
Arguments
- dat
a
raw_data
object. Output ofread_data()
function.- metabolites
a character string or vector specifing the names of metabolites to unremove.
Examples
path <- get_example_data("small_biocrates_example.xls")
test_dat <- read_data(path)
test_dat <- remove_metabolites(test_dat, c("C0", "C1", "C2"), "LOD")
test_dat <- remove_metabolites(test_dat, "C0", "QC")
attr(test_dat, "removed")
#> $LOD
#> [1] "C0" "C1" "C2"
#>
#> $QC
#> [1] "C0"
#>
#> $QC_man
#> NULL
#>
attr(unremove_metabolites(test_dat, c("C0", "C1")), "removed")
#> $LOD
#> [1] "C2"
#>
#> $QC
#> NULL
#>
#> $QC_man
#> NULL
#>