idmc_get_data {idmc}R Documentation

Get data from the IDMC API

Description

idmc_get_data() calls the IDMC API to retrieve displacement data. The data is converted from JSON to a data frame, date columns converted to Date types, and returned as a tibble::tibble.

Usage

idmc_get_data(api_url = NULL)

Arguments

api_url

URL to the IDMC API. If NULL, the default, searches for the IDMC_API environment variable.

Value

Tibble of displacement data. Description of the data frame variables are included in the documentation for the IDMC IDU API. # nolint

Examples


idmc_get_data()


[Package idmc version 0.3.0 Index]