Skip to contents

remove_metabolites() remove the specified metabolites from data by adding them to the attribute removed.

Usage

remove_metabolites(dat, metabolites_to_remove, type)

Arguments

dat

a raw_data object. Output of read_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 or QC_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
#>