Calculate PSUT data frames from muscle work PFU data frames
make_mw_psut.Rd
This function filters to countries
and creates PSUT matrices
from primary-final-useful muscle work data frames.
Arguments
- .hmw_df, .amw_df
Data frames of primary-final-useful muscle work data.
- countries
The countries to be analyzed.
- years
The years to be analyzed.
- matrix_class
The type of matrix to be created. One of "matrix" (the base class) or "Matrix" (for sparse matrices).
- output_unit
A string of length one that specifies the output unit. One of "TJ" or "ktoe" for terajoules or kilotons of oil equivalent.
- country
The name of the country column in
.hmw_df
and.amw_df
. Default isMWTools::mw_cols$country
.- year
The name of the year column in
.hmw_df
and.amw_df
.Default isMWTools::mw_cols$year
.