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: 451 × 11
#>    Country Method Energy.type Last.stage  Year Ledger.side Flow.aggregation.poi…
#>    <chr>   <chr>  <chr>       <chr>      <dbl> <chr>       <chr>                
#>  1 GHA     PCM    E           Final       1971 Consumption Industry             
#>  2 GHA     PCM    E           Final       1971 Consumption Industry             
#>  3 GHA     PCM    E           Final       1971 Consumption Industry             
#>  4 GHA     PCM    E           Final       1971 Consumption Industry             
#>  5 GHA     PCM    E           Final       1971 Consumption Industry             
#>  6 GHA     PCM    E           Final       1971 Consumption Industry             
#>  7 GHA     PCM    E           Final       1971 Consumption Industry             
#>  8 GHA     PCM    E           Final       1971 Consumption Other                
#>  9 GHA     PCM    E           Final       1971 Consumption Other                
#> 10 GHA     PCM    E           Final       1971 Consumption Other                
#> # … with 441 more rows, and 4 more variables: Flow <chr>, Product <chr>,
#> #   Unit <chr>, E.dot <dbl>