printXTable: Print data fram (table) as Latex format to either file or...

Description Usage Arguments Examples

Description

Print data fram (table) as Latex format to either file or console, which is extened from xtable.

Usage

1
2
3
printXTable(df, file = NULL, caption = "The table of",
  label = "tab:label", invalid.char = TRUE, include.rownames = TRUE,
  caption.placement = "top", ...)

Arguments

df

A data frame.

file

If NULL, then print the results to console, otherwise print them to the file. Default to NULL.

caption

Latex table caption.

label

Latex table label.

invalid.char

If it is TRUE, then add \ to all _ or % for Latex. Default to TRUE.

include.rownames, caption.placement

Refer to print.xtable.

...

Other arguments passed to xtable.

Examples

1
2
3
tableFile <- file.path(workingPath, "report.tex")
printXTable(data.frame, caption = "Phylogenetic beta diversity", 
            label = "tab:pd:beta", file=tableFile)

walterxie/ComMA documentation built on May 3, 2019, 11:51 p.m.