specify: Specify the IEA data

View source: R/data_functions.R

specifyR Documentation

Specify the IEA data

Description

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"))

MatthewHeun/SEAPSUTWorkflow documentation built on April 22, 2022, 2:21 p.m.