title: Passing variable to left hand side
body: <p>In R, is there a way to pass the variable to the left hand side. For example</p>
  <pre><code>&gt; x1 &lt;- &quot;yearly&quot;
  &gt; paste0(x1,&quot;_abs_sam&quot;) &lt;- 2 
  </code></pre>
  <blockquote>
  <p>Error in paste0(x1, &quot;_abs_sam&quot;) &lt;- 2 : could not find function
  &quot;paste0&lt;-&quot;</p>
  </blockquote>
  <p>Expected output</p>
  <pre><code>yearly_abs_sam
  2
  </code></pre>
  <p>So basically, I am passing x1 to create a variable here so instead of creating like</p>
  <pre><code>yearly_abs_sam &lt;- 2 
  </code></pre>