Learn R Programming

ramify (version 0.2.0)

print.mat: Print Matrices, New-Style

Description

A new method for printing matrices.

Usage

## S3 method for class 'mat':
print(x, pretty.print = getOption("mat.pretty.print"),
  dot.row = getOption("mat.dot.row"), dot.col = getOption("mat.dot.col"),
  digits, ...)

Arguments

x
A matrix.
pretty.print
Logical indicating whether to print a "prettier" version of the matrix.
dot.row
Integer indicating which row to replace with ....
dot.col
Integer indicating which column to replace with ....
digits
Minimal number of significant digits.
...
Additional optional arguments passed onto prmatrix.

Examples

Run this code
m <- randn(100, 100)
m
print(m, dot.row = 5, dot.col = 5, digits = 2)

Run the code above in your browser using DataLab