I am using both the carbon(v1.60) and Darwin (r-base 1.6.1 fink updated
today) versions of R with MacOS X 10.2. I find that there seems to be
a
problem with strptime under Darwin - if a bad date is passed it returns
today's date instead of NA.
Carbon R:
strptime("10/2/2001",format="%d/%m/%Y")
strptime("",format="%d/%m/%Y")
strptime("10/2/2001",format="%d/%m/%Y")
strptime("",format="%d/%m/%Y")
[1] "2002-11-14"
I presume that this a problem with some external library. Would
anyone be
able to suggest a fix?
Thanks,
Greg.