Message-ID: <22461929.post@talk.nabble.com>
Date: 2009-03-11T18:47:06Z
From: HBaize
Subject: Is this a documentation bug? Spss dates import
In-Reply-To: <20090311134616.GA2957@Host-001>
Luca,
I ran your code using SPSS 17.0 and R 2.8.1.
I found that the correct date was returned in R using this code:
test.df$newdate <- as.Date(as.POSIXct(test.df$mydate , origin="1582-10-14"))
Also note that SPSS 17.0 is case sensitive in storing variable names, so the
R code in your post needs to be changed from "test.df$MYDATE" to
"test.df$mydate" to match your use of lowercase in the SPSS syntax.
Harold
Luca Braglia wrote:
>
> Hello R-user
>
> bug seekers are needed!
> In order to perform these simple tasks you have to use a copy of SPSS
> and obviously R....
>
--
View this message in context: http://www.nabble.com/Is-this-a-documentation-bug--Spss-dates-import-tp22455442p22461929.html
Sent from the R help mailing list archive at Nabble.com.