Original Question:
I have a list {{a, 1}, {b, 3}, {c, 1}, {d, 2}, {e, 3}}. I want to be able to group the the first number in each pair that has the same second number in the pair. So i would get a list like
{{a,c},d,{b,e}} so
{a,c} is from {a,1} and {c,1}
d is from {d,2}
{b,e} is from {b,3} and {e,3}
GroupBy, otherwiseGatherBydocumentation. – Kuba Jun 17 '16 at 07:12DeleteCases[0] /@ Transpose[matrix].) – Michael E2 Jun 20 '16 at 12:50Transpose[matrix] /. 0 -> Nothing– m_goldberg Jun 20 '16 at 14:09