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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.