title: pair t test Error in complete.cases(x, y) : not all arguments have the same length
body: <p>Sorry I'm asking silly question...</p>
  
  <p>I have a simple dataset and want to do paired T.test, because the measurements are from same subjects</p>
  
  <p>heres my code:</p>
  
  <p><code>t.test(Diarrhea ~ Max_by_90_H2SPos_12, data = noch4, paired=T)</code><br>
  and it gives me error:
  <code>Error in complete.cases(x, y) : not all arguments have the same length</code></p>
  
  <p>There is no missing value in these 2 variables, I don't understand. 
  Here's my data look like:
  <code>table(noch4$Max_by_90_H2SPos_12)
  0   1 
  180  57</code></p>
  
  <p><code>str(noch4$Diarrhea)
   num [1:237] 27 60 44 1 43 28 57 11 2 58 ...
  str(noch4$Max_by_90_H2SPos_12)
   num [1:237] 0 0 0 0 0 0 0 0 0 0 ...</code></p>
  
  <p>Thank you for any help.</p>