Skip to contents

Specifies the IEA data in a way that is amenable to drake subtargets. See IEATools::specify_all() for details.

Usage

specify(BalancedIEAData, countries, country = IEATools::iea_cols$country)

Arguments

BalancedIEAData

IEA data that have already been balanced

countries

the countries for which specification should occur

country

See IEATools::iea_cols.

Value

a data frame of specified IEA data

Examples

IEATools::sample_iea_data_path() %>%
  IEATools::load_tidy_iea_df() %>%
  make_balanced(countries = c("GHA", "ZAF")) %>%
  specify(countries = c("GHA", "ZAF"))
#> # A tibble: 449 × 11
#>    Country Method Energy.type Last.stage  Year Ledger.side
#>    <chr>   <chr>  <chr>       <chr>      <dbl> <chr>      
#>  1 GHA     PCM    E           Final       1971 Consumption
#>  2 GHA     PCM    E           Final       1971 Consumption
#>  3 GHA     PCM    E           Final       1971 Consumption
#>  4 GHA     PCM    E           Final       1971 Consumption
#>  5 GHA     PCM    E           Final       1971 Consumption
#>  6 GHA     PCM    E           Final       1971 Consumption
#>  7 GHA     PCM    E           Final       1971 Consumption
#>  8 GHA     PCM    E           Final       1971 Consumption
#>  9 GHA     PCM    E           Final       1971 Consumption
#> 10 GHA     PCM    E           Final       1971 Consumption
#> # ℹ 439 more rows
#> # ℹ 5 more variables: Flow.aggregation.point <chr>, Flow <chr>, Product <chr>,
#> #   Unit <chr>, E.dot <dbl>