View source: R/vintage-methods.R
| summary.tbl_vintage | R Documentation |
Reports the layout, time coverage, number of vintages and missing-value count of a vintages object. Defined once for the parent class tbl_vintage; the block describing the vintages themselves is supplied by the concrete class.
## S3 method for class 'tbl_vintage'
summary(object, ...)
object |
An object inheriting from tbl_vintage, such as a
|
... |
Additional arguments (not used). |
The input object, invisibly.
Other helpers:
print.tbl_vintage(),
tbl_sum.tbl_vintage(),
tbl_vintage,
validate_vintages(),
vintages_long(),
vintages_wide()
df <- dplyr::filter(reviser::gdp, id == "US")
# Long format
release_data <- get_nth_release(df, n = 0:3)
summary(release_data)
# Wide format
wide_release <- vintages_wide(release_data, names_from = "release")
summary(wide_release$US)
# Publication-date vintages
summary(vintages_wide(df)$US)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.