Thanks David, that went perfectly fine. Best Tom -- View this message in context: http://r.789695.n4.nabble.com/Correlation-Loops-in-time-series-tp4672732p4672879.html Sent from the R help mailing list archive at Nabble.com.