Tell whether all rows of a tidy IEA data frame are balanced
tidy_iea_df_balanced.Rd
This function provides a handy way to tell if all rows of .tidy_iea_df_balance
are in balance.
Argument .tidy_iea_df_balances
should be set to the value of a call to
calc_tidy_iea_df_balances()
.
Arguments
- .tidy_iea_df_balances
an IEA-style data frame containing a column that indicates whether each row is in balance.
- balance_OK
the name of a new logical column that tells whether a row's energy balance is OK. Default is "
balance_OK
".
Examples
library(dplyr)
load_tidy_iea_df() %>%
calc_tidy_iea_df_balances() %>%
tidy_iea_df_balanced()
#> [1] FALSE