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.
Arguments
- x
An object inheriting from tbl_vintage, such as a
tbl_pubdateor atbl_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)
#> Vintages data (release format) Format
#> "" "long"
#> Time periods Releases
#> "179" "4"
#> IDs
#> "1"
