powered by
shift(x, ...)## S3 method for class 'default': shift(x, n = 1, pad = TRUE, wrap = TRUE, ...)## S3 method for class 'data.frame': shift(x, ...)
## S3 method for class 'default': shift(x, n = 1, pad = TRUE, wrap = TRUE, ...)
## S3 method for class 'data.frame': shift(x, ...)
l <- list(a = sample(LETTERS,3), b = runif(5), c = runif(15)); df <- as.data.frame(l); shift(df$c, 1)
Run the code above in your browser using DataLab