[R] language inconsistency puzzle (in the tradition of Bill V enables (Hi Bill) puzzle "what is x")

oehl_list@gmx.de oehl_list at gmx.de
Fri Nov 8 14:59:31 CET 2002


Reid,

Thanks that you took up the challenge of this serious puzzle (the issue
masked a bug in one of my functions under 1.5.1, which was unmasked when
changing
to 1.6.1, however the issue is still in 1.6.1).

You are getting close. Your example might be seen as inconsistent, but not
as DOUBLY inconsistent. And your example will not differ between R1.5.1 and
R1.6.1. 

What if I tell you, that in my example

> is.na(a2[b])
[1] FALSE

whereas yours

> a <- rep(1,10)
> b <- 11
> a2 <- a
> is.na(a2[b])
[1] TRUE

in other words, you tell R to replace non-existent element no. 11 by NA, and
dynamic extension makes <a> different from <a2>.
In my case <b> DOES NOT SELECT AN NON-EXISTENT ELEMENT OF <a> (resp. <a2>).

Any ideas?


Jens


BTW: Patrick, you guessed right: not a character a and numeric b

-- 



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list