[R] Replacing string in matrix with zero
Rolf Turner
rolf.turner at xtra.co.nz
Thu Nov 15 05:10:08 CET 2012
On 15/11/12 11:13, Nick Duncan wrote:
> Dear All,
>
> I have a matrix in which the diagonal has the string "Inf" in it. In
> order to be able to do cluster analysis this needs to be replaced with
> a Zero.
I am very sceptical about this assertion. "Inf" means infinity
which is of course *NOT* the same as 0. By anyone's standards.
I know nothing about cluster analysis, so I may be toadally out
to lunch in this, but I suspect that you need to re-think.
cheers,
Rolf Turner
<SNIP>
More information about the R-help
mailing list