tbl_sum.tbl_vintage: Tibble Summary for Vintages Data

View source: R/vintage-methods.R

tbl_sum.tbl_vintageR Documentation

Tibble Summary for Vintages Data

Description

Provides the custom header shown when a vintages object is printed. This method is called automatically by pillar. It is defined once for the parent class tbl_vintage and inherited by tbl_pubdate and tbl_release objects alike, so that both report the same fields.

Usage

## S3 method for class 'tbl_vintage'
tbl_sum(x, ...)

Arguments

x

An object inheriting from tbl_vintage, such as a tbl_pubdate or a tbl_release.

...

Additional arguments (unused).

Value

A named character vector where names are labels and values are the corresponding information. The vector is used by pillar to format the tibble header. An object whose columns no longer match either documented layout falls back to the plain tibble header, so that a broken object can still be inspected; summary() reports the problem.

See Also

Other helpers: print.tbl_vintage(), summary.tbl_vintage(), tbl_vintage, validate_vintages(), vintages_long(), vintages_wide()

Examples

df <- dplyr::filter(reviser::gdp, id == "US")
release_data <- get_nth_release(df, n = 0:3)
pillar::tbl_sum(release_data)

reviser documentation built on Sept. 14, 2026, 9:09 a.m.