es"><a class="anchor" href="#examples"></a>Examples</h2>
    <pre class="examples"><div class='input'><span class='no'>x</span> <span class='kw'>&lt;-</span> <span class='fu'>matrix</span>(<span class='fl'>1</span>:<span class='fl'>4</span>, <span class='kw'>ncol</span> <span class='kw'>=</span> <span class='fl'>2</span>)
<span class='fu'>colnames</span>(<span class='no'>x</span>) <span class='kw'>&lt;-</span> <span class='fu'>c</span>(<span class='st'>"first"</span>, <span class='st'>"second"</span>)
<span