[R] shift and pop equivalent in R

Xie Chao xiechaos at gmail.com
Tue Apr 20 20:03:53 CEST 2010


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



More information about the R-help mailing list