I am learning R and I wanted to download earthquake data provided by the USGS to explore it with R. This is how I downloaded the data:
>USGSdata<-fromJSON("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojsonp")
But if I do the following to get the attributes of the file:
> names(USGSdata)
I get :
[1] "type" "metadata" "features" "bbox"
Which is not what I am looking for... I am looking for the name of the fields/attributes of the seismic data (something like location, magnitude, depth etc).
Any ideas of how can I convert the GeoJSONP data into plain JSON so I can manipulate it in R? I know GeoJSONP is not the same as GeoJSON.