saveTable: Save a table.

Description Usage Arguments Details Value Examples

View source: R/saveTable.R

Description

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

Usage

1
saveTable(x, file, HTML = FALSE, post.editing = TRUE)

Arguments

x

data.frame as generated by the different xTable functions in this package (for example by the mokkenTable function).

file

string; filename the table should be saved as.

HTML

logical value that toggles whether the file format should be HTML.

post.editing

logical value that toggles whether the tables should be post-edited. If true, hard-coded changes to the final table are made. See the details section for further informations.

Details

If post-editing is set to true then the code, which is generated by the RTF package, is changed a posteriori.

Value

None

Examples

1
2
3
4
5
data(mydata)
test <- demographicTable(mydata$sex, mydata$age_group7, percent=FALSE)
test

#saveTable(test, "test.rtf")

psytabs documentation built on May 29, 2017, 10:52 p.m.