ipc_get {ripc}R Documentation

Get resource from IPC API

Description

Back-end function used to drive the API calls of the other ipc_get_...() family of functions.

Usage

ipc_get(resource, return_format, pass_format, api_key = NULL, ...)

Arguments

resource

One of the resources exposed in the IPC API, such "areas" , "analyses", "points", or "country".

return_format

The format that should be returned by the API. Allows "csv" (the default) and "geojson".

pass_format

Pass format explicitly in the API call.

api_key

IPC API key. If NULL (the default), looks for IPC_API_KEY in the environment.

...

Named parameters passed to the API call URL in the form of argument=value.

Value

Data frame from the API


[Package ripc version 0.3.0 Index]