evalDate<-mondate(c(12+12*1:10)) # year ends 2001, ..., 2010
diff(evalDate) # vector of length 9 holding the number 12,
# with "timeunits" attribute = "months"
Run the code above in your browser using DataLab