В Mon, 20 Jan 2025 13:45:25 +0000
"Huseni, Sadamhusen" <sadamhusen.hus...@genpact.com> пишет:

> Error in as.data.frame.default(x[[i]], optional = TRUE) :
>   cannot coerce class ‘"call"’ to a data.frame
> Calls: write.table ... data.frame -> as.data.frame ->
> as.data.frame.default

The underlying issue is that somehow the code gave a function call
instead of a data.frame or a matrix as an argument to write.table:

write.table(quote(any_function()))

It may help to run the script with options(error = recover) set or make
use of other debugging tips in the free book R Inferno
<https://www.burns-stat.com/documents/books/the-r-inferno/> to find out
how that happened.

-- 
Best regards,
Ivan

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to