title: Error in rowMeans(results, na.rm = T) : 'x' must be an array of at least two dimensions
body: <p>I am trying to follow an example of some R code from <a href="http://www2.hawaii.edu/~lgarmire/RNASeqPowerCalculator.htm" rel="nofollow">this site</a>, but am getting the error as seen below.         </p>
  
  <pre><code>&gt;Results = RS_simulation(sims=5, params=params, budget=3000, designtype = "one factor", nmax = 20, nmin = 5, program="DESeq")
      [1] "DESeq"
  &gt; plot(rownames(results),rowMeans(results, na.rm=T), main="DESeq simulations on Bottomly Dataset", xlab = "number of replicates", ylab = "Power")
      Error in rowMeans(results, na.rm = T) : 
        'x' must be an array of at least two dimensions
  </code></pre>
  
  <p>I have tried this command as well, but get this:</p>
  
  <pre><code>&gt; plot(rownames(results),rowMeans(results[, na.rm=T, drop=FALSE]), main="DESeq simulations on Bottomly Dataset", xlab = "number of replicates", ylab = "Power", drop=FALSE)
  Error in results[, na.rm = T, drop = FALSE] : 
    object of type 'closure' is not subsettable
  </code></pre>
  
  <p>Any help with this? Always trying to get better at R</p>