Re: [Rd] "NA" vs. NA

From: Adrian Dusa <dusa.adrian_at_gmail.com>
Date: Thu, 05 Apr 2012 14:27:01 +0300

Hi Ted,

On Thu, Apr 5, 2012 at 14:22, Ted Harding <Ted.Harding_at_wlandres.net> wrote:
> On 05-Apr-2012 11:03:15 Adrian Dusa wrote:
>> [...]
>
> Hi Adrian,
> The default in read.table() for the "na.strings" parameter is
>
>  na.strings = "NA"
>
> So, provided you have no "NA" in the data portion of your file
> (or e.g. any missing values are simply blank) you could use
> something like:
>
> read.table(zfile, header = TRUE, as.is = FALSE, na.strings="OOPS")

Sure, that solves the problem on reading the data from R, but the point was it "creates problems on using this data within a package".

The error is thrown by:
R CMD check --as-cran /path/to/my/package

(and I have no direct control over it...)

Best,
Adrian

-- 
Adrian Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd.
050025 Bucharest sector 5
Romania
Tel.:+40 21 3126618 \
       +40 21 3120210 / int.101
Fax: +40 21 3158391

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 05 Apr 2012 - 11:28:57 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 - 12:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive