an class="r-pr">#&gt;</span> [1] TRUE</span>
<span class="r-in"><span><span class="va">scores.test3</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/predict.html" class="external-link">predict</a></span><span class="op">(</span><span class="va">pca</span>, <span class="va">X</span><span class="op">[</span><span class="op">-</span><span class="va">ind</span>, <span class="op">]</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu"><a hre