Message-ID: <1dd941090911251340o4eb2b62cqecd6e68092dfc029@mail.gmail.com>
Date: 2009-11-25T21:40:00Z
From: nabble.30.miller_2555 at spamgourmet.com
Subject: Feature request for as.Date() function 20)
In-Reply-To: <644e1f320911251156n355d5779q2f7ddd82c2d8e1be@mail.gmail.com>
On Wed, Nov 25, 2009 at 2:56 PM, jim holtman - jholtman at gmail.com
<+nabble+miller_2555+9dc9649aca.jholtman#gmail.com at spamgourmet.com>
wrote:
> Seems to work fine in my testing:
>
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>>
>> Similarly, the following command produces the same error:
>> ? ?as.Date("NA")
>>
>> However, as.Date(NA) performs as documented.
>>
>> Can we enhance the as.Date() function to convert "NA" strings into NA
>> value prior to type conversion?
I sincerely appreciate the help, but with all due respect, I have read
the posting guide and did provide the minimal code necessary to
reproduce the desired feature. To reiterate, I would like to be able
to feed the character string "NA" to the as.Date() function to yield
the same result as `as.Date(NA)`. Please advise if testing the
following does not yield an error:
> as.Date("NA");
This may or may not aid the read.csv() error message in my particular
code (for which a workaround has already been identified).
Thank you.