title: Sum Elements of a List in R - For
body: <p>I have a list (mylist) of 110 items.</p>
  
  <pre><code>length(mylist)
  
  #[1] 110
  </code></pre>
  
  <p>The elements within the lists are descriptions.
  I'm trying sum the elements of the entire list (basically counting the words in each description). </p>
  
  <p>This provides a total for the first element.</p>
  
  <pre><code>length(mylist[[1]]) 
  
  #[1] 162
  </code></pre>
  
  <p>Instead of repeating that 110 times, what is the best way to sum all 110 elements? Would a <code>for</code> statement work?
  Thanks.</p>