Answers for "r last value of vector"

R
2

r last value of vector

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

Browse Popular Code Answers by Language