Learn R Programming

DescTools (version 0.99.19)

WrdTableBorders: Draw Borders to a Word Table

Description

Drawing borders in a Word table is quite tedious. This function allows to select any range and draw border lines around it.

Usage

WrdTableBorders(wtab, from = NULL, to = NULL, border = wdConst$wdBorderBottom, lty = wdConst$wdLineStyleSingle, wrd)

Arguments

wtab
a pointer to a Word table as returned by WrdTable or TOne.

from
integer, a vector with two elements specifying the left upper bound of the cellrange.

to
integer, a vector with two elements specifying the right bottom of the cellrange.

border
a Word constant (wdConst$wdBorder...) defining the side of the border.

lty
a Word constant (wdConst$wdLineStyle...) defining the line type.

wrd
a pointer to the current Word instance.

Value

See Also

WrdTable

Examples

Run this code
## Not run: 
# 
# # create table
# tab <- table(op=d.pizza$operator, area=d.pizza$area)
# 
# # send it to Word
# wrd <- GetNewWrd()
# wtab <- ToWrd(tab, wrd=wrd, tablestyle = NA)
# 
# # draw borders
# WrdTableBorders(wtab, from=c(2,2), to=c(3,3), border=wdConst$wdBorderBottom, wrd=wrd)
# WrdTableBorders(wtab, from=c(2,2), to=c(3,3), border=wdConst$wdBorderDiagonalUp, wrd=wrd)
# ## End(Not run)

Run the code above in your browser using DataLab