owid | R Documentation |
Get a dataset used in an OWID chart.
owid(chart_id = NULL, rename = NULL, tidy.date = TRUE, ...)
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. |
A data.table of an owid dataset with the added class 'owid'.
owid_search("emissions")
emissions <- owid("per-capita-ghg-emissions")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.