[R] advanced dist

Martin Klaffenboeck martin.klaffenboeck at gmx.at
Wed Jun 2 19:05:29 CEST 2004


Am 02.06.2004 10:13:49 schrieb(en) Peter Wolf:

> what about:
> 
> >  mtdist<- as.matrix(dist(Fbg['Test']))
>    dimnames(mtdist) <- list( Fbg[ 'Family' ], Fbg[ 'Family' ] )
>    mtdist [ Fbg['Code']=="m" ,Fbg['Code']=="t" ]

Thanks, thats really what I want.  I hope I can do that by myself,  
soon.

Martin




More information about the R-help mailing list