[R] summarizing dataframe

About this list Date view Thread view Subject view Author view Attachment view

From: Alexander.Herr@csiro.au
Date: Mon 13 Jan 2003 - 15:22:23 EST


Message-id: <2FE6D3D02CCDD211B80600902745F56C018D1204@exchange-tv.tvl.qld.csiro.au>

Hi Listers,

Surely, I just have a mental block and there is a more elegant way of
creating a summary count (other than extracing it from ftable). I'd like to
create a new data.frame containing counts of spell by loc ie have three
columns showing spell,loc,count. Below the data.frame...

Any help appreciated
Thanks Herry

      spell loc
101 Parts 1
102 Overall 2
105 Parts 1
106 None 1
111 None 1
116 Parts 1
118 None 1
119 Overall 4
123 Overall 1
125 Parts 1
126 Overall 1
127 Parts 1
128 Overall 1
134 Overall 1
138 Overall 2
139 Overall 1
142 Overall 1
191 Parts 1
192 Parts 2
193 Parts 2
204 Parts 2
205 None 1
207 Parts 2
208 Overall 2
210 Overall 2
211 Parts 1
212 Parts 2
215 Overall 2
218 Overall 2
220 Overall 2
221 Overall 2
222 Parts 2
223 Overall 2
224 Overall 2
225 Overall 2
226 Parts 2
228 Overall 2
232 Parts 2
236 Overall 2
238 Parts 2
302 None 1
304 Parts 3
306 Overall 3
309 Parts 4
310 Parts 3
311 Overall 3
312 Overall 3
314 Parts 3
317 None 3
319 Parts 3
320 Overall 3
321 Overall 3
322 Overall 3

--------------------------------------------
Alexander Herr - Herry

        [[alternate HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:19 EST