Posts by Rumplestiltskin • 11 points
1 post
-
1
votes2
answers5601
viewsQ: How to calculate the average of a column in Rstudio but ignore the 0 values in the column?
example column 1 = 1 2 3 4 0 0 0 the normal average of this would give 1.428571 but ignoring the 0 would be 2.5, I would like to know how to do this, ignoring the values 0 of the column.