idmc_get_data: Get data from the IDMC API

View source: R/idmc_get_data.R

idmc_get_dataR 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 dplyr::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()


idmc documentation built on Sept. 30, 2024, 9:33 a.m.