title: Vector parameters in functions
body: <p>I need to define t be a 3d vector of repeated elements dependent on user input m i.e. t=c(m, m, m) and then use it the function:</p>
  
  <pre><code>b &lt;- c(0.5,0.2,1)  
  fn &lt;- function(m) { sum(t-b) }
  </code></pre>
  
  <p>Is there a way for me to tell R that t is a 3d repeated vector with elements m?</p>