Get the last element of a vector
Extract the last element of a vector. Useful for the turnogram()
function
last(x, na.rm=FALSE)
x |
a numerical vector |
na.rm |
if |
a numerical value
Philippe Grosjean (phgrosjean@sciviews.org), Frédéric Ibanez (ibanez@obs-vlfr.fr)
a <- c(NA, 1, 2, NA, 3, 4, NA) last(a) last(a, na.rm=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.