#' yearmonth
#'
#' Quickly convert a YYYYMM integer to a Zoo as.yearmon object
#' @param x A date
#' @export
yearmonth <- function(x) {
require(tidyverse)
require(zoo)
y <- as.yearmon(as.character(x), "%Y%m")
return(y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.