Usage
formatSpMatrix(x, digits = NULL, maxp = 1e9,
cld = getClassDef(class(x)), zero.print = ".",
col.names, note.dropping.colnames = TRUE, uniDiag = TRUE,
align = c("fancy", "right"))printSpMatrix(x, digits = NULL, maxp = getOption("max.print"),
cld = getClassDef(class(x)),
zero.print = ".", col.names, note.dropping.colnames = TRUE,
uniDiag = TRUE, col.trailer = "",
align = c("fancy", "right"))
printSpMatrix2(x, digits = NULL, maxp = getOption("max.print"),
zero.print = ".", col.names, note.dropping.colnames = TRUE,
uniDiag = TRUE, suppRows = NULL, suppCols = NULL,
col.trailer = if(suppCols) "......" else "",
align = c("fancy", "right"),
width = getOption("width"), fitWidth = TRUE)
Arguments
x
an Robject inheriting from class sparseMatrix
.
maxp
integer, default from options(max.print)
,
influences how many entries of large matrices are printed at all. cld
the class definition of x
; must be equivalent to
getClassDef(class(x))
and exists mainly for possible
speedup. zero.print
character which should be printed for
structural zeroes. The default "."
may occasionally
be replaced by " "
(blank); using "0"
would look
almost like print()
ing of non-sparse matri
col.names
logical or string specifying if and how column names of
x
should be printed, possibly abbreviated. The default is
taken from options("sparse.colnames")
if that is set, otherwise
note.dropping.colnames
logical specifying, when
col.names
is FALSE
if the dropping of the column names
should be noted, TRUE
by default.
uniDiag
logical indicating if the diagonal entries of a sparse
unit triangular or unit-diagonal matrix should be formatted as
"I"
instead of "1"
(to emphasize that the 1's are
structural).
col.trailer
a string to be appended to the right of each
column; this is typically made use of by show()
only, when suppressing columns. suppRows, suppCols
logicals or NULL
, for
printSpMatrix2()
specifying if rows or columns should be
suppressed in printing. If NULL
, sensible defaults are
determined from dim(x)
a align
a string specifying how the zero.print
codes
should be aligned, i.e., padded as strings. The default,
"fancy"
, takes some effort to align the typical
zero.print = "."
with the position of 0
,
width
number, a positive integer, indicating the approximately
desired (line) width of the output, see also fitWidth
.
fitWidth
logical indicating if some effort should be made to
match the desired width
or temporarily enlarge that if deemed
necessary.