View source: R/data_functions.R
extract_country_data | R Documentation |
Data is extracted according to the countries
object in a way that is amenable to drake subtargets.
dplyr::filter()
does the subsetting.
extract_country_data( .df, countries, max_year, country = IEATools::iea_cols$country, year = IEATools::iea_cols$year )
.df |
A data frame containing cleaned data with lots of countries. |
countries |
A list of 3-letter country codes for countries to be analyzed. |
max_year |
The latest year you want to include in the extracted data. |
country, year |
See |
a data frame with the desired IEA data only
IEATools::sample_iea_data_path() %>% IEATools::load_tidy_iea_df() %>% extract_country_data(countries = c("ZAF"), max_year = 1999)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.