Skip to content
Prev 319127 / 398506 Next

Unexpected behavior looping through sequence of dates

I understand that the two following loops should produce the exact same output. However, they do not. It appears that looping directly through the sequence of Date objects somehow makes them be coerced to numeric:
[1] "Date"
[1] "Date"
[1] "numeric"
[1] "numeric"

This is output from R version 2.15.2 (2012-10-26) on Mac OS X 10.8.2.

Is this expected behavior?