Is there a way to transform this list into proper data.frame or DT ?

I perform GET() data from OpenFDA api. As a response, I get


response <- GET("[20180101+TO+20200922])+AND+AstraZeneca&limit=900")
content <- fromJSON(rawToChar(response$content))
res <- content$results
rawData <-, res)) 

Need your help to transform rawData into proper table, data.frame or DT format so I can select only the necessary columns.

Much appreciated

The content$results object is large and multi-layered, and difficult to work with in its current form. Try the openfda package.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.