Questo dovrebbe essere veloce - stiamo analizzando la seguente formato in R:Parsing ISO8601 formato in R
2013-04-05T07: 49: 54-07: 00
mio approccio attuale è
require(stringr)
timenoT <- str_replace_all("2013-04-05T07:49:54-07:00", "T", " ")
timep <- strptime(timenoT, "%Y-%m-%d %H:%M:%S%z", tz="UTC")
ma fornisce NA
.
'% z' è l'offset firmato in ore, nel formato' hhmm', non 'hh: mm'. –
Vedo: la migliore soluzione per sostituire ":"? – Rico