#' @title XXX
#'
#' @description XXX
#'
#' @export
trend.f <- function(year,month,start.year=1958){
#Function to calculate 'trend' vector for time-series:
nyear=year-start.year
trend=month+nyear*12
trend
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.