title: In-place assignment in R without writing the variable name twice?
body: <p>I generally try to avoid code duplication, even in single rows. However, I find myself writing lines like this in R a lot:</p>
  
  <pre><code># R code
  my_long_vector_var_name &lt;- append(my_long_vector_var_name, new_var)
  my_long_int_name &lt;- my_long_int_name + 1
  </code></pre>
  
  <p>In Python, not only are there way less letters in a row - I also do not have to write the same variable twice, which potentially reduces errors:</p>
  
  <pre><code>my_long_vector_var_name.append(new_var)
  my_long_int_name += 1
  </code></pre>
  
  <p>For the second one, <a href="https://stackoverflow.com/questions/5738831/r-plus-equals-and-plus-plus-equivalent-from-c-c-java-etc">this question</a> indicates that there truely is no comparable "short" way in R. The question, however, is more than 6 years old. Is there still no better way to do this in R?</p>