ctionality.</p>
<p>The run-length-encoded representation of a vector, represents the vector as a set of distinct runs with their own value. Let us take an example</p>
<pre class="r"><code>rl &lt;- Rle(c(1,1,1,1,2,2,3,3,2,2))
rl</code></pre>
<pre><code>## numeric-Rle of length 10 with 4 runs
##   Lengths: 4 2 2 2
##   Values : 1 2 3 2</code></pre>
<pre class="r"><code>runLength(rl)</code></pre>
<pre><code>## [1] 4 2 2 2</code></pre>
<pre class="r"><code>runValue(rl)</code></pre>
<pre><code>## [1] 1 2 3 2</co