owid_get_metadata {owidapi} | R Documentation |
Download metadata from Our World in Data
Description
Retrieves the metadata for a data set from Our World in Data (OWID) by specifying a chart identifier or direct URL.
Usage
owid_get_metadata(chart_id = NULL, url = NULL)
Arguments
chart_id |
Character string specifying the chart identifier
(e.g., "life-expectancy"). Not required if |
url |
Direct URL to an OWID chart. If provided, |
Value
A list containing the requested OWID metadata.
Examples
# Download metadata using a data set
owid_get_metadata("life-expectancy")
# Download metadata using an url
owid_get_metadata(
url = "https://ourworldindata.org/grapher/civil-liberties-score-fh"
)
[Package owidapi version 0.1.1 Index]