[R] Problems with statistics

2009-01-22 Thread odif
Hello, I have the following csv file n, n_red 1, 0 1, 1 2, 1 2, 1 3, 0 4, 1 4, 2 4, 3 I would like to plot this data. On the x-axis there should be n and on the y-axis the mean of all n_red where n is the according value on the x-axis. The plot

Re: [R] Problems with statistics

2009-01-22 Thread Mike Lawrence
n.means = with(my.data,aggregate(n_red,list(n=n),mean)) plot(n.means) On Thu, Jan 22, 2009 at 5:17 PM, o...@gmx.de wrote: Hello, I have the following csv file n, n_red 1, 0 1, 1 2, 1 2, 1 3, 0 4, 1 4, 2 4, 3 I would like to plot this

Re: [R] Problems with statistics

2009-01-22 Thread David Winsemius
And to do the input section of the task, you should first read an introductory text and then refer to the help pages: ?read.table ?read.csv # same page And don't forget: http://www.R-project.org/posting-guide.html -- David Winsemius On Jan 22, 2009, at 4:33 PM, Mike Lawrence wrote: