[R] calculating mean excluding zeros

Dimitri Liakhovitski dimitri.liakhovitski at gmail.com
Tue Jul 19 22:36:42 CEST 2011


Sorry if it's been discussed before - don't seem to find it.
I'd like to calculate a mean while ignoring zeros.
"mean" doesn't seem to have an option for that.
Any other function/package that could do it?

Thanks for a pointer!

-- 
Dimitri Liakhovitski
marketfusionanalytics.com



More information about the R-help mailing list