View source: R/utils-get-data-yr.R
get_data_yr | R Documentation |
Get the current data year
get_data_yr(data_yr_month_cutoff = 4)
data_yr_month_cutoff |
The final month in the year that you would still only want data from the previous year. Often times we might pull the data in March but we do not actually want to include data from January, February, and March of that year. The default is April, or 4, to be safe. Thus, if you are working in June of 1999, the data year will be 1999 but if you are working in February of 1999 the data year will be 1998 using the default input. |
A four-digit integer is returned that specifies the year of interest.
Kelli F. Johnson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.