Re: [R] Getting multiple tables when using table(dataframe) to tabulate data

2008-02-28 Thread Gabor Grothendieck
Try this: xtabs(count ~., data) Also look at ?ftable, ?prop.table, ?reshape and the reshape package. On Thu, Feb 28, 2008 at 8:22 PM, obradoa <[EMAIL PROTECTED]> wrote: > > I am having hard time tabulating data in a dataframe, and getting a single > "table" for an answer. I am trying to tabulate

Re: [R] Getting multiple tables when using table(dataframe) to tabulate data

2008-02-28 Thread jim holtman
Is this what you want? > tapply(x$count, list(x$delta_ts, x$status), sum) ASSIGNED CLOSED NEW RESOLVED 2008-02-212 NA 20 2008-02-220 0 61 2008-02-232 1 120 2008-02-247 4 162 2008-02-252