title: R- Apply a function with a range of variables in an argument
body: <p>I want to use a function, that requires a variable for one argument, using a range of values for that argument. Ideally I'd like to store all the resulting values from the function in a list.</p>
  
  <p>I have tried making a loop and assigning it to a function that passes the range of values to the function, but it is not working. As you can guess, my experience with R is very small.</p>
  
  <pre><code>MyfuncRange &lt;- function(t_range, var2, var3, var4, var5, var6){
    for (t in t_range)
  Myfunc(t, var2, var3, var4, var5, var6)
  }
  </code></pre>
  
  <p>I have tried looking for a way to do this, but I could only find ways to apply the same function for a range of data.</p>