When I try to compute the cross-correlation function between two vectors c(0, 0, 0, 1, 0, 0) and c(0, 1, 0, 0, 0, 0) via
ccf(c(0, 0, 0, 1, 0, 0), c(0, 1, 0, 0, 0, 0))
Here all values are nonzero, which seems strange for me, because for most lags, when I multiply two vectors (for example for zero lag), I should get zero, because where one vector has nonzero element, another has zero and vice versa. Why do I get some nonzero results on the graph where I should get zero?