Learn R Programming

psytabs (version 0.1)

saveTable: Save a table.

Description

Saves a table either in rtf-format (recommended) or in HTML-format.

Usage

saveTable(x, file, HTML = FALSE)

Arguments

x
A table as generated for example by the mokkenTable function.
file
The filename the table should be saved as.
HTML
Whether the file format should be HTML.

Value

  • None

Examples

Run this code
data(myData)
test <- demographicTable(myData$sex, myData$age_group7, percent=FALSE)
test

#saveTable(test, "test.rtf")

Run the code above in your browser using DataLab