inst/unitTests/test_normalizeByInternalStandard.R

######## Test normalizeByInternalStandard ###########
test_normalizeByInternalStandard <- function (){
    data(exampleMetReport)
    results <- normalizeByInternalStandard(exampleMetReport, internalStandard = "1-butanol", save = FALSE)
    checkEqualsNumeric(as.numeric(results[which(results[,1] == "1-butanol"),2]), 1)
}

Try the Metab package in your browser

Any scripts or data that you put into this service are public.

Metab documentation built on Nov. 8, 2020, 5:36 p.m.