title: Column of original data is returning length as 0 in R
body: <p>I am working in R studio and trying to create a table. The error I keep getting is "Error in table(players, fitmod1$classification) : all arguments must have the same length". When I check the length of my data, fitmod1$classification is returning a value; but players is returning 0. I have no idea how to fix this. </p>
  
  <p>Player's is a qualitative column of the Hitters data in R package ISLR. fitmod1 is a mclust model. I am attaching my code below so hopefully that helps! Thanks<img src="https://i.stack.imgur.com/zxoy0.png" alt="![enter image description here">]<a href="https://i.stack.imgur.com/zxoy0.png" rel="nofollow noreferrer">1</a></p>
  
  <p><a href="https://i.stack.imgur.com/FGBjo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FGBjo.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/dwQ7c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dwQ7c.png" alt="enter image description here"></a></p>