Filter muscle work data to only those years contained in IEA data
filter_mw_to_iea_years.Rd
This function compares the muscle work and IEA data frames
on the country
, year
, method
, energy_type
, and last_stage
columns
and keeps only those rows in .psut_mw
that match .psut_iea
.
Arguments
- .psut_mw
The incoming muscle work data frame to be filtered.
- .psut_iea
The incoming IEA data frame from which years are obtained.
- countries
The countries for which the filtering should be done.
- country, year, method, energy_type, last_stage
The columns in
.psut_mw
and.iea_mw
to be used for filtering.