mindat_parse_raw_data {OpenMindat} | R Documentation |
mindat_parse_raw_data
Description
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.
Usage
mindat_parse_raw_data (raw_data)
Arguments
raw_data |
content of the response body |
Value
df_out, R data frame
Examples
## 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)
[Package OpenMindat version 1.0.0 Index]