Get the first element of a vector
Extract the first element of a vector. Useful for the turnogram()
function
first(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) first(a) first(a, na.rm=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.