[R] disaggregating table

From: Jeff Miller <jeffmiller_at_adsam.com>
Date: Sun 22 Oct 2006 - 21:38:41 GMT


Hi all,  

This should be easy, but I can't seem to figure it out.  

I have a table like this named newtable  

a1 a2 a3 a4 Cnts Score

1 1 0 0 4 3.28

1 0 1 1 2 2.63  

I want the following:  

a1 a2 a3 a4 Cnts Score

1 1 0 0 4 3.28

1 1 0 0 4 3.28

1 1 0 0 4 3.28

1 1 0 0 4 3.28

1 0 1 1 2 2.63

1 0 1 1 2 2.63  

Actually, the Cnts column could be removed, but it doesn't matter if it stays.  

Anyone know how to disaggregate with Cnts as the index?  

Thanks,

Jeff  

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon Oct 23 19:17:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 23 Oct 2006 - 10:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.