Dear All,

I am wondering is there any shift (or pop or push or unshift) equivalent in R?
For example,
shift(x)   # should return x[1], and x becomes x[-1]

Thanks a lot.

Best Regards,
Xie Chao

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to