Skip to content
Back to formatted view

Raw Message

Message-ID: <1338411661607-4631867.post@n4.nabble.com>
Date: 2012-05-30T21:01:01Z
From: Oritteropus
Subject: How to aggregate combinations

Hi all, 
Given a table like the one below, I want to get a number of vectors equal to
the groups of connected ID (ID are considered connected if they are in the
same row). Each vector should contains all the connected ID . 

e.g. In this case: vect1  (1,2,3)         vect2  (5,6)     vect3 (7,8,9)

ID ID2 
1    2 
1    3 
2    3 
6    5 
7    8
8    9

Does someone know how to do it automatically for tables with thousands of
rows?
Thanks a lot

--
View this message in context: http://r.789695.n4.nabble.com/How-to-aggregate-combinations-tp4631867.html
Sent from the R help mailing list archive at Nabble.com.