Hi all mailing listers,

I wanna get the last several elments of vector.
 e.g.  x <- c(1,2,3,.....,78, 79, 80)

How can I implement to assign last three elements to y,  y <- c(78, 79, 80)
?

In Matlab, It can easily achieve by y=x(end-2:end)


Thanks

Huaping Wan

	[[alternative HTML version deleted]]

