[R] Cannot clean infinite values

Nigel Birney nan23 at cam.ac.uk
Mon Apr 27 02:44:55 CEST 2009


Hello all,

I have to import numeric data from file but found it contains Infinite
values which need to be eliminated. I tried to replace them in this way:

	data[which(data=="-Inf")] <- -0.3
	data[which(data=="+Inf")] <-  0.3

But, somehow, the Infinite values stayed there. Any suggestions?

regards,

N.
-- 
View this message in context: http://www.nabble.com/Cannot-clean-infinite-values-tp23248409p23248409.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list