Learn R Programming

OpenMindat (version 1.0.1)

mindat_parse_raw_data: 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)

Value

df_out, R data frame

Arguments

raw_data

content of the response body

Examples

Run this code
if (FALSE) {
rd<-"{\"count\":5,\"next\":null,\"previous\":null,+
\"results\":[{\"name\":\"Diamond\"},{\"name\":\"Khamrabaevite\"},+
{\"name\":\"Moissanite\"},{\"name\":\"Qingsongite\"},{\"name\":\"Uakitite\"}]}"
df<- mindat_parse_raw_data(rd)
}

Run the code above in your browser using DataLab