powered by
last extracts the last element of a vector
last
last(x)
A vector
x <- 1:4 last(x) x <- c("hello", "my", "name", "is", "buttons") last(x)
Run the code above in your browser using DataLab