rtfTableInit

DESCRIPTION:

Returns a list of vectors, strings, and numbers used to initialize and build tables.

USAGE:

rtfTableInit(numCols, colwidth = rep(850, numCols), fontsize = 10, trgaph = 120,
                trleft = 600, linesize = 131, pagesize = 60)

ARGUMENTS:

numCols
Number of columns in the table (no default)
colwidth
Vector of column widths in twips (1inch=1440Twips), one value for each column (default=rep(850, numCols)
fontsize
Font point size for table (default=10)
trgaph
half the space between the cells of a table row in twips (default=120)
trleft
Position in twips of the leftmost edge of the table with respect to the left edge of its column (default=600)
linesize
Linesize in number of columns (default=131)
pagesize
Page size in number of lines (default=60)

VALUE:

A list with the following values: numCols, fontsize, trgaph, trleft, linesize, pagesize, cellx - cumulative sum of column widths, cellwidth - column widths.

AUTHOR(S):

TIBCO Software Inc.

SEE ALSO:

EXAMPLES:

# create sample data.frame
mydf <- data.frame(myCol1=format(rnorm(20), digits=3, justify="n"), 
                        myCol2=format(rnorm(20), digits=3, justify="n"), 
                        myCol3=format(rnorm(20), digits=3, justify="n"), 
                        myCol4=format(rnorm(20), digits=3, justify="n"), stringsAsFactors=F)

tableInit <- rtfTableInit(ncol(mydf), colwidth=rep(1000, ncol(mydf)), fontsize=10)