Re: [R] benchmark-dea

2016-06-19 Thread Jim Lemon
Hi farzana, You can't, because it doesn't fit into the definition of a CSV file. The "dea" function converts the nine element data frame "data1" into a list, the elements of which are of different lengths. Therefore, it can't be a data frame. Additionally, it can't be a matrix because its elements

Re: [R] benchmark-dea

2016-06-15 Thread Jim Lemon
Hi farzana, Probably the first thing is to ascertain what the class of "farzana" might be: class(farzana) Because "write.csv" expects "the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame." to be the first argument. It seems that "farzan

[R] benchmark-dea

2016-06-15 Thread farzana akbari
in the name of God hi dear I use benchmark package to use of dea and when I wanna save my result as csv by this as below write.csv(farzana,'D:sajjaad.csv') I can not and the error is as below Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) : c