add_row_col_meta | R Documentation |
Primary-final-useful (PFU) data need to be converted to PSUT matrices.
This function take the output of specify_last_stages()
and converts to PSUT matrices in a data frame.
add_row_col_meta(
.df,
biomass = MWTools::mw_products$biomass,
food = MWTools::mw_products$food,
feed = MWTools::mw_products$feed,
hu_mech = MWTools::mw_products$hu_mech,
an_mech = MWTools::mw_products$an_mech,
an_p = MWTools::mw_products$an_p,
resources = MWTools::mw_sectors$resources_sector,
farms = MWTools::mw_sectors$farms,
food_production = MWTools::mw_sectors$food_production,
feed_production = MWTools::mw_sectors$feed_production,
transport = MWTools::mw_sectors$transport_sector,
human_females = MWTools::mw_species$human_females,
human_males = MWTools::mw_species$human_males,
final = MWTools::all_stages$final,
useful = MWTools::all_stages$useful,
concordance_species = MWTools::conc_cols$species,
sector = MWTools::mw_constants$sector_col,
stage = MWTools::mw_constants$stage_col,
product = MWTools::mw_cols$product,
last_stage = MWTools::mw_cols$last_stage,
matnames = MWTools::mat_meta_cols$matnames,
rownames = MWTools::mat_meta_cols$rownames,
colnames = MWTools::mat_meta_cols$colnames,
rowtypes = MWTools::mat_meta_cols$rowtypes,
coltypes = MWTools::mat_meta_cols$coltypes,
R_name = MWTools::psut_cols$R,
U_name = MWTools::psut_cols$U,
V_name = MWTools::psut_cols$V,
Y_name = MWTools::psut_cols$Y,
industry_type = MWTools::row_col_types$industry,
product_type = MWTools::row_col_types$product,
product_notation = RCLabels::from_notation,
resource_notation = RCLabels::of_notation,
species_notation = RCLabels::arrow_notation
)
.df |
A data frame containing muscle work data,
likely the output from |
biomass , food , feed , hu_mech , an_mech , an_p |
See |
resources , farms , food_production , feed_production , transport |
See |
human_females , human_males |
See |
final , useful |
See |
concordance_species |
See |
sector , stage |
See |
product , last_stage |
See |
matnames , rownames , colnames , rowtypes , coltypes |
See |
R_name , U_name , V_name , Y_name |
See |
industry_type , product_type |
See |
product_notation |
The notation for products. Default is |
resource_notation |
The notation for resources. Default is |
species_notation |
The notation for species. Default is |
A data frame containing PSUT matrices representing muscle work energy conversion chains.
ilo_working_hours_data <- read.csv(file = MWTools::ilo_working_hours_test_data_path())
ilo_employment_data <- read.csv(file = MWTools::ilo_employment_test_data_path())
hmw_data <- prepareRawILOData(ilo_working_hours_data = ilo_working_hours_data,
ilo_employment_data = ilo_employment_data)
hmw_df <- hmw_data %>%
calc_hmw_pfu()
amw_df <- amw_test_data_path() %>%
read.csv() %>%
calc_amw_pfu()
specify_energy_type_method(hmw_df, amw_df) %>%
specify_product() %>%
specify_TJ() %>%
MWTools::specify_primary_production() %>%
specify_useful_products() %>%
specify_fu_machines() %>%
specify_last_stages() %>%
MWTools::add_row_col_meta()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.