#' getPeriod
#'
#' This function converts a date to period in yyyymm format.
#' @param date
#'
#'
#'
#' @return
#' @export
#'
#' @examples
getPeriod <- function(date) {
paste0(lubridate::year(date),
formatC(lubridate::month(date), width = 2, flag = '0'))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.