table_rtf: Read NONMEM output into a list.

View source: R/table_rtf.R

table_rtfR Documentation

Read NONMEM output into a list.

Description

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(s)

John Johnson, johndjohnson@gmail.com

References

https://www.r-bloggers.com/2008/10/another-solution-to-the-r-to-word-table-problem/

Examples

## Not run: 
scm <- read_scm("E:/DrugX/ModelDevelopment/scm310")
myRTF <- table_rtf(scm$forwardSummary)

## End(Not run)


pmxTools documentation built on March 7, 2023, 7:58 p.m.