I have a dataframe which was scraped from JSCON.
store <- fromJSON(txt='https://openapi.etsy.com/v2/shops/epuu/listings/active?api_key=Redacted')
store_json <- as.data.frame(store$results)
However, when I go to export the dataframe store_json it produces an error
Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol, :
unimplemented type 'list' in 'EncodeElement'
Now I understand that this is because there is a list within the data.frame. When I inspected the vector I found there were lists, with elements such as c("Jewelry", "Earrings", "Dangle & Drop Earrings"). When I try and use unlist(vector) it does not work. Would gsub work? Perhaps the paste function then remove the c()? I have tried tostring and although the vector does become a character when I export as a csv it does not work correctly.