Re: [R] aggregate by column names

2010-02-18 Thread Henrique Dallazuanna
Try this: xtabs(V5 ~ V1 + V6, data = DF) On Thu, Feb 18, 2010 at 1:50 PM, Alfredo Alessandrini wrote: > Hi, > > I've this dataframe: > >                 V1     V5 V6 > 1   MOD13Q1_249 0.1723 A1 > 2   MOD13Q1_249 0.1824 B1 > 3   MOD13Q1_249 0.1824 C1 > 4   MOD13Q1_249 0.1774 A2 >

[R] aggregate by column names

2010-02-18 Thread Alfredo Alessandrini
Hi, I've this dataframe: V1 V5 V6 1 MOD13Q1_249 0.1723 A1 2 MOD13Q1_249 0.1824 B1 3 MOD13Q1_249 0.1824 C1 4 MOD13Q1_249 0.1774 A2 5 MOD13Q1_249 0.1953 B2 6 MOD13Q1_249 0.1824 C2 7 MOD13Q1_265 0.1921 A1 8 MOD13Q1_265 0.1938 B1 9