an class="va">top_three</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/as.data.frame.html" class="external-link">as.data.frame</a></span><span class="op">(</span><span class="va">top_three</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="co"># "top_three" is now a data frame of the top three companies as columns.</span></span></span>
<span class="r-in"><span><span class="co"># Each column represents a vector (rows) which is the length