\Header{print.default}{Default Printing}
\alias{print.matrix}{print.default}
\keyword{print}{print.default}
\begin{Description}\relax
\code{print.default} is the \emph{default} method of the generic
\code{\Link{print}} function which prints its argument.
\code{print.matrix} is currently identical, but was not prior to
\code{1.7.0}.
\end{Description}
\begin{Usage}
\begin{verbatim}
## Default S3 method:
print(x, digits = NULL, quote = TRUE, na.print = NULL,
      print.gap = NULL, right = FALSE, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] the object to be printed.
\item[\code{digits}] a non-null value for \code{digits} specifies the minimum
number of significant digits to be printed in values.  If
\code{digits} is \code{NULL}, the value of \code{digits} set by
\code{options} is used.
\item[\code{quote}] logical, indicating whether or not strings
(\code{\Link{character}}s) should be printed with surrounding quotes.
\item[\code{na.print}] a character string which is used to indicate
\code{\Link{NA}} values in printed output, or \code{NULL} (see Details)
\item[\code{print.gap}] an integer, giving the spacing between adjacent columns
in printed matrices and arrays, or \code{NULL} meaning 1.
\item[\code{right}] logical, indicating whether or not strings should be
right-aligned. The default is left-alignment.
\item[\code{...}] further arguments to be passed to or from other
methods. They are ignored in these functions.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Prior to \R{} 1.7.0, \code{print.matrix} did not
print attributes and did not have a \code{digits} argument.

The default for printing \code{NA}s is to print \code{NA} (without
quotes) unless this is a character \code{NA} \emph{and} \code{quote =
    FALSE}, when \code{<NA>} is printed.

The same number of decimal places is used throughout a vector,  This
means that \code{digits} specifies the minimum number of significant
digits to be used, and that at least one entry will be printed with
that minimum number.

As from \R{} 1.7.0 attributes are printed respecting their class(es),
using the values of \code{digits} to \code{print.default}, but using the
default values (for the methods called) of the other arguments.

When the \pkg{methods} package is attached, \code{print} will call
\code{\Link{show}} for methods with formal classes if called
with no optional arguments.
\end{Details}
\begin{SeeAlso}\relax
The generic \code{\Link{print}}, \code{\Link{options}}.
The \code{"\Link{noquote}"} class and print method.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
pi
print(pi, digits = 16)
LETTERS[1:16]
print(LETTERS, quote = FALSE)
\end{ExampleCode}
\end{Examples}

