title: How to fix 'Error in if (nchar(text.matrix[r, c]) > max.length[real.c]) { : missing value where TRUE/FALSE needed' using stargazer in rstudio?
body: <p>I'm trying to print a table of combined lm's in Rstudio using Stargazer and I keep getting this message:</p>
  
  <blockquote>
    <p>Error in if (nchar(text.matrix[r, c]) > max.length[real.c]) { :
    missing value where TRUE/FALSE needed</p>
  </blockquote>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>stargazer(lm_1, lm_2, lm_3, lm_4, 
            dep.var.labels =  c("PolOri_Social_std", "Sexual_Disgust_std"), 
            covariate.labels = c("Gender", "Sexual_Disgust_std"), 
            style = "demography", 
            out = "hierarchical.htm",
            header = F)
  </code></pre>
  
  <p>Has anyone encountered this before?</p>