[R] Replacing string in matrix with zero

Nick Duncan nickdunc at gmail.com
Thu Nov 15 10:27:57 CET 2012


Dear Rolf,
You are of course quite right, however I wish the diagonal to be
ignored by setting the value to zero. The inf was just recognising the
flow value from self to self.
A very fair point though.
Best,
Nick

On 15 November 2012 04:10, Rolf Turner <rolf.turner at xtra.co.nz> wrote:
> 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>



-- 
An Englishman, even if he is alone,
forms an orderly queue of one.
--George Mikes




More information about the R-help mailing list