Skip to content
Prev 22348 / 398502 Next

I know this is wrong, but why?

On 2 Aug 2002, Stuart Luppescu wrote:

            
<snip>
Because if() isn't vectorised.  Eg
[1] "a"

Only the first element is used.

I would have thought there was a good case for a warning here, and I
remember seeing one in the past (though it may have been in S-PLUS 3.x in
the pre-R past).

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._