% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.R \name{print} \alias{print} \alias{print.tbl_df} \alias{print.tbl} \alias{print.data.table} \title{Printing Data Tables and Tibbles} \usage{ \method{print}{tbl_df}(x, nmax = 10, header = TRUE, row.names = TRUE, right = FALSE, width = 1, na = "", ...) \method{print}{tbl}(x, ...) \method{print}{data.table}(x, nmax = 10, header = TRUE, row.names = TRUE, print.keys = FALSE, right = FALSE, width = 1, na = "", ...) } \arguments{ \item{x}{object of class \code{data.frame}.} \item{nmax}{amount of rows to print in total. When the total amount of rows exceeds this limit, the first and last \code{nmax / 2} rows will be printed. Use \code{nmax = NA} to print all rows.} \item{header}{print header with information about data size and tibble grouping} \item{row.names}{logical (or character vector), indicating whether (or what) row names should be printed.} \item{right}{logical, indicating whether or not strings should be right-aligned. The default is right-alignment.} \item{width}{amount of white spaces to keep between columns, must be at least 1} \item{na}{value to print instead of NA} \item{...}{optional arguments to \code{print} or \code{plot} methods.} \item{print.keys}{print keys for \code{data.table}} } \description{ Print a data table or tibble. It prints: \cr- The \strong{first and last rows} like \code{data.table}s are printed by the \code{data.table} package,\cr- A \strong{header} and \strong{left aligned text} like \code{tibble}s are printed by the \code{tibble} package with info about grouped variables,\cr- \strong{Unchanged values} and \strong{support for row names} like \code{data.frame}s are printed by the \code{base} package. } \examples{ # still showing all values unchanged: library(dplyr) starwars print(starwars, width = 3) # compare the significance notation of this starwars \%>\% select(birth_year) # with this tibble:::print.tbl_df(starwars \%>\% select(birth_year)) # supports info about groups (look at header) starwars \%>\% group_by(homeworld, gender) }