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