title: How can I calculate the means of rows while excluding the zero values from rows in data frame
body: <p>I am trying to calculate the mean of each row in my data frame. There are zeros in each row and I want to exclude these from calculation. I do not want to remove the entire row but only the zeros and calculate the mean of remaing values in each row. If row has all zero values than result should be Zero. </p>