Learn R Programming

pillar (version 1.9.0)

tbl_sum: Provide a succinct summary of an object

Description

tbl_sum() gives a brief textual description of a table-like object, which should include the dimensions and the data source in the first element, and additional information in the other elements (such as grouping for dplyr). The default implementation forwards to obj_sum().

Usage

tbl_sum(x)

Value

A named character vector, describing the dimensions in the first element and the data source in the name of the first element.

Arguments

x

Object to summarise.

See Also

type_sum()

Examples

Run this code
tbl_sum(1:10)
tbl_sum(matrix(1:10))
tbl_sum(data.frame(a = 1))
tbl_sum(Sys.Date())
tbl_sum(Sys.time())
tbl_sum(mean)

Run the code above in your browser using DataLab