The function autocor computes the autocorrelation.(function from localscore)
autocor(x)
x
A numeric vector.
the autocorrelation.