title: R - using "next" statement in apply function
body: <p>It looks like the <code>next</code> statement (used to stop the current evaluation and go to the next iteration of a for-loop) doesn't work inside an <code>apply</code> function.</p>
  
  <p>Example: <code>lapply(1:10, function(x) if (x == 5) {next} else {print(x)})</code></p>
  
  <p>Any convenient substitution for <code>next</code> in <code>apply</code>?</p>