Skip to content
Prev 70758 / 398503 Next

A suggestion to improve ifelse behaviour with vector yes/no arguments

Thomas Lumley wrote:
I would vote for the error message.  I can't think of a single example 
where a vector of length 7 is needed, and a vector of length 4 is 
recycled to give it, that *doesn't* give a slightly weird result.

Maybe this is something that should have been changed in R 2.0.0; we 
squandered that change from 1.x.x to 2.x.x.

Duncan Murdoch