Re: [R] How to manipulate tables

2009-12-26 Thread David Winsemius
On Dec 26, 2009, at 4:56 PM, James Rome wrote: Thanks David. I wanted to calculate the Poisson distribution from my histograms to see how closely they match it. So the formula is something like pprob=((lambda**cnts)/factorial(cnts))*exp(lambda) (Please don't reply privately.) You have tw

Re: [R] How to manipulate tables

2009-12-26 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of James Rome > Sent: Saturday, December 26, 2009 11:03 AM > To: r-help@r-project.org > Subject: [R] How to manipulate tables > > I am sorry to be bo

Re: [R] How to manipulate tables

2009-12-26 Thread David Winsemius
On Dec 26, 2009, at 2:02 PM, James Rome wrote: I am sorry to be bothering the list so much. I made a table of counts of flight arrivals by hour: No, you made a list of tables, which is different. cnts=tapply(Arrival4,list(Hour),table). There are up to 15 arrivals in a bin. Why not work

[R] How to manipulate tables

2009-12-26 Thread James Rome
I am sorry to be bothering the list so much. I made a table of counts of flight arrivals by hour: cnts=tapply(Arrival4,list(Hour),table). There are up to 15 arrivals in a bin. > cnts $`0` 1 2 3 4 5 6 7 8 9 10 13 1 2 5 9 2 7 5 4 2 4 1 $`1` 1 2 3 4 3 2 2 1 $`2` 1 3 2 2 . .