[R] Re: R-help digest, Vol 1 #45 - 24 msgs

David Duffy davidD at qimr.edu.au
Tue Jan 14 22:47:03 CET 2003


Alexander.Herr at csiro.au asked:

> 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...

perhaps as.data.frame.table(table(spell,loc))

-- 
| David Duffy (MBBS PhD)                                         ,-_|\
| email: davidD at qimr.edu.au  ph: INT+61+7+3362-0217 fax: -0101  /     *
| Epidemiology Unit, Queensland Institute of Medical Research   \_,-._/
| 300 Herston Rd, Brisbane, Queensland 4029, Australia  GPG 4D0B994A v




More information about the R-help mailing list