dplyr (version 0.4.2)

print.tbl_df: Tools for describing matrices

Description

Tools for describing matrices

Usage

# S3 method for tbl_df
print(x, ..., n = NULL, width = NULL)

# S3 method for tbl_dt print(x, ..., n = NULL, width = NULL)

# S3 method for tbl_sql print(x, ..., n = NULL, width = NULL)

dim_desc(x)

trunc_mat(x, n = NULL, width = NULL)

Arguments

x
Object to show.
n
Number of rows to show. If NULL, the default, will print all rows if less than option dplyr.print_max. Otherwise, will print dplyr.print_min
width
Width of text output to generate. This defaults to NULL, which means use getOption("width") and only display the columns that fit on one screen. You can also set option(dplyr.width = Inf) to override this default and always print all columns.

Examples

Run this code
dim_desc(mtcars)
trunc_mat(mtcars)

print(tbl_df(mtcars))
print(tbl_df(mtcars), n = 1)
print(tbl_df(mtcars), n = 3)
print(tbl_df(mtcars), n = 100)

Run the code above in your browser using DataCamp Workspace