#' @import lubridate
##date translate to char
dt_to_char <- function(x)
{
if(is.null(x))
{
return(x)
}
return(format(ymd(x),'%Y%m%d'))
}
##combine char list
comb_char <- function(x)
{
paste0("'",x,"'", collapse = ',')
}
fill_na <- function(x, fill = 0)
{
ifelse(is.na(x), fill, x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.