Extract the last n elements of a vector
lastn.RdExtract the last n elements of a vector
Details
I did not know about the function tail() when I did this one,
but the two functions are not completely equivalent (and tail
is generic).
If n is equal to length(x), x is returned as is.
If n is equal to zero or is negative, a length zero vector is
returned.
It is an error for n to be larger than length(x).
See also
See Also as tail