get_fuel_mix | R Documentation |
Get fuel mix for one or more countries or regions
get_fuel_mix(
region_name,
collapse_renewables = TRUE,
quiet = FALSE,
region_code = NULL
)
region_name |
A character vector with the names of one or more countries or regions to look up |
collapse_renewables |
Combine hydroelectricity and other renewables into a single category. |
quiet |
Suppress warnings if there is no data for that country or region. |
region_code |
Optional three-letter country or region codes to look up
instead of the |
A tibble of fuel mix for the countries or regions specified. That is, the number of quads of each fuel and the fraction of total primary energy coming from that fuel for each country or region:
The name of the country or region
The year reported
The name of the fuel
The number of quads per year the country or region consumes
The fraction of the country's energy that comes from that fuel
In the latest data from the Energy Institute, there are small
discrepancies between the sums of energy for each fuel and the totals,
in both quads
and frac
, for Hong Kong and Sri Lanka, as described
in the documentation for fuel_mix.
regions, fuel_mix
get_fuel_mix("United States")
get_fuel_mix("World", collapse_renewables = FALSE)
get_fuel_mix(region_code = "LCN")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.