get_fuel_mix {kayadata} | R Documentation |
Get fuel mix for one or more countries or regions
Description
Get fuel mix for one or more countries or regions
Usage
get_fuel_mix(
region_name,
collapse_renewables = TRUE,
quiet = FALSE,
region_code = NULL
)
Arguments
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 |
Value
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:
- region
The name of the country or region
- year
The year reported
- fuel
The name of the fuel
- quads
The number of quads per year the country or region consumes
- frac
The fraction of the country's energy that comes from that fuel
Note
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.
See Also
Examples
get_fuel_mix("United States")
get_fuel_mix("World", collapse_renewables = FALSE)
get_fuel_mix(region_code = "LCN")