  
Hi, I'm experiencing a problem with strptime. (R 1.9.1 on a Win2000
machine)
I have a large list containing 6 columns and 161800 rows.
One column contains dates that I want to convert in order to compare the
different dates.
Some dates work just fine while others become NA. I don't see any
difference between the dates.
I've attached an example from my code. Hope this explains my problem.
Thanks in advance
/Per
 
 
> ccc[[11]]$TradeDateTime[161521]
[1] 29-Sep-00:16:29:50
227345 Levels: 04-Jan-00:09:29:00 04-Jan-00:09:30:00 04-Jan-00:09:31:00
04-Jan-00:09:32:00 04-Jan-00:09:33:00 04-Jan-00:09:34:00 ...
30-Nov-99:23:55:00
>
strptime(as.character(ccc[[11]]$TradeDateTime[161521]),"%d-%b-%y:%H:%M:%
S")
[1] "2000-09-29 16:29:50"
#This works fine!
 
> ccc[[11]]$TradeDateTime[161522]
[1] 19-May-99:11:38:00
227345 Levels: 04-Jan-00:09:29:00 04-Jan-00:09:30:00 04-Jan-00:09:31:00
04-Jan-00:09:32:00 04-Jan-00:09:33:00 04-Jan-00:09:34:00 ...
30-Nov-99:23:55:00
>
strptime(as.character(ccc[[11]]$TradeDateTime[161522]),"%d-%b-%y:%H:%M:%
S")
[1] NA
#This doesn't

	[[alternative HTML version deleted]]


