first | R Documentation |
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)
last
, turnogram
a <- c(NA, 1, 2, NA, 3, 4, NA)
first(a)
first(a, na.rm=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.