Answers for "how to the vector last value"

R
2

r last value of vector

x[length(x)] # fastest
tail(x, 1)   # easiest
Posted by: Guest on March-01-2021

Code answers related to "how to the vector last value"

Browse Popular Code Answers by Language