.BG
.VE $Header: /usr3/s/current/s/.help/RCS/tbl,v 1.2 83/12/30 19:35:39 rab Exp $
.FN tbl
.TL
tbl: Print a Table Using the UNIX tbl Command
.CS
tbl(x, file, head, rowlab, collab, options)
.PP
.AG x
matrix to be printed as a table.  May be any mode and may
contain NA's.
.AG file
name of the file on which the `tbl' output will be printed.
Default is "tbl.out".
.AG head
optional character string to appear as the heading of the
table.
.AG rowlab
optional character vector to be used as labels for the rows
of the table.
.AG collab
optional character vector to be used as labels for the
columns of the table.
.AG options
optional vector of options to the `tbl' preprocessor.
Default is "center,box;".
.PP
The output file must be used with the tbl preprocessor
to the UNIX nroff/troff commands.
The `tbl' function in S is
currently dumb about things like long lines or long fields.
Either edit the output file or (better) break the matrix up into reasonable
subsets of columns.
.EX
tbl(x) #simple table

tbl(x>0, r=encode("Row",seq(10)), head="Is x positive?")

# table of numeric (x,y) and character data (name, position)
tbl(cbind( encode(x),name,encode(y),position ))
.KW basic*
.KW reports
.KW category
.WR
