Skip to content
Prev 245360 / 398506 Next

testing with if: what I am doing wrong?

On 18/12/2010 8:34 AM, Luca Meyer wrote:
You're using "if", which only looks at the first element (as the message 
said).  See ?ifelse for a conditional that applies to each vector entry.

Duncan Murdoch