'Importing CSV via API Stopped Working in R
I have some code that I have run multiple times successfully but today it randomly stopped working specifically its coercing a response from an API import into a data frame much like this:
results <- data.frame(httr::content(response))
Again this code worked before and other than some filtering of data I have not changed it.
The error I get is:
Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
cannot coerce class ‘c("xml_document", "xml_node")’ to a data.
I trying to fix it and figure out what happened.
I am at a loss here. Let me know if you need more info.
Thanks.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
