Learn R Programming

junr (version 0.1.3)

get_data: Get data for a given GUID

Description

Get the data for any given GUID and return it as a data frame. Note that we use the "ajson" JSON format from the API. The "JSON" format has a more complex structure.

Usage

get_data(base_url, api_key, guid)

Arguments

base_url

The base URL of the Junar service

api_key

The user's API key for the Junar service

guid

The GUID of the data set of interest

Details

We do use the JSON response to get the fLength value, which indicates the length of the dataset. This way we can include a fixed way to get around the default limit of 1000 rows of the Junar API.

Note that this removes all meta-data from the JSON response given by the API.