Re: [R] Referring to matrix elements by name, iteratively

2012-10-16 Thread AHJ
You are right! But that was my bad, I was trying to simplify the part of the data I used in the example. The real data have exactly the same IDs as both rows and columns. Thanks for catching that. :) -- View this message in context:

Re: [R] Referring to matrix elements by name, iteratively

2012-10-16 Thread AHJ
Thank you both for the suggestion. So this means that when the vector is one of characters the string inside it is interpreted as itself, rather than as an index. That makes so much sense! Thanks again :) -- View this message in context:

[R] Referring to matrix elements by name, iteratively

2012-10-15 Thread AHJ
#Here is a vector of IDs cwaves [1]8690 185 196 197 209 210 215 216 217 218 #Here is a matrix. The rows and columns correspond to the IDs in cwaves, and the matrix is populated with a coefficient mat 86 90 185 196 209 210 215 216 217 218 86

[R] Transform pairwise observations into a table

2012-10-01 Thread AHJ
something other than frequencies to fill the table with, it would be what I need. I tried a few different combinations of t() and unique() but none of it made enough sense to post as my starting code... I am just lost. Any help would be greatly appreciated. Thank you, AHJ -- View this message