[R] How to aggregate combinations
Oritteropus
lucasantini85 at hotmail.com
Wed May 30 23:01:01 CEST 2012
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.
More information about the R-help
mailing list