dateCast | R Documentation |
A helper function to create a continuous date from Year and Period columns.
dateCast(api_df = NULL, dt_format = NULL)
api_df |
The data frame you wish to cast a date column to. Be sure the data frame contains 'year' and 'period' columns as returned
by the |
dt_format |
A character string containing a valid date format. The default will return the ISO 8601 date format. |
A tibble from the source api_df
with an additional date column based on the date format given in dt_format
.
## Cast a date column to data frame returned by the bls_api() function.
df <- bls_api("LAUCN040010000000005") %>%
dateCast()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.