Skip to content

Time series and lm

2 messages · Marlin Keith Cox, William Dunlap

#
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