Skip to contents

Combines PSUT descriptions based on IEA data exclusively, muscle work data exclusively, and summed IEA and MW data.

Usage

build_psut_dataframe(
  psutiea = NULL,
  psutmw = NULL,
  psutieamw = NULL,
  country_colname = IEATools::iea_cols$country,
  method_colname = IEATools::iea_cols$method,
  energy_type_colname = IEATools::iea_cols$energy_type,
  last_stage_colname = IEATools::iea_cols$last_stage,
  year_colname = IEATools::iea_cols$year,
  ieamw_colname = PFUPipeline::ieamw_cols$ieamw,
  R_colname = IEATools::psut_cols$R,
  U_colname = IEATools::psut_cols$U,
  U_feed_colname = IEATools::psut_cols$U_feed,
  U_eiou_colname = IEATools::psut_cols$U_eiou,
  r_eiou_colname = IEATools::psut_cols$r_eiou,
  V_colname = IEATools::psut_cols$V,
  Y_colname = IEATools::psut_cols$Y,
  S_units_colname = IEATools::psut_cols$s_units,
  iea = PFUPipeline::ieamw_cols$iea,
  mw = PFUPipeline::ieamw_cols$mw,
  both = PFUPipeline::ieamw_cols$both
)

Arguments

psutiea

A PSUT data frame of IEA data. Default is NULL.

psutmw

A PSUT data frame of muscle work data. Default is NULL.

psutieamw

A PSUT data frame of combined IEA and MW data. Default is NULL.

country_colname, method_colname, energy_type_colname, last_stage_colname, year_colname

Column names. See IEATools::iea_cols for defaults.

ieamw_colname

The name of the column that identifies whether data are for the IEA, muscle work (MW) or both. Default is PFUPipeline::ieamw_cols$ieamw.

R_colname, U_colname, U_feed_colname, U_eiou_colname, r_eiou_colname, V_colname, Y_colname, S_units_colname

Names of matrix columns. See IEATools::psut_cols.

iea

The string that identifies ECC data are from the IEA only. Default is PFUPipeline::ieamw_cols$iea.

mw

The string that identifies ECC data are for muscle work only. Default is PFUPipeline::ieamw_cols$mw.

both

The string that identifies ECC data are for both IEA and muscle work. Default is PFUPipeline::ieamw_cols. Default is PFUPipeline::ieamw_cols$both.

Value

A data frame with PSUTIEA, PSUTMW, and PSUTIEAMW

rbind()ed together, and a new column (IEAMW_colname) that distinguishes among them.