Re: [R] Constructing a barplot in R

2009-03-05 Thread Rolf Turner
On 6/03/2009, at 12:03 PM, SIrEllwood wrote: Hi all, 3. The probabilities are 0.06, 0.21, 0.24, 0.18, 0.14, 0.10, 0.04, 0.02 and 0.01 that an airline will receive 0,1,2,3,4,5,6,7 or 8 complaints per day about its luggage.Find e(x) and e(x^2) Give the R commands you use and the two numer

[R] Constructing a barplot in R

2009-03-05 Thread SIrEllwood
Hi all, 3. The probabilities are 0.06, 0.21, 0.24, 0.18, 0.14, 0.10, 0.04, 0.02 and 0.01 that an airline will receive 0,1,2,3,4,5,6,7 or 8 complaints per day about its luggage.Find e(x) and e(x^2) Give the R commands you use and the two numerical values. Use the sample function to simulate co