transform_years <- function(years) {
years_string <- ""
for (year in years) {
years_string <- paste(years_string, as.character(year), sep = ",")
}
return(substring(years_string, 2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.