title: Finding lag at which cross correlation is maximum ccf( )
body: <p>I have 2 time series and I am using <code>ccf</code> to find the cross correlation between them.
  <code>ccf(ts1, ts2)</code> lists the cross-correlations for all time lags. How can I find the lag which results in maximum correlation without manually looking at the data?</p>