#'
#' Convert a yyyymmdd value to a Date
#'
#' @param yyyymmdd A string or integer of year, month, date
#' @return A Date object
#'
#' @export
#'
yyyymmddToDate = function(yyyymmdd) {
declare(yyyymmdd="character|integer|numeric")
yyyymmdd = as.integer(yyyymmdd)
as.Date(ISOdate((yyyymmdd %/% 10000),
(yyyymmdd %/% 100) %% 100,
(yyyymmdd %% 100) ))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.