Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(zoo)
- d1 <- "2017-12-01"
- d2 <- "2017-01-03"
- f <- "%Y-%m-%d"
- (as.yearmon(strptime(d1,format = f))-as.yearmon(strptime(d2,format = f)))*12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement