Hi,
 
It turns out that the 'test' vector in ifelse(test, yes, no) is not
recycled if it is shorter than the other arguments, e.g.
 
> ifelse(TRUE, seq(10), -seq(10))
[1] 1

 
Is there any particular reason it is not recycled? If there is one
indeed a warning message might be in order when someone calls ifelse
with a shorter 'test'.
 
This is R1.8.1 on RH-7.3
 
Thanks,
Vadim

	[[alternative HTML version deleted]]


