[R] date comparison doesn't match value

Jim Lemon drjimlemon at gmail.com
Sat Oct 8 12:05:25 CEST 2016


Hi Heather,
I think the problem may be that you are trying to compare a date field
and a character string. R helpfully tries to wrangle the two into
comparable data types. While I don't know exactly what you have done,
as R for:

as.numeric(alldata$new.date.local)

and look at the value you get.

Jim



More information about the R-help mailing list