View source: R/mindat_response_data_parse.R
mindat_parse_raw_data | R Documentation |
parse the raw response of json to dataframe of R. If the raw_data obtained from the response is paged, request all the pages and then add them into the df_out data frame.
mindat_parse_raw_data (raw_data)
raw_data |
content of the response body |
df_out, R data frame
## Not run:
rd<-"{\"count\":5,\"next\":null,\"previous\":null,+
\"results\":[{\"name\":\"Diamond\"},{\"name\":\"Khamrabaevite\"},+
{\"name\":\"Moissanite\"},{\"name\":\"Qingsongite\"},{\"name\":\"Uakitite\"}]}"
df<- mindat_parse_raw_data(rd)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.