title: How can I sum a single column but only a certain number of rows in a dataset in R studio
body: <pre><code>load('xyz')
  a &lt;-colSums(xyz)[1]
  </code></pre>
  
  <p>I know this would sum the entire column but how can I limit the number of cells (rows) it can sum up?</p>