Re: [R] Help with simple as.POSIXlt or strptime

2013-09-28 Thread Jim Lemon
On 09/29/2013 01:27 AM, Leopoldo Catania wrote: Hi, I really don't know what is wrong with my code, I have a character object and I need to have a POSIXlt object; my code is: date="Mon, 23 Sep 2013 06:45:05 GMT" as.POSIXlt(date,format="%a, %d %b %Y %H:%M:%S %Z") [1] NA even with strptime(date,

[R] Help with simple as.POSIXlt or strptime

2013-09-28 Thread Leopoldo Catania
Hi, I really don't know what is wrong with my code, I have a character object and I need to have a POSIXlt object; my code is: >date="Mon, 23 Sep 2013 06:45:05 GMT" >as.POSIXlt(date,format="%a, %d %b %Y %H:%M:%S %Z") [1] NA even with >strptime(date,"%a, %d %b %Y %H:%M:%S %Z") [1] NA Also if I remov