[R] strptime - %p format doesn't seem to be working
Edward Abraham
edward at dragonfly.co.nz
Wed Nov 29 23:33:17 CET 2006
Hi there,
Am I missing something? The "%p" format, which should match against
AM/PM, seems to be broken in R 2.3.1 running on Windows XP SP2. For
example, the following fails
> strptime("10AM", "%I%p")
[1] NA
whereas the this works as you would expect, but is ambiguous
> strptime("10", "%I")
[1] "2006-11-30 10:00:00"
Does this error reproduce on other machines, or is it something wrong
with my setup?
Cheers,
Edward
More information about the R-help
mailing list