Skip to content
Prev 150576 / 398500 Next

manipulate a matrix2

The vegan matrix produces values of similarity between sample sites.
Because the matrix uses the same samples for the row names and the
column header it has duplicates on either side of the base diagonal
(below).

	3	7	8	11	12
3	0	0.6	1	0.3	0.85
7	0.66	0	1	0.65	0.95
8	1	1	0	1	1
11	0.3	0.65	1	0	0.9
12	0.85	0.95	1	0.9	0

Ideally, the matrix should look like;

	3	7	8	11	12
3	0	
7	0.66	0	
8	1	1	0	
11	0.3	0.65	1	0	
12	0.85	0.95	1	0.9	0

This is probably a question for the Vegan developers, but I really
appreciate your (and the lists) insight.

-----Original Message-----
From: jim holtman [mailto:jholtman at gmail.com] 
Sent: Monday, July 21, 2008 9:18 AM
To: Jon Hak
Cc: r-help at r-project.org
Subject: Re: [R] manipulate a matrix2

I am not familiar with the vegdist function.  What defines a duplicate
in the matrix?  There are ways if identifying if more than one row
meets the criteria duplicates and then removing them.  Can you give an
illustration of what you mean with a before/after data representation.

On Mon, Jul 21, 2008 at 10:22 AM, Jon Hak <Jon_Hak at natureserve.org>
wrote:
x6k
<mailto:jholtman_at_gmail.com?Subject=Re:%20%5BR%5D%20manipulate%20a%20m
<http://tolstoy.newcastle.edu.au/R/e2/help/07/06/19875.html#19887qlink1>
extract