[R] Error with write.table
Erik Iverson
eriki at ccbr.umn.edu
Tue Feb 2 19:29:32 CET 2010
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 command works for some data frames, but for other data frames, I get the
> following error:
>
> Error in if (inherits(X[[j]], "data.frame") && ncol(xj) > 1L) X[[j]] <-
> as.matrix(X[[j]]) :
> missing value where TRUE/FALSE needed
>
>
> Is there something I'm doing wrong in trying to save the data frame to a
> .csv file?
>
> Many thanks in advance!
>
> John Woodard
>
More information about the R-help
mailing list