Re: [Rd] "NA" vs. NA

From: Kevin R. Coombes <>
Date: Thu, 05 Apr 2012 09:04:49 -0500

Change the "na.strings" argument to read.table or read.csv when reading in the file. By default, na.strings="NA". If you do something like

countryCodes <- read.csv("mySourceFile.csv", na.strings="")

then your problem will go away.

On 4/5/2012 7:26 AM, Adrian Dusa wrote:
> On Thu, Apr 5, 2012 at 14:49, Duncan Murdoch<> wrote:
>> On 12-04-05 7:27 AM, Adrian Dusa wrote:
>>> [...]
>> You still haven't explained what you are doing to cause the problem, so I'll
>> guess that you have this file in your data directory of the package, in
>> tab-delimited form.
>> Just store it in some other form, e.g. as a binary object to be loaded.
> Indeed, this is exactly what I did (tab-delimited file in the data
> directory) and yes, this solves the issue.
> Thanks very much,
> Adrian
> mailing list Received on Thu 05 Apr 2012 - 14:07:00 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 Apr 2012 - 20:20:40 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive