[R] difference between 2 dates: IN MONTHS the way Mothers compute it

From: Smith, Phil <pzs6_at_CDC.GOV>
Date: Sat 11 Mar 2006 - 05:20:15 EST


Hi R-people:  

I need a function to compute the number of months between 2 dates, in the same way a mother would do it.  

For example, if a kid is born on February 6, the number of months between that date and March 7 is exactly 1 month, although it is only 29 days.  

Thank you!
Phil Smith
CDC           [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Mar 11 06:55:41 2006

This archive was generated by hypermail 2.1.8 : Sat 11 Mar 2006 - 09:09:10 EST