title: vegan package cca error: rowsum(X) must be >0: missing value where TRUE/FALSE needed
body: <p>I am trying to run a Canonical Correspondence Analysis on diet composition data (prey.counts) with respect to a suite of environmental variables (envvar). Every row and every column sums to greater than 0, but I keep getting this error message:</p>
  
  <pre><code>diet &lt;- cca(prey.counts, envvar$SL + envvar$Month + envvar$water.temp + 
              envvar$salinity + envvar$DO)
  
  Error in if (any(rowSums(X) &lt;= 0)) stop("All row sums must be &gt;0 in the community data matrix") : 
    missing value where TRUE/FALSE needed
  </code></pre>
  
  <p>I have double and triple checked the prey.counts dataframe for NAs or empty columns/rows and none of them sum to zero or are missing values. R, RStudio, and all packages are fully up to date. Any help would be appreciated!</p>
  
  <p>Meredith</p>