title: R - Extend a multi-dimensional array
body: <p>I have a multidimensional array S:</p>
  
  <pre><code>&gt; dim(S)
  [1] 45 81  3 52
  </code></pre>
  
  <p>I would like to add one column in the third dimension to have:</p>
  
  <pre><code>&gt; dim(S)
  [1] 45 81  **4** 52
  </code></pre>
  
  <p>and preserve all the current data in S where they are.</p>