Returns the last element using the function tail

lastElement(x)

Arguments

x

object

Value

last element: x[length(x)]