View source: R/vintage-methods.R
| tbl_sum.tbl_vintage | R Documentation |
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.
## S3 method for class 'tbl_vintage'
tbl_sum(x, ...)
x |
An object inheriting from tbl_vintage, such as a |
... |
Additional arguments (unused). |
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.
Other helpers:
print.tbl_vintage(),
summary.tbl_vintage(),
tbl_vintage,
validate_vintages(),
vintages_long(),
vintages_wide()
df <- dplyr::filter(reviser::gdp, id == "US")
release_data <- get_nth_release(df, n = 0:3)
pillar::tbl_sum(release_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.