[Rd] "NA" vs. NA

2012-04-05 Thread Adrian Dusa
Dear All, I assume this is an R-devel issue, apologies if I missed something obvious. I have a dataframe where the row names are country codes, based on ISO 3166, something like this: "v1""v2" "UK"12 "NA"23 It happens that "NA" is the country code fo

Re: [Rd] "NA" vs. NA

2012-04-05 Thread Ted Harding
On 05-Apr-2012 11:03:15 Adrian Dusa wrote: > Dear All, > > I assume this is an R-devel issue, apologies if I missed something > obvious. I have a dataframe where the row names are country codes, > based on ISO 3166, something like this: > > > "v1""v2" > "UK"12 > "NA"2

Re: [Rd] "NA" vs. NA

2012-04-05 Thread Adrian Dusa
Hi Ted, On Thu, Apr 5, 2012 at 14:22, Ted Harding 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 mi

Re: [Rd] "NA" vs. NA

2012-04-05 Thread Duncan Murdoch
On 12-04-05 7:27 AM, Adrian Dusa wrote: Hi Ted, On Thu, Apr 5, 2012 at 14:22, Ted Harding 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

Re: [Rd] "NA" vs. NA

2012-04-05 Thread Adrian Dusa
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 i

Re: [Rd] R datasets ownership(copyright) and license

2012-04-05 Thread Hadley Wickham
> > And you need not look so far afield for that particular lack of rationality. > In the US, databases are covered by the Database and Collections of > Information Misappropriation Act of 2003 > (http://www.govtrack.us/congress/bills/108/hr3261) which says almost exactly > the same thing; that

Re: [Rd] "NA" vs. NA

2012-04-05 Thread Kevin R. Coombes
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

Re: [Rd] R datasets ownership(copyright) and license

2012-04-05 Thread Spencer Graves
On 4/5/2012 6:08 AM, Hadley Wickham wrote: And you need not look so far afield for that particular lack of rationality. In the US, databases are covered by the Database and Collections of Information Misappropriation Act of 2003 (http://www.govtrack.us/congress/bills/108/hr3261) which says alm

[Rd] Unlikely use case of debug() that cause R to crash

2012-04-05 Thread Henrik Bengtsson
FYI, PROBLEM: R will crash if one tries to use debug() during startup, i.e. in a user profile file. REPRODUCIBLE EXAMPLE: Create ~/.Rprofile with: cat("~/.Rprofile...\n") debug(cat) cat("~/.Rprofile...done\n") and do % R --no-environ --no-environ --no-restore --silent ~/.Rprofile... debuggin

[Rd] issue with base:::namespaceImportMethods

2012-04-05 Thread Michael Lawrence
Hi, I've noticed an issue with S4 methods and namespaces which only arises in particular, difficult to reproduce configurations. One example is the ggbio package in Bioconductor, which currently emits these warnings when its namespace is loaded: -- library(ggbio) Loading requ