That probably means that you have some list columns in your data which cannot be exported to csv. You can collapse the list column to one comma-separated string before writing it to csv.
If the list column is called col
you can do :
gwlevel_spread$col <- sapply(gwlevel_spread$col, toString)
If you don't know which column is list or have many columns that are of list class in your data you can use condition in lapply
gwlevel_spread[] <- lapply(gwlevel_spread, function(x)
if('list' %in% class(x)) sapply(x, toString) else x)
and then write to csv using write.table
or write.csv
:
write.table(gwlevel_spread, file = "c:/BOB/r/export/zz_jnk.csv")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…