Hi,
I have a dataset whose row names corresponds to months. When I apply lag
function (dplyr package) on this dataset, I get NAs with warning messages.
Is there any lag function that carries out the lag but keep the row names?
I will have two datasets. The dates of the datasets are not exactly the
same, and I want to find out the correlation for the overlapping period.
Thanks,