title: Error in as.vector(x, mode) : cannot coerce type 'closure' to vector of type 'any'
body: <p>I'm doing some practice on broom package in R.</p>
  
  <p>I ran the following </p>
  
  <pre><code>kclusts &lt;- data.frame(k=1:9) %&gt;% group_by(k) %&gt;% do(fit=kmeans(data.frame, .$k))
  </code></pre>
  
  <p>I have received the following error</p>
  
  <p><code>Error in as.vector(x, mode) : cannot coerce type 'closure' to vector of type 'any'</code></p>
  
  <p>I was wondering whether I'm missing something in my string.</p>
  
  <p>Hope you can help me out.</p>
  
  <p>Juan</p>