inst/unitTests/test_normalizeByBiomass.R

######## Test normalizeByBiomass ###########
test_normalizeByBiomass <- function (){
	data(exampleMetReport)
	data(exampleBiomass)
    results <- normalizeByBiomass(exampleMetReport, biomass = exampleBiomass, save = FALSE)
   	checkEqualsNumeric(as.numeric(results[2,2]), as.numeric(exampleMetReport[2,2])/0.5)
}

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.