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)
isTRUE
also, simply use thena.rm= TRUE
inmean
Function orchange all to zero and then calculate the
mean
function.
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