| format.tbl {tibble} | R Documentation |
Tools for describing matrices
## S3 method for class 'tbl' format(x, ..., n = NULL, width = NULL, n_extra = NULL) ## S3 method for class 'tbl_df' format(x, ..., n = NULL, width = NULL, n_extra = NULL) ## S3 method for class 'tbl' print(x, ..., n = NULL, width = NULL, n_extra = NULL) ## S3 method for class 'tbl_df' print(x, ..., n = NULL, width = NULL, n_extra = NULL) trunc_mat(x, n = NULL, width = NULL, n_extra = NULL)
x |
Object to show. |
n |
Number of rows to show. If |
width |
Width of text output to generate. This defaults to NULL, which
means use |
n_extra |
Number of extra columns to print abbreviated information for,
if the width is too small for the entire tibble. If |
trunc_mat(mtcars)
print(as_tibble(mtcars))
print(as_tibble(mtcars), n = 1)
print(as_tibble(mtcars), n = 3)
print(as_tibble(mtcars), n = 100)
if (!requireNamespace("nycflights13", quietly = TRUE))
stop("Please install the nycflights13 package to run the rest of this example")
print(nycflights13::flights, n_extra = 2)
print(nycflights13::flights, width = Inf)