[R] Is this foreach behaviour correct?

James Hirschorn james.hirschorn at hotmail.com
Sun Nov 6 02:10:51 CET 2016


This seemed odd so I wanted to check:

 > x <- foreach(i=10000:10100, .combine='c') %do% { as.Date(i) }

yields a numeric vector for x:

 > class(x)
[1] "numeric"

Should it not be a vector of Date?



More information about the R-help mailing list