Last data update: 2014.03.03

R: Exports tables to Word files.
export2wordR Documentation

Exports tables to Word files.

Description

This function creates automatically a Word file with the table.

Usage

export2word(x, file, which.table="descr", nmax = TRUE, header.labels = c(), ...)

Arguments

x

an object of class 'createTable' or that inherits it.

file

character specifying the word file (.doc or .docx) resulting after compiling the Markdown code corresponding to the table specified in the 'x' argument.

which.table

see export2md

nmax

see print.createTable

header.labels

see print.createTable

...

currently ignored

Note

Word file is created after compiling Markdown code created by export2md. To compile it it calls render function which requires pandoc to be installed.

See Also

createTable, export2latex, export2pdf, export2csv, export2html, export2md

Examples


## Not run: 

require(compareGroups)
data(regicor)

 # example on an ordinary table
res <- createTable(compareGroups(year ~ . -id, regicor), hide = c(sex=1), hide.no = 'no')
export2word(res, file = "table.docx")


## End(Not run)

Results