Skip to contents

All functions

add_concordance_codes()
Add 3 letter ISO codes and MWTools-specific region codes
add_hmw_region_codes()
Add the regional codes used on analysis of human muscle work.
add_row_col_meta()
Prep PFU data for conversion to PSUT matrices
all_stages all_stages
All stages for energy conversion chains
amw_analysis_constants
Animal muscle work (amw) analysis data constants
amw_analysis_data_path()
Gives a file path to the animal muscle work analysis excel workbook
amw_test_data_path()
Gives a file path to the FAO animal muscle work test data
calc_S_units()
Calculate an S_units vector given other PSUT matrices
calc_U_feed_U_eiou_r_eiou()
Calculate U_feed, U_eiou, and r_eiou columns from a U matrix
calc_amw_pfu()
Calculate primary, final, and useful working animal energy
calc_final_energy()
Calculate the final energy metabolised by working animals
calc_hmw_final_energy()
Calculate the final energy consumed by human workers
calc_hmw_pfu()
Calculate primary, final, and useful human muscle work.
calc_hmw_primary_energy()
Calculate the primary energy consumed by human workers
calc_hmw_useful_energy()
Calculate the useful energy produced by human workers
calc_primary_energy()
Calculate the primary energy embodied in the feed supplied to working animals
calc_sector_split()
Calculate the number of working animals in agriculture and transport
calc_total_hours_worked()
Calculate the total number of hours worked each year
calc_useful_energy()
Calculate the useful energy produced by working animals performing muscle work
calc_working_animals()
Calculate the number of working animals
calc_yearly_feed()
Calculate the yearly feed requirements of working animals by species
collapse_to_psut()
Convert a tidy data frame to PSUT matrices
conc_cols
Country concordance columns
energy_types
Energy types in muscle work data frames
fao_codes
FAO data item code names
fao_cols
FAO data column names
fao_concordance_path()
Gives a file path to the concordance data excel workbook
fill_ilo_data()
Fill missing data for the number of hours worked and employed persons
get_broad.sector_data()
Retrieve data with sectors organised by "Broad sector"
get_working_species()
Create a data frame containing the total number of animals of working species
hmw_analysis_constants
Human muscle work (hmw) analysis data constants
hmw_analysis_data_path()
Gives a file path to the human muscle work analysis excel workbook
ilo_codes
ILO data item code names
ilo_cols
ILO data column names
ilo_employment_test_data_path()
Gives a file path to the ILO employment test data
ilo_working_hours_test_data_path()
Gives a file path to the ILO working hours test data
last_stages
Last stages for energy conversion chains in PSUT format
mat_meta_cols
Names of matrix metadata columns in muscle work data frames
methods
Methods of attributing primary energy from final energy in muscle work data frames
mw_cols
Column names in muscle work data frames
mw_constants
General MWTools constants
mw_products
Muscle work products
mw_sectors
Economic sectors for muscle work
mw_species
Working animal species
phi_constants_mw
Muscle work phi constants
phi_vec_mw()
Create a phi vector for muscle work energy conversion chains
prep_psut()
A convenience function to create PSUT matrices in a data frame
prepareRawILOData()
Prepare a unified ILO dataframe from raw employment and working hours data
psut_cols
Column names in PSUT data frames
row_col_types
Row and column types for matrices made from muscle work data frames
specify_TJ()
Converts units from EJ to TJ
specify_energy_type_method()
Add energy type and method columns to tidy muscle work data frames
specify_fu_machines()
Specify final-to-useful industries
specify_ktoe()
Converts units from EJ to ktoe
specify_last_stages()
Create energy conversion chains for final and useful last stages
specify_primary_production()
Add primary production to a data frame of PFU muscle work data
specify_product()
Add a product column to a muscle work data frame
specify_useful_products()
Specify useful energy products
split_labor_by_sector()
Title
tidy_fao_live_animals()
Tidy live animals data from the FAO
tidy_hmw_pfu()
Produce a tidy human muscle work data frame
tidy_pfu_data()
Tidy a data frame containing primary, final, and useful energy data for working animals
trim_fao_data()
Trim countries in FAO live animals data
unit_constants
Unit constants