print.table
Print a table Object
Description
This is an S3 method for the function print for objects inheriting from class table.
Usage
## S3 method for class 'table':
print(x, digits = getOption("digits"), quote = FALSE,
na.print = "", zero.print = "0", justify = "none", ...)
Arguments
x |
Preferably, an object inheriting from class table.
If you supply a vector, matrix, or array object you must
call this under the name print.table instead of
just print.
|
digits |
A small positive integer giving the maximum number of
digits after the decimal point that should be printed
when x is numeric.
The default is the value of getOption("digits").
|
quote |
logical flag: if TRUE, character strings are printed with surrounding
quotes.
|
na.print |
character string to print for NA values in x.
|
zero.print |
character string to print for zero values in x.
|
justify |
a character string giving the justification of character strings relative to
each other. The choices are "none", "left", "right" and "centre".
Only the first letter needs to be given. This argument is passed
to format function.
|
... |
other optional arguments passed to print.default function.
|
Details
This is a method for the function print() for objects inheriting from class table.
See print or print.default for the general behavior of this function
and for the interpretation of x, quote.
Value
Invisibly returns x itself.
See Also
Examples
print(with(Sdatasets::fuel.frame,
table(Displacement=Disp., Type=Type)), zero.print="-")