Rev 79897 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/print.dataframe.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2021 R Core Team% Distributed under GPL 2 or later\name{print.data.frame}\title{Printing Data Frames}\alias{print.data.frame}\description{Print a data frame.}\usage{\method{print}{data.frame}(x, \dots, digits = NULL,quote = FALSE, right = TRUE, row.names = TRUE, max = NULL)}\arguments{\item{x}{object of class \code{data.frame}.}\item{\dots}{optional arguments to \code{print} methods.}\item{digits}{the minimum number of significant digits to be used: see\code{\link{print.default}}.}\item{quote}{logical, indicating whether or not entries should beprinted with surrounding quotes.}\item{right}{logical, indicating whether or not strings should beright-aligned. The default is right-alignment.}\item{row.names}{logical (or character vector), indicating whether (orwhat) row names should be printed.}\item{max}{numeric or \code{NULL}, specifying the maximal number ofentries to be printed. By default, when \code{NULL},\code{\link{getOption}("max.print")} used.}}\details{This calls \code{\link{format}} which formats the data framecolumn-by-column, then converts to a character matrix and dispatchesto the \code{print} method for matrices.When \code{quote = TRUE} only the entries are quoted not the row namesnor the column names.}\seealso{\code{\link{data.frame}}.}\examples{(dd <- data.frame(x = 1:8, f = gl(2,4), ch = I(letters[1:8])))# print() with defaultsprint(dd, quote = TRUE, row.names = FALSE)# suppresses row.names and quotes all entries}\keyword{print}