title: Skewness per row
body: <p>I have following data: </p>
  
  <pre><code>d1    &lt;- c(-10,2,3,4,5,6, NA, NA, NA);
  d2    &lt;- c(1,2,3,4,5,6,7, NA, NA); 
  d3    &lt;- c(1,2,3,4,5,6,700, 800, 900);
  d     &lt;- rbind(d1, d2, d3); d &lt;- data.matrix(d)
  </code></pre>
  
  <p>I would now like to measure the skewness of each row of d (or each participant). I know about the function skewness(x) of the moments package, however, there seems to be a problem. I tried following code: </p>
  
  <pre><code>for (i in 1:nrow(d)){
  skew[i] &lt;- as.numeric(skewness(d[i]))
  }
  </code></pre>
  
  <p>Do you have any idea what can be wrong? Thanks a lot! </p>