Filters the input dataset to return the earliest release (or vintage) for each time period.
Value
A filtered data frame containing only the first release(s).
The resulting data frame is assigned the class tbl_release
to
indicate its structure.
Details
For each time period, the function identifies the release with the earliest
publication date (pub_date
). A new column release
is added and labels
all rows in the resulting data frame as release_0
. If diagonal is set
to TRUE
, the function only returns the real first releases. That is
historic values for which no vintages exist are not returned.