WrdTable {DescTools} | R Documentation |
Insert a Table in a Word Document
Description
Create a table with a specified number of rows and columns in a Word document at the current position of the cursor.
Usage
WrdTable(nrow = 1, ncol = 1, heights = NULL, widths = NULL, main = NULL,
wrd = DescToolsOptions("lastWord"))
Arguments
nrow |
number of rows. |
ncol |
number of columns. |
heights |
a vector of the row heights (in [cm]). If set to |
widths |
a vector of the column widths (in [cm]). If set to |
main |
a caption for the plot. This will be inserted by InserCaption in Word. Default is NULL, which will insert nothing. |
wrd |
the pointer to a word instance. Can be a new one, created by |
Value
A pointer to the inserted table.
Author(s)
Andri Signorell <andri@signorell.net>
See Also
Examples
## Not run: # Windows-specific example
wrd <- GetNewWrd()
WrdTable(nrow=3, ncol=3, wrd=wrd)
## End(Not run)