R/vector.R
lastElement.Rd
Returns the last element using the function tail
lastElement(x)
object
The last element of object is returned: x[[length(x)]]
x[[length(x)]]
if x is a list (and not a data frame), otherwise tail(x, 1).
x
tail(x, 1)