Skip to contents

After constructing the muscle work PSUT matrices, energy balance should be verified. Internally, this function uses Recca::verify_SUT_energy_balance() to ensure that everything is balanced.

Usage

verify_mw_energy_balance(
  .psut_df,
  countries,
  country = MWTools::mw_cols$country
)

Arguments

.psut_df

A data frame of muscle work PSUT matrices.

countries

The countries to be analyzed.

country

The name of the country column in .psut_df.

Value

A data frame with new boolean column ".balanced" that tells whether the matrices are balanced.

Details

If .psut_df has zero rows, TRUE is returned, enabling the pipeline to continue, even if there are some years where there is no muscle work data available.