[R] strange date problem - May 3, 1992 is NA
Sarah Goslee
sarah.goslee at gmail.com
Wed Jun 22 20:34:02 CEST 2011
On Wed, Jun 22, 2011 at 2:28 PM, David Winsemius <dwinsemius at comcast.net> wrote:
>
> On Jun 22, 2011, at 2:03 PM, Sarah Goslee wrote:
>
>> Hi,
>>
>> On Wed, Jun 22, 2011 at 11:40 AM, Alexander Shenkin <ashenkin at ufl.edu>
>> wrote:
>>>>
>>>> is.na(strptime("5/2/1992", format="%m/%d/%Y"))
>>>
>>> [1] FALSE
>>>>
>>>> is.na(strptime("5/3/1992", format="%m/%d/%Y"))
>>>
>>> [1] TRUE
>>
>> I can't reproduce your problem on R 2.13.0 on linux:
>
> I also cannot reproduce it on a Mac with 2.13.0 beta
Which strongly suggests that you should start by upgrading your R
installation if at all possible.
I'd also recommend trying it on a default R session, with no extra
packages loaded, and no items in your workspace. It's possible that
something else is interfering.
On linux, that's achieved by typing R --vanilla at the command line.
I'm afraid I don't know how to do it for Windows, but should be
similarly straightforward.
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-help
mailing list