DescTools (version 0.99.8.1)

WrdInsTab: 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

WrdInsTab(nrow = 1, ncol = 1, heights = NULL, widths = NULL, wrd = getOption("lastWord"))

Arguments

nrow
number of rows.
ncol
number of columns.
heights
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.
widths
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.
wrd
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 getOption("lastWord").

Value

  • A pointer to the inserted table.

See Also

GetNewWrd, WrdText

Examples

Run this code
# Windows-specific example
wrd <- GetNewWrd()
WrdInsTab(nrow=3, ncol=3, wrd=wrd)

Run the code above in your browser using DataLab