[R] ignoring zeros or converting to NA
rcoder
mpdotbook at gmail.com
Tue Aug 12 19:43:49 CEST 2008
Hi everyone,
I have a matrix that has a combination of zeros and NAs. When I perform
certain calculations on the matrix, the zeros generate "Inf" values. Is
there a way to either convert the zeros in the matrix to NAs, or only
perform the calculations if not zero (i.e. like using something similar to
an !all(is.na() construct)?
Thanks,
rcoder
--
View this message in context: http://www.nabble.com/ignoring-zeros-or-converting-to-NA-tp18948979p18948979.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list