[R] newbie lapply question

Ranjan Bagchi ranjan.bagchi at frotz.com
Wed Dec 5 18:03:33 CET 2007


Hi --

I just noticed the following (R 2.6.1 on OSX)

> lapply(c(as.Date('2007-01-01')), I)
[[1]]
[1] 13514

This is a bit surprising.. Why does lapply unclass the object?  Sorry for 
such a basic question, I don't seem able to produce the right google keywords.

Ranjan



More information about the R-help mailing list