Re: [R] Make a table using data with frequency

2010-02-10 Thread Marc Schwartz
On Feb 10, 2010, at 2:02 PM, Soyeon Kim wrote: > Dear All, > > What I want is change following data >> data > alc status age freq > 1 0 0 0 408 > 2 1 0 0 64 > 3 0 1 0 26 > 4 1 1 0 30 > 5 0 0 1 258 > 6 1 0 1 45 > 7 0 1 1

[R] Make a table using data with frequency

2010-02-10 Thread Soyeon Kim
Dear All, What I want is change following data > data alc status age freq 1 0 0 0 408 2 1 0 0 64 3 0 1 0 26 4 1 1 0 30 5 0 0 1 258 6 1 0 1 45 7 0 1 1 78 8 1 1 1 66 To this table. age =0