I am getting an unanticipated result attempting to format a datetime
string
date1 <- strptime('2005 297 1030 35', '%Y %j %H%M %S') # returns
"2005-10-24 10:12:35"
date2 <- strptime('2005 297 912 35', '%Y %j %H%M %S') # returns NA
Are there any ways to adjust the format argument (e.g., '%H') to accept
one or two digit hours?
Thanks in advance,
Dave
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.