last {pastecs} | R Documentation |
Get the last element of a vector
Description
Extract the last element of a vector. Useful for the turnogram()
function
Usage
last(x, na.rm=FALSE)
Arguments
x |
a numerical vector |
na.rm |
if |
Value
a numerical value
Author(s)
Philippe Grosjean (phgrosjean@sciviews.org), Frédéric Ibanez (ibanez@obs-vlfr.fr)
See Also
Examples
a <- c(NA, 1, 2, NA, 3, 4, NA)
last(a)
last(a, na.rm=TRUE)
[Package pastecs version 1.4.2 Index]