Skip to content
Prev 350516 / 398503 Next

LM() and time in R

Hi Livia,
a vector of date strings like "30/04/2015". These will usually be
input as "factors" in R, meaning that you probably had a very large
number of categorical values instead of numeric. To find out, do this:

is.factor(time_variable)

where "time_variable" is something like mydata$Time. If the answer is
TRUE, convert that variable to a vector of dates with as.Date and try
your analysis again.

Jim
On Thu, Apr 30, 2015 at 4:25 AM, Boris Steipe <boris.steipe at utoronto.ca> wrote: