title: ezANOVA: 1) how to omit na data? 2) still getting error message after omitting na data?
body: <p>For my repeated measures analysis using <code>lme</code> function I could omit not-available (<code>na</code>) data with the command: <code>na.action=na.omit</code>.</p>
  
  <pre><code>anova_lme_loc&lt;-lme(data=rm1, fixed=Nmin~location*date, random=~1|subject,
                     na.action=na.omit)
  </code></pre>
  
  <p>However, when I try to do the same using the ezANOVA function I got the following notification:</p>
  
  <pre><code>anova_ez_loc=ezANOVA(data=rm1, dv=Nmin, wid=subject, within=date, 
                       between=location, na.action=na.omit)
  </code></pre>
  
  <blockquote>
    <p>Error in ezANOVA(data = rm1, dv = Nmin, wid = subject, within = date,  : 
      unused argument(s) (na.action = na.omit)</p>
  </blockquote>
  
  <p>how can I omit my na data in <code>ezANOVA</code>? - solved using: </p>
  
  <pre><code>rm1_na &lt;- na.omit(rm1)
  </code></pre>
  
  <p>but now I get the following error:</p>
  
  <blockquote>
    <p>anova_ez_loc=ezANOVA(data=rm1_na, dv=Nmin, wid=subject, within=date, between=location)</p>
    
    <p>Warning: Converting "subject" to factor for ANOVA.</p>
    
    <p>Warning: Data is unbalanced (unequal N per group). Make sure you specified a well-considered value for the type argument to ezANOVA().</p>
    
    <p>Error in ezANOVA_main(data = data, dv = dv, wid = wid, within = within,  : 
      One or more cells is missing data. Try using ezDesign() to check your data.</p>
  </blockquote>