Re: [R] constructing nxn matrices involving calculations conditions based on other tables

2011-05-31 Thread Luma r
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 jab...@gmail.com wrote: Hi Luisa, it was really difficult to manage to understand what

[R] constructing nxn matrices involving calculations conditions based on other tables

2011-05-29 Thread Luma R
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

[R] trouble with summary tables with several variables using aggregate function

2011-05-19 Thread Luma R
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

Re: [R] trouble with summary tables with several variables using aggregate function

2011-05-19 Thread Luma R
(dtable, Var1 + Var2 ~ Var3) Using Freq as value column: use value_var to override. Var1 Var2 D I 1 S1 T1 2 2 2 S1 T2 2 2 3 S2 T1 2 2 4 S2 T2 0 4 HTH, Dennis On Thu, May 19, 2011 at 2:13 AM, Luma R rluma1...@gmail.com wrote: Dear all, I am having trouble