powered by
Returns the last element of a list or vector.
last(x)
a list or vector.
An object of the same type as x of length 1 (or empty if x is empty).
x
Designed to be faster than using tail() or rev(), and cleaner than writing x[length(x)].
tail()
rev()
x[length(x)]
tail, rev.
tail
rev
# NOT RUN { last(1:10) # }
Run the code above in your browser using DataLab