[R] Cannot clean infinite values

mayouf.k mayouf.k at gmail.com
Thu Aug 4 08:37:48 CEST 2011


hi everyone,

i had the same problem, i simply wrote:

       *ifelse(is.infinite(AALB),NA,AALB)*  

this code replace infinite values by NA's, then you can use "na.omit",
"replace", or even a zero, which is my case.

goog luck Nigel

--
View this message in context: http://r.789695.n4.nabble.com/Cannot-clean-infinite-values-tp885312p3717799.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list