title: Passing Vectors as Arguments in functions R
body: <p>I would like to pass vectors as arguments in functions on R. </p>
  
  <p>I want the function to have two Input vectors and output vector name.</p>
  
  <p>Something like </p>
  
  <pre><code>ExampleFunction &lt; - function(c(1,2),c(3,4),unionvector)
  {
  A&lt;- firstvector
  B&lt;- SecondVector
  unionvector &lt;- A union B Vector
  }
  </code></pre>
  
  <p>The result I want it to be like :-  1 2 inside the A vector 3 4 inside the B Vector &amp; 1 2 3 4  inside the unionvector</p>
  
  <p>I am not able to pass the Input vectors inside the arguments and can't get the ExampleFunction working.</p>