I'm using R and I have the following variables:
data$date1 (which is a date)
[1] "2012-01-01" "2012-01-01" "2012-01-01"
and
data$date2 (which is a numeric)
[1] 201602
I need to do a date difference but I don't know how to do it. I need to calculate the months difference.
Any help will be really appreciated.