[Rd] How x[, 'colname1'] is implemented?

2009-12-31 Thread Peng Yu
I don't see where describes the implementation of '[]'. For example, if x is a matrix or a data.frame, how the lookup of 'colname1' is x[, 'colname1'] executed. Does R perform a lookup in the a hash of the colnames? Is the reference O(1) or O(n), where n is the second dim of x? __

Re: [Rd] Benefit of treating NA and NaN differently for numerics

2009-12-31 Thread Duncan Murdoch
On 31/12/2009 3:43 PM, Saptarshi Guha wrote: Hello, I notice in main/arithmetic.c, that NA and NaN are encoded differently(since every numeric NA comes from R_NaReal which is defined via ValueOfNA) . What is the benefit of treating these two differently? Why can't NA be a synonym for NaN? I do

Re: [Rd] Benefit of treating NA and NaN differently for numerics

2009-12-31 Thread Ted Harding
On 31-Dec-09 20:43:43, Saptarshi Guha wrote: > Hello, > I notice in main/arithmetic.c, that NA and NaN are encoded > differently(since every numeric NA comes from R_NaReal which is > defined via ValueOfNA) > What is the benefit of treating these two differently? Why can't NA > be a synonym for NaN

[Rd] Benefit of treating NA and NaN differently for numerics

2009-12-31 Thread Saptarshi Guha
Hello, I notice in main/arithmetic.c, that NA and NaN are encoded differently(since every numeric NA comes from R_NaReal which is defined via ValueOfNA) . What is the benefit of treating these two differently? Why can't NA be a synonym for NaN? Thank you Saptarshi (R-2.9) ___

Re: [Rd] readCitationFile encoding

2009-12-31 Thread Simon Urbanek
On Dec 31, 2009, at 10:05 AM, Jens Elkner wrote: > On Thu, Dec 31, 2009 at 08:01:15AM +, Prof Brian Ripley wrote: >> On Thu, 31 Dec 2009, Jens Elkner wrote: > Hi, > >>> does anybody know, how to enforce a certain encoding for >>> readCitationFile()? Haven't found any usable documentation for

Re: [Rd] readCitationFile encoding

2009-12-31 Thread Jens Elkner
On Thu, Dec 31, 2009 at 08:01:15AM +, Prof Brian Ripley wrote: > On Thu, 31 Dec 2009, Jens Elkner wrote: Hi, > >does anybody know, how to enforce a certain encoding for > >readCitationFile()? Haven't found any usable documentation for this :( > > Really? Yes. Well, just started to dive into

[Rd] configure R-2.10.1 => "Error: MPlayer will not compile without (PR#14175)

2009-12-31 Thread Red . Dawn
Hi. uname -a Linux localhost.localdomain 2.6.30.10-105.fc11.i686.PAE #1 SMP Thu Dec 24 16:41:17 UTC 2009 i686 i686 i386 GNU/Linux [...@localhost R-2.10.1]$ pwd /home/??/Bin/RStats/R-2.10.1 I fixed this before for previous version of R by copying part of the mplayer tree into the R tree. But, I

Re: [Rd] Bug query (PR#14173)

2009-12-31 Thread Uwe Ligges
This is R-bugs. Please read the FAQs about bugs in R and learn not to post non base R bugs to R-bugs. On 30.12.2009 19:15, edward.grac...@drexelmed.edu wrote: I'm seeing a probable error in the way R boot.ci calculates certain confidence intervals. Not sure where to submit it. Should this go t

Re: [Rd] creating R package-perl

2009-12-31 Thread Uwe Ligges
On 30.12.2009 19:04, karina lopez wrote: do "R CMD install mypkg" an error appears : "Can't open perl script "C:\PROGRA~1\R\R-210~1.0/bin/install": No such file or di rectory", but i installed perl in C:\Rtools\perl\bin and i wrote it in the path, i need to do something more??? Yes, it's ca

Re: [Rd] seq.int broken (seq as well) (PR#14169)

2009-12-31 Thread Petr Savicky
On Mon, Dec 28, 2009 at 08:50:13PM +0100, oehl_l...@gmx.de wrote: [...] > # fine as expected from help page: > # "from+by, ..., up to the sequence value less than or equal to to" > # thus 1+10=11 is not in > > seq.int(1L, 10L, by=10L) > [1] 1 > > # of course 1+1e7 should also not be in > # but is

Re: [Rd] readCitationFile encoding

2009-12-31 Thread Prof Brian Ripley
On Thu, 31 Dec 2009, Jens Elkner wrote: Hi, does anybody know, how to enforce a certain encoding for readCitationFile()? Haven't found any usable documentation for this :( Really? From the help file in current versions of R (2.10.1 patched, R-devel) ‘readCitationFile’ make use of the