| get_releases_by_date | R Documentation |
Filters the input dataset to return the releases corresponding to a specific time period (date).
get_releases_by_date(df, date)
df |
A data frame containing data vintages. The data frame must
include the columns |
date |
A Date object specifying the time period (date) for which releases should be retrieved. |
This function filters the input data based on the specified date in the
time column. The input dataset must have the pub_date and time columns,
with time being the period to match against the given date. If the
dataset is in wide format, it will first be transformed into long format
using the helper function vintages_long.
A data frame containing the releases for the specified date.
The returned data frame will include the same structure as the input,
filtered to only include rows matching the date in the time column.
Other revision utilities:
get_days_to_release(),
get_first_release(),
get_fixed_release(),
get_latest_release(),
get_nth_release(),
get_revisions()
# Example data
df <- dplyr::filter(reviser::gdp, id == "US")
# Get releases for a specific date
date <- as.Date("2020-04-01")
releases_on_date <- get_releases_by_date(df, date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.