Skip to contents

table_rtf generates an RTF table from a data frame.

Usage

table_rtf(
  df,
  outFile = NULL,
  rtfFile = TRUE,
  boldHeader = TRUE,
  rowNames = FALSE,
  ...
)

Arguments

df

A data frame.

outFile

A filename for writing the table to. If NULL, writes to console.

rtfFile

If TRUE (the default), then add RTF tabs to generate a fully formatted RTF file.

boldHeader

If TRUE, make the header bold.

rowNames

If TRUE, include row names in the table. Default is FALSE.

...

Other formatting options for the table body.

Value

An RTF table based on the data frame provided.

Author

John Johnson, johndjohnson@gmail.com

Examples

if (FALSE) { # \dontrun{
scm <- read_scm("E:/DrugX/ModelDevelopment/scm310")
myRTF <- table_rtf(scm$forwardSummary)
} # }