title: How do I group my data by hour?
body: <p>I have read my data into R, where I am trying to group my data by hour with the code below:</p>
  
  <pre><code>tweets &lt;- read.csv("tweetCSV.csv", header = TRUE, sep = ",", stringsAsFactors = FALSE)
  
  tweets %&gt;%
  group_by(format(Time, "%H"), Word) %&gt;%
  summarise(count=n())
  </code></pre>
  
  <p>When I run this code I get an error (shown below) which I cannot get my head around: </p>
  
  <ul>
  <li>"Error in mutate_impl(.data, dots) : invalid 'trim' argument"</li>
  </ul>
  
  <p>I was wondering if anybody can help me overcome this problem?</p>
  
  <p>Thanks James</p>
  
  <p>Sample of the data-set is accessible via this link: <a href="https://docs.google.com/spreadsheets/d/1JhXEyzkjPs59hVgoS3lW7e0Fcumis62QDUvuMP2q5aQ/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google.com/spreadsheets/d/1JhXEyzkjPs59hVgoS3lW7e0Fcumis62QDUvuMP2q5aQ/edit?usp=sharing</a></p>