Re: [R] Error with write.table

2010-02-21 Thread Peter Ehlers
On 2010-02-21 15:06, jmgray wrote: I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The command works for some data frames, but for other data frames, I get the following error: Error in if (inherits

Re: [R] Error with write.table

2010-02-21 Thread jmgray
> I was trying to save a data frame to an excel file using the following > command: > > write.table(myData, file="myData.csv",sep=",", row.names=F) > > The command works for some data frames, but for other data frames, I get > the > following error: > > Error in if (inherits(X[[j]], "data.frame")

Re: [R] Error with write.table

2010-02-02 Thread Peter Ehlers
jlwoodard wrote: I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The command works for some data frames, but for other data frames, I get the following error: Error in if (inherits(X[[j]], "data.frame")

Re: [R] Error with write.table

2010-02-02 Thread Erik Iverson
How about a MINIMAL example of a data.frame that produces the error message you see? That will help track down what's going on... jlwoodard wrote: I was trying to save a data frame to an excel file using the following command: write.table(myData, file="myData.csv",sep=",", row.names=F) The co