Re: [R] Questions on counts by case

2007-02-06 Thread jim holtman
On 2/6/07, Serguei Kaniovski <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > for the data below I would like to > > 1. generate a dummy variable for each group "gr" of the same composition by > people, then save each portion in a separate file, This gives back a list that you can go through and writ

[R] Questions on counts by case

2007-02-06 Thread Serguei Kaniovski
Hi all, for the data below I would like to 1. generate a dummy variable for each group "gr" of the same composition by people, then save each portion in a separate file, 2. compute the frequency of "1"'s in "x" for each person by group "gr". So, "mike" will have freq=2/3, as he has two "1" an