Does anyone know how to neatly average across item ID for multiple topics? Say I have five to fifteen responses (& I won't know how many unless I check them) for ID1-ID100, for which I want averages across six dimensions – how do I do that?
I have looked at rowMeans()
and colMeans()
and I’m sure one of those could easily solve this, but practically I somehow don’t get it.
Here is an example of what I mean (i.e., this is what I have):
Item ID | Taste | Colour |
---|---|---|
ID1 | 4 | 3 |
ID1 | 4 | 3 |
ID1 | 2 | 2 |
ID1 | 4 | 3 |
ID2 | 3 | 2 |
ID2 | 3 | 4 |
ID2 | 2 | 3 |
ID3 | 4 | 2 |
ID3 | 3 | 2 |
ID3 | 4 | 3 |
ID3 | 3 | 4 |
And this is what I want:
Item ID | Taste | Colour |
---|---|---|
ID1 | 3.5 | 2.75 |
ID2 | 2.67 | 3 |
ID3 | 3.5 | 2.75 |
(I'm sorry that the second table isn't showing properly when published, it works fine in the draft)