« first day (278 days earlier)      last day (2897 days later) » 

1:56 PM
Any idea why this isn't working? as.Date("2011-05-19T11:21:33Z", "%Y-%m-%dT%H%:M%:%SZ")?
I can extract the date, though. as.Date("2011-05-19T11:21:33Z", "%F")
... but not time. as.Date("2011-05-19T11:21:33Z", "%T")
 
2:10 PM
>  as.Date("2011-05-19T11:21:33Z", "%Y-%m-%dT%H:%M:%SZ")
[1] "2011-05-19"
You have extra % before the : not the M
 
Oops, you're right. But still, hours, minutes and seconds are not extracted.
Oh. as._Date_. Stupid me...
 
@RomanLuštrik It's a Date
@RomanLuštrik Slaps head... :-)
 
Ok, I got it working with strptime...
Doesn't matter for the time being, because I have to restructure my entire function now. I'm trying to extract information from a gpx file. I've given up on getting GDAL to work and am now working on a native translation of gpx file.
I've never used XLM package (or XML for that matter) before, so it's taking time to figure everything out...
 
 
2 hours later…
4:37 PM
How I wish people didn't use character() as a return of a function... What ever happened to good old NULL or NA?
Hi @Ramji, welcome to Roman_monologue_R_chatroom.
 
Hi @RomanLustrik how are you
I think I am in the wrong room
I know nothing about R
 
Well, it depends. Do you want to learn R?
 

« first day (278 days earlier)      last day (2897 days later) »