wdTable {R2wd}R Documentation

Write a dataframe or an array as a Word table.

Description

Make a Word table to the adequate dimensions, fill it, format it, and add a bookmark (and a caption - doesn't work yet).

Usage

wdTable(data, caption = "", bookmark = NULL, pointsize = 9,
padding = 5, wdapp = .R2wd)

Arguments

data a data frame or an array
caption the caption to use in Word (doesn't work yet)
bookmark the bookmark to use in Word
pointsize the pointsize in Word
padding how much cell-padding (in points)
wdapp the handle to the Word Application (usually not needed).

Details

Creates a Word table to the adequate dimensions and inserts it between two paragraph breaks. Fills it with dataframe or array. Creates a bookmark and adds a caption (doesn't work yet). Uses default word formating (this should be made more flexible).

Author(s)

Christian Ritter

Examples

## Not run: 
wdGet()
wdTitle("The example mtcars")
wdTable(format(mtcars))
## End(Not run)

[Package R2wd version 1.1 Index]