title: Difference between | and || in R
body: <p>I am a big newbie I must confess but I do not understand the difference between those two operators. I read the following, but I have trouble getting it:</p>
  
  <p>"The shorter form performs elementwise comparisons in much the same way as arithmetic operators. The longer form evaluates left to right examining only the first element of each vector. Evaluation proceeds only until the result is determined. The longer form is appropriate for programming control-flow and typically preferred in if clauses."</p>
  
  <p>Why is the second form more appropriate ?</p>