Nothing
#' Function to get a vector lagged.
#'
#' @param x numeric vector to be lagged.
#' @param k number of lags to be applied.
#' @return A lagged vector.
#' @export
lagpad <- function(x, k) {
res <- c(rep(NA, k), x)[1:length(x)]
return(res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.