#' ksmoothVec
#'
#' @param x
#' @param bw
#'
#' @return
#' @export
#'
#' @examples
ksmoothVec <- function(x, bw = 50){
y = x
x = zoo::index(x)
krnl = ksmooth(x, y, kernel = "box", bandwidth = bw)
all.equal(krnl$x, x)
return(krnl)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.