Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.21.0302022041240.28373-100000@spline2.stat.wisc.edu>
Date: 2003-02-03T02:50:07Z
From: John Carew
Subject: Date conversion problems

Hello,
I have a data set with dates stored as a factor with levels coded as, for
example  "01/03/1996" 

I tried the following:

onset <- strptime(as.character(cf$dx.dt), format="%m%d%Y")

where cf$dx.dt are the dates in the data frame cf.  For output, I get NA
for every entry.  If it matters, I'm running the fink version of R 1.6.1
on a powerbook G4 with OS 10.2.2.  

I have little experience dealing with dates in R.  Is there a reference
that discusses the general issues?

Any help would be much appreciated. 
Thanks,
John

--
John Carew <jcarew@stat.wisc.edu>
Department of Statistics
University of Wisconsin--Madison
http://www.stat.wisc.edu/~jcarew