Re: [R] Exporting aggregate summary

2014-01-28 Thread Rui Barradas
Hello, Your data.frame doesn't have a 'state' column: aggregate(latency~participant+condition+state, data=data, FUN=mean) Error in eval(expr, envir, enclos) : object 'state' not found Anyway, you can use ?write.csv to write the result to a csv file, and open it in excel, or use one of the R pa

Re: [R] Exporting aggregate summary

2014-01-28 Thread John Kane
om: skagandboneg...@hotmail.com > Sent: Tue, 28 Jan 2014 15:58:09 + > To: r-help@r-project.org > Subject: [R] Exporting aggregate summary > > Hi All, > > I am trying to manipulate my data in R. I have used the following code > [aggregate(latency~participant+condit

[R] Exporting aggregate summary

2014-01-28 Thread Laura Thomas
Hi All, I am trying to manipulate my data in R. I have used the following code [aggregate(latency~participant+condition+state, data=data, FUN=mean)] which produces a summary of the variable I am interested in. However, I need to export the crated variable into excel. Can anyone help with this p