I have a dataframe that contains lists as shown
dfg <- structure(list(a = list(c("BD", "AS", "MS",
"CMO")), b = list(list(width = 757.5, height = 500L))), row.names = "x1", class = "data.frame")
But I am unable to save this in csv fie
write.csv(dfg, "d.csv")
Error in write.table(dfg, "d.csv", col.names = NA, sep = ",", dec = ".", :
unimplemented type 'list' in 'EncodeElement'
Is there a way to save this?