[R] SUMMARY how to use if statement in function correctly

Petr Pikal petr.pikal at precheza.cz
Thu Sep 19 14:57:08 CEST 2002


Thanks to all for prompt responses (all of them same or similar). 

The difference is between vectorised 
ifelse() form
and non vectorised
if() form of statement.

Therefore the problem was on my improper usage if instead of 
ifelse.

Thanks again
Petr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz


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