R/misc.R
last.Rd
last extracts the last element of a vector
last
last(x)
A vector
x <- 1:4 last(x) #> [1] 4 x <- c("hello", "my", "name", "is", "buttons") last(x) #> [1] "buttons"