Thanks Marco,
sorry if my explanation was not the best, but your code did the trick.
I managed to adjust the code to get exactly what I wanted.
Thank you!
Luisa
On Mon, May 30, 2011 at 4:20 PM, Jabba wrote:
> Hi Luisa,
>
> it was really difficult to manage to understand what you need. Assum
Dear R-users,
I am having trouble constructing nxn matrices involving calculations&
conditions based on other tables.
Below I describe a simple example of what I am trying to do:
Given the Table A (n x m):
Species1
Species2
X
A1,1
A1,2
Y
A2,1
A2,2
Z
A3,1
A3,2
I want to crea
>
> > An alternative to the reshape() function is the reshape2 package,
> > which has a function dcast() that allows you to rearrange the data
> > frame as you desire.
> >
> > library(reshape2)
> > dcast(dtable, Var1 + Var2 ~ Var3)
> > Using Freq as value colu
Dear all,
I am having trouble creating summary tables using aggregate function.
given the following table:
Var1 Var2Var3 dummy
S1 T1 I 1
S1 T1 I 1
S1 T1 D1
S1 T1 D1
S1 T2 I 1
S1
4 matches
Mail list logo