\HeaderA{print.data.frame}{Printing Data Frames}{print.data.frame}
\keyword{print}{print.data.frame}
\begin{Description}\relax
Print a data frame.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'data.frame':
print(x, ..., digits = NULL,
      quote = FALSE, right = TRUE, row.names = TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] object of class \code{data.frame}.
\item[\code{...}] optional arguments to \code{print} or \code{plot} methods.
\item[\code{digits}] the minimum number of significant digits to be used: see
\code{\LinkA{print.default}{print.default}}.
\item[\code{quote}] logical, indicating whether or not entries should be
printed with surrounding quotes.
\item[\code{right}] logical, indicating whether or not strings should be
right-aligned.  The default is right-alignment.
\item[\code{row.names}] logical (or character vector), indicating whether (or
what) row names should be printed.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This calls \code{\LinkA{format}{format}} which formats the data frame
column-by-column, then converts to a character matrix and dispatches
to the \code{print} method for matrices.

When \code{quote = TRUE} only the entries are quoted not the row names
nor the column names.
\end{Details}
\begin{SeeAlso}\relax
\code{\LinkA{data.frame}{data.frame}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
(dd <- data.frame(x=1:8, f=gl(2,4), ch=I(letters[1:8])))
     # print() with defaults
print(dd, quote = TRUE, row.names = FALSE)
     # suppresses row.names and quotes all entries
\end{ExampleCode}
\end{Examples}

