>
<div id="array-variables" class="section level2">
<h2><span class="header-section-number">21.4</span> Array Variables</h2>
<p>For more than one dimension, the dump format uses a dimensionality
specification. For example, the following
defines a <span class="math inline">\(2 \times 3\)</span> array:</p>
<pre><code>y &lt;- structure(c(1,2,3,4,5,6), .Dim = c(2,3))</code></pre>
<p>Data is stored column-major, thus the values for <code>y</code> will be:</p>
<pre><code>y[1,1] = 1
y[1,2] = 3
y[1,3] = 5
y[2,1] = 