title: Using outer() with a multivariable function
body: <p>Suppose you have a function <code>f&lt;- function(x,y,z) { ... }</code>. How would you go about passing a constant to one argument, but letting the other ones vary? In other words, I would like to do something like this:</p>
  
  <pre><code> output &lt;- outer(x,y,f(x,y,z=2)) 
  </code></pre>
  
  <p>This code doesn't evaluate, but is there a way to do this?</p>