I'm new to R, but have had some initial success grabbing data (gwlevel) and then using the "spread function" to put into a spread table (gwlevel_spread).
My problem is that I can easily export the "gwlevel" table, as follows:
write.table(gwlevel, file = "c:/BOB/r/export/zz_jnk.csv")
However, I keep getting an error when I try to export the "gwlevel_spread" file, as follows:
write.table(gwlevel_spread,"c:/BOB/r/export/zz_jnk.csv",sep=",") Error in write.table(gwlevel_spread, "c:/BOB/r/export/zz_jnk.csv", sep = ",") : unimplemented type 'list' in 'EncodeElement'
(1) Can anybody tell me the reason? (2) Or is there a better way I should be doing it?
question from:https://stackoverflow.com/questions/65855699/exporting-an-r-spread-table