function (x, d = 1)
if (d != as.integer(d) || d < 0)
stop("d must be a non-negative integer")
if (d == 0)
else return(c(rep(NA, d), rev(rev(x)[-(1:d)])))
Any scripts or data that you put into this service are public.
Add the following code to your website.
Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.