[R] adding group totals to a table

2007-12-10 Thread christopher snow
I have a table with two columns: A 1 A 1 A 2 B 2 C 0 I would like to produce a third column that contains the counts of each unique combination of col1 and col2: A 1 2 A 1 2 A 2 1 B 2 1 C 0 1 How can I do this in R? Thanks in advance ... -- This message has been sc

Re: [R] relationship between two factors

2007-12-08 Thread christopher snow
Thanks to everyone for their answers. What a helpful community! christopher snow wrote: > I have a dataset with two variables that are factors: > > 1) Decision Making Satisfaction (DMS), values = A - Completely, B - > Mostly, C - Partly, D - Not at all > 2) IT Satisfaction value

[R] relationship between two factors

2007-12-06 Thread christopher snow
I have a dataset with two variables that are factors: 1) Decision Making Satisfaction (DMS), values = A - Completely, B - Mostly, C - Partly, D - Not at all 2) IT Satisfaction values (ITS), values = A - Completely, B - Mostly, C - Partly, D - Not at all I would like to produce a table (matrix)