| get_fixed_release | R Documentation |
Some statistical agencies make a final revision of their data after a certain period of time in a give month in the year. This function extracts values from a given month or quarter a specified number of years after the initial release.
get_fixed_release(df, years, month = NULL, quarter = NULL)
df |
A data frame containing columns |
years |
A single whole number of years after |
month |
An optional parameter specifying the target month as a name
("July") or an integer (7). Cannot be used with |
quarter |
An optional parameter specifying the target quarter (1-4).
Cannot be used with |
A filtered data frame containing values matching the specified criteria.
Other revision utilities:
get_days_to_release(),
get_first_release(),
get_latest_release(),
get_nth_release(),
get_releases_by_date(),
get_revisions()
df <- dplyr::filter(reviser::gdp, id == "US")
dta <- get_fixed_release(df, month = "July", years = 3)
dta <- get_fixed_release(df, month = 7, years = 3)
dta <- get_fixed_release(df, quarter = 3, years = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.