# Knowledge check: lags

When you have mixed data in long format and are generating lags with shift(), why is it important to use a by clause?