[R] complex table

From: Michael Anyadike-Danes <M.Anyadike-Danes_at_erini.ac.uk>
Date: Fri 09 Dec 2005 - 08:18:17 EST


I have a data table with 712 cases (rows) describing young peopleís activities for 72 months each case has been classified into one of 5 clusters.

The first 72 columns are monthly activities coded 1 to 6 (e.g. school =1) and the 73rd column is the cluster number of the case.

I wish to summarise the distribution of monthly activities by cluster e.g for cluster 1: 6 months school; 24 further education; etc.

After looking through available resources my solution is quite complex involving Ė amongst other things a series of loops.

Iím sure there is a quicker and simpler way (manipulating table or xtabs) but I just canít see how to do it.

Any advice?

Michael Anyadike-Danes

        [[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 Received on Fri Dec 09 08:23:12 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:34 EST