xsummary {canprot}R Documentation

Summarize Compositional Differences

Description

Make an HTML table summarizing compositional differences.

Usage

  xsummary(comptab)

Arguments

comptab

list or data frame, summary of comparisons generated by ZC_nH2O

Details

This function makes an HTML table (using xtable) and adds bold and underline formatting to highlight significant compositional differences. The generated table is written to the console, and can be used in a vignette using the results = "asis" chunk option.

Examples

data(canprot)
comptab <- lapply(c("JKMF10", "WDO+15_C.N"), function(dataset) {
  pdat <- get_pdat(dataset)
  ZC_nH2O(pdat, plot.it=FALSE)
})
xsummary(comptab)

[Package canprot version 0.0.2 Index]