powered by
Convenience functions to return the last/first element of a vector
last(vec)
Vector of any type
Vector of length 1 of same type as vec
# NOT RUN { test <- seq(10) first(test) last(test) # }
Run the code above in your browser using DataLab