Skip to content
Prev 78889 / 398502 Next

adding 1 month to a date

OTOH,

 > seq(as.Date("2004-01-31"), by = "month", length = 14)
  [1] "2004-01-31" "2004-03-02" "2004-03-31" "2004-05-01" "2004-05-31"
  [6] "2004-07-01" "2004-07-31" "2004-08-31" "2004-10-01" "2004-10-31"
 [11] "2004-12-01" "2004-12-31" "2005-01-31" "2005-03-03"

 I would prefer to see dates forced to be within each month, not
 "leaking" into next month.

 IOW:
  [1] "2004-01-31" "2004-02-29" "2004-03-31" "2004-04-30" "2004-05-31", etc


 --
 Jim Porzak
 Loyalty Matrix Inc.
 San Francisco, CA