mindat_parse_raw_data: mindat_parse_raw_data

View source: R/mindat_response_data_parse.R

mindat_parse_raw_dataR 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)

OpenMindat documentation built on June 8, 2025, 1:47 p.m.