View source: R/extend_to_exergy.R
calc_phi_vecs_mw | R Documentation |
The phi_vecs
argument of move_to_exergy()
is a data frame with
"Country", "Year", and "phi" columns,
where the "phi" column contains phi vectors of the type created by
MWTools::phi_vec_mw()
.
This function creates the required data frame from its parts.
calc_phi_vecs_mw(
psut_energy_mw,
phi_vec_mw,
countries,
country = MWTools::mw_cols$country,
year = MWTools::mw_cols$year,
phi = "phi"
)
psut_energy_mw |
A PSUT data frame containing |
phi_vec_mw |
A single vector of muscle work phi values. See |
countries |
The countries to be analyzed. Internally, |
country, year |
Column names. See |
phi |
The name of the phi column. Default is "phi". |
A data frame of muscle work phi vectors, suitable for move_to_exergy()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.