WrdTable.Rd
Create a table with a specified number of rows and columns in a Word document at the current position of the cursor.
WrdTable(nrow = 1, ncol = 1, heights = NULL, widths = NULL, main = NULL,
wrd = DescToolsOptions("lastWord"))
number of rows.
number of columns.
a vector of the row heights (in [cm]). If set to NULL
(which is the default) the Word defaults will be used. The values will be recyled, if necessary.
a vector of the column widths (in [cm]). If set to NULL
(which is the default) the Word defaults will be used. The values will be recyled, if necessary.
a caption for the plot. This will be inserted by InserCaption in Word. Default is NULL, which will insert nothing.
the pointer to a word instance. Can be a new one, created by GetNewWrd()
or an existing one, created by GetCurrWrd()
.
Default is the last created pointer stored in DescToolsOptions("lastWord")
.
A pointer to the inserted table.
if (FALSE) # Windows-specific example
wrd <- GetNewWrd()
WrdTable(nrow=3, ncol=3, wrd=wrd)
#> Error: object 'wrd' not found
# \dontrun{}