my question is that , what is the best way or the right way to deal with NaN and NA and Inf to calculate mean in R:
change Inf to NA also and as
is.Na(NaN)isTRUEalso, simply use thena.rm= TRUEinmeanFunction orchange all to zero and then calculate the
meanfunction.
values that I want to calculate mean for are the values comes from measuring conductance and expansion for community detection algorithm as defined here
Thanks