Skip to content
Back to formatted view

Raw Message

Message-ID: <26284855.post@talk.nabble.com>
Date: 2009-11-10T15:23:44Z
From: esterhazy
Subject: Comparison of vectors in a matrix

Hi,

I have a matrix with two columns, and the elements of the matrix are
vectors.

So for example, in line 3 of column 1 I have a vector v31=("marc", "robert,
"marie").

What I need to do is to compare all vectors in column 1 and 2, so as to get,
for example setdiff(v31,v32) into a new column.

Is there a way to do this in R?

Thanks!
-- 
View this message in context: http://old.nabble.com/Comparison-of-vectors-in-a-matrix-tp26284855p26284855.html
Sent from the R help mailing list archive at Nabble.com.