title: How to concatenate two arrays in R
body: <p>I have two arrays.</p>
  
  <p>Using <code>numpy.append</code> we can merge two arrays.</p>
  
  <p>How can we do same thing in R?</p>
  
  <p><code>merge</code> can not do that. </p>
  
  <p>Python Output/Example:</p>
  
  <pre><code>   a=np.array([1,2,3,4,5,5])
     b=np.array([0,0,0,0,0,0])
     np.append(a,b)
  
     array([1, 2, 3, 4, 5, 5, 0, 0, 0, 0, 0, 0])   # this is what I want
  </code></pre>
  
  <p><code>x&lt;-c(mat , (0.0) * (l - length(demeaned)))</code></p>
  
  <p><code>mat is matrix (size is 20)</code></p>
  
  <p><code>l - length(demeaned)</code> is 10 </p>
  
  <p>i want at the end 30 size</p>