I have a data frame with some entries as lists. This was an import from a JSON file, where an entry might have multiple tags. It imported JSON file using jsonlite
package with flatten=TRUE
. An example entry from my tags column is:
list(tag = c("ethicaltheory", "gametheory"), raw_tag = c("ethical heory", "Game Theory"))
I filtered the table down and want to export it to a csv. When I tried the write.csv
command, I hit an error when it hit the first entry with list
:
"unimplemented type 'list' in 'EncodeElement'"
The question is can I export this file as is, did I make a mistake in importing it?
I'd be fine with converting entries to strings or something, but I'm not sure how to do that for the entire table.