Re: [R] Problem with strptime generating missing values where none appear to exist

2010-02-23 Thread Don MacQueen
What happens if you do all that NA checking on dob *before* subtracting 100 from dob$year? What happens if you use difftime() before subtracting the 100? Do you get any NAs if you convert dob to POSIXct? (these are just investigative ideas, obviously) -Don At 6:26 PM + 2/23/10, Jonathan

[R] Problem with strptime generating missing values where none appear to exist

2010-02-23 Thread Jonathan Williams
Dear R Helpers, I am having difficulty with strptime. I wish to find the differences between two vectors of times. I have apparently no difficulty to convert the vectors to the appropriate format using strptime. But, then difftime does not calculate all the differences. Here is the code and outpu