title: R: Swap two variables without using a third
body: <p>I have two variables (i.e.):</p>
  
  <pre><code>   a &lt;- 1
     b &lt;- 2
  </code></pre>
  
  <p>and I would like to swap their values. Is there any built-in R function, that is able to perform that operation? Or is there an other elegant way, without using a third (temp) variable? </p>
  
  <p><strong>Note:</strong> If possible applicable on strings, or other datatypes.</p>