On 6/4/07, Don MacQueen <[EMAIL PROTECTED]> wrote:
> I think you can easily get the last days of the months by creating a
> series starting on the first days, and subtracting one from each.
>
> seq(as.Date("2000-2-1"), as.Date("2001-2-1"), "months") -1

Thanks for the suggestion, but for my problem the dates are user
supplied so I don't know if they fall at the end of the month or not.

Hadley

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to