Hi all,

I have a csv matrix "KT.csv" and it has Inf and NA

I want to calculate the mean of each row so I use

rowMeans(KT,na.rm = TRUE) but with this Inf cannot be omminted.

I´m trying to use before running rowMeans(KT,na.rm = TRUE)

KT<-range(KT,finite=TRUE)

but it doesn´t works...

Do you know a simple way to ommit Inf en the calculations?

Many thanks.

I have tried also to replace Inf by NA bt also I dind´n t get it....

I feel....like a mule...
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to