do_fix: Performs fixes to IEA data

View source: R/fixes.R

do_fixR Documentation

Performs fixes to IEA data

Description

This is an internal convenience function that performs fixes on IEA data given a replacement data frame. It makes use of the replace_join() function internally.

Usage

do_fix(.tidy_iea_df, replacement, country, year, e_dot)

Arguments

.tidy_iea_df

The tidy IEA data frame to be fixed.

replacement

A data frame containing the data that fixes the IEA data.

country

The name of the country column in .tidy_iea_df and replacement.

year

The name of the year column in .tidy_iea_df and replacement.

e_dot

The name of the energy flow rate column in .tidy_iea_df and replacement.

Value

A modified version of .tidy_iea_df with replacement included, if warranted.


MatthewHeun/IEATools documentation built on Feb. 6, 2024, 3:29 p.m.