| last | R Documentation | 
last extracts the last element of a vector, matrix or list
last(x)
x | 
 A vector, matrix or list  | 
A single value or list element
x <- 1:4
last(x)
x <- c("my", "name", "is", "buttons")
last(x)
x <- matrix(runif(10), 5, 2)
last(x)
x <- matrix(LETTERS[1:10], 5, 2)
last(x)
x <- list(1:5, 6:10)
last(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.