Suppose I have a vector that is nested in a dataframe one or two levels. Is there a quick and dirty way to access the last value, without using the length() fu
length()
The xts package provides a last function:
last
library(xts) a <- 1:100 last(a) [1] 100