Skip to contents

This is a helpful function that deletes original PSUT columns and renames the aggregated columns to the original names.

Usage

rename_suffixed_psut_columns(
  .psut_data,
  suffix = Recca::aggregate_cols$aggregated_suffix,
  R = Recca::psut_cols$R,
  U = Recca::psut_cols$U,
  V = Recca::psut_cols$V,
  Y = Recca::psut_cols$Y,
  r_eiou = Recca::psut_cols$r_eiou,
  U_eiou = Recca::psut_cols$U_eiou,
  U_feed = Recca::psut_cols$U_feed,
  S_units = Recca::psut_cols$S_units
)

Arguments

.psut_data

A data frame of PSUT matrices.

suffix

The suffix for columns of aggregated matrices. Default is Recca::aggregate_cols$aggregated_suffix.

R, U, V, Y, r_eiou, U_eiou, U_feed, S_units

The names of input columns in .psut_data.

Value

A version of .psut_data with original PSUT columns deleted and suffixed columns renamed to original names.

Details

Columns with names given by R, U, V, Y, r_eiou, U_eiou, U_feed, and S_units arguments. The suffix is given by the suffix argument.

This function is a helper function and, thus, is not public.