2
I averaged the following values:
MÉDIA = mean(c(12,20,15,0,7,0))
print(MÉDIA)
[1] "9"
But I need the average that doesn’t consider zeroes:
MÉDIA_Sem Zeros = mean(c(12,20,15,7))
print(MÉDIA_Sem Zeros)
[1] "13,5"
How can I calculate the mean with the condition excluding the variables of zero value?
Thank you for the answer I will test.
– Izak Mandrak