[R] matrix to list - problem solved
Thanks to all who replied to this question. Jorge's script worked a treat. Hi, can someone please tell me how to convert a square matrix to a list in R? i.e. I want to convert from: a b c a 1 1 1 b 2 2 2 c 3 3 3 to: a
[R] matrix to list
Hi, can someone please tell me how to convert a square matrix to a list in R? i.e. I want to convert from: a b c a 1 1 1 b 2 2 2 c 3 3 3 to: a a 1 a b 1 a c 1 b a 2 b