This tutorial talks about computing cross-correlation in R.

Suppose we have time series models for variables *x* and *y* that are stationary in mean and variance. The variables may each be serially correlated, and correlated with each other at different time lags. Read more R in Time Series: Cross-correlation