Skip to content
Back to formatted view

Raw Message

Message-ID: <1351987768687-4648354.post@n4.nabble.com>
Date: 2012-11-04T00:09:28Z
From: hoguejm
Subject: Changing Date Variables as Continuous Variables

I am very new to R, so I apologize if this question is trivial.

I have a row in my data of dates in the format mm/dd/yyyy; about 3500 rows. 

I am using this variable in a logistic regression model, and need to treat
it as continuous, not a factor as r has decided it is.

I tried the as.numeric function but it resulted in all NA's and the message:
"NAs introduced by coercion "

If anyone knows a solution, I would greatly appreciate it. 

Cheers,
Jake



--
View this message in context: http://r.789695.n4.nabble.com/Changing-Date-Variables-as-Continuous-Variables-tp4648354.html
Sent from the R help mailing list archive at Nabble.com.