title: R apply function with multiple parameters
body: <p>I have a function <code>f(var1, var2)</code> in R. Suppose we set <code>var2 = 1</code> and now I want to apply the function <code>f()</code> to the list <code>L</code>. Basically I want to get a new list L* with the outputs </p>
  
  <pre><code>[f(L[1],1),f(L[2],1),...,f(L[n],1)]
  </code></pre>
  
  <p>How do I do this with either <code>apply</code>, <code>mapply</code> or <code>lapply</code>? </p>