Skip to content
Prev 334569 / 398502 Next

Time series and lm

Use as.POSIXct instead of as.POSIXlt if you want to use lm() on the dates.
(The data.frame() function makes this transformation for you, but you
evaded data.frame() by adding the column with $<-(), which does not
do the checks and transformations that data.frame() does.)

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com