[R] What am I doing wrong with this loop ?

eric ericstrom at aol.com
Fri Mar 4 03:21:20 CET 2011


Bill, I addressed the first issue with the data frames and length(x). But my
loops still isn't working. More importantly, you commented that I should be
using if(...) ... else ... rather than ifelse(.,.,).

Please help me understand the difference. I thought ifelse was just a faster
way of doing if(...)...else(.,.,).

What is the difference between these two methods ?

--
View this message in context: http://r.789695.n4.nabble.com/What-am-I-doing-wrong-with-this-loop-tp3332703p3334591.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list