owid {owidR} | R Documentation |
Get data from Our World in Data
Description
Get a dataset used in an OWID chart.
Usage
owid(chart_id = NULL, rename = NULL, tidy.date = TRUE, ...)
Arguments
chart_id |
The chart_id as returned by owid_search |
rename |
Rename the value column. Currently only works if their is just one value column. |
tidy.date |
If TRUE then a year column that should be a date column will automatically detected and transformed. If FALSE then the Year column will be kept as is. Defaults to TRUE. |
... |
Not to be used. |
Value
A data.table of an owid dataset with the added class 'owid'.
Examples
owid_search("emissions")
emissions <- owid("per-capita-ghg-emissions")
[Package owidR version 1.4.2 Index]