R Documentation |
print
methodsprint
methods
## S3 method for class 'ten' print( x, ..., maxRow = getOption("datatable.print.nrows", 50L), nRowP = getOption("datatable.print.topn", 5L), pRowNames = TRUE, maxCol = getOption("survMisc.maxCol", 8L), nColSP = getOption("survMisc.nColSP", 7L), sigDig = getOption("survMisc.sigDig", 2L) ) ## S3 method for class 'COV' print(x, ..., n = 2L) ## S3 method for class 'lrt' print(x, ..., dist = c("n", "c")) ## S3 method for class 'sup' print(x, ...) ## S3 method for class 'tableAndPlot' print(x, ..., hideTabLeg = TRUE, tabHeight = 0.25) ## S3 method for class 'stratTableAndPlot' print(x, ..., hideTabLeg = TRUE, tabHeight = 0.25)
x |
An object of class |
... |
Additional arguments (not implemented).
|
maxRow |
Maximum number of rows to print.
|
nRowP |
Number of rows to print from
the start and end of the object. Used if |
pRowNames |
Print row names?
|
maxCol |
Maximum number of columns to print.
|
nColSP |
Number of columns to print from
the start of the object. Used if Used if |
sigDig |
Significant digits. This is passed as an argument to
|
n |
Similar to |
dist |
Which distribution to use for the statistics
when printing.
|
hideTabLeg |
Hide table legend. |
tabHeight |
Table height (relative to whole plot).
|
Prints a ten
object with 'nice' formatting.
Options may be set for a session using e.g.
options(survMisc.nColSP=4L)
It is similar to the behavior of print.data.table
but
has additional arguments controlling the number of columns
sent to the terminal.
A printed representation of the object
is send to the terminal as a side effect of
calling the function.
The return value cannot be assign
ed.
All numeric arguments to the function must be supplied as integers.
Chris Dardis. Based on existing work by Brian Diggs.
For print.ten
:
data.table:::print.data.table
?stats::printCoefmat
options()$datatable.print.nrows
sapply(c("datatable.print.nrows", "datatable.print.topn"), getOption)
set.seed(1) (x <- data.table::data.table(matrix(rnorm(1800), ncol=15, nrow=120))) data.table::setattr(x, "class", c("ten", class(x))) p1 <- print(x) stopifnot(is.null(p1)) x[1:80, ] x[0, ] (data.table::set(x, j=seq.int(ncol(x)), value=NULL))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.