calc_amw_pfu: Calculate primary, final, and useful working animal energy

View source: R/calc_amw_functions.R

calc_amw_pfuR Documentation

Calculate primary, final, and useful working animal energy

Description

Calculate the total number of working animals and primary, final, and useful working animal energy by country, for six species: Asses, Buffaloes, Camelids, Cattle, Horses, and Mules, and three sector categories: Total, Agriculture, and Transport. This function acts as a helper function calling a number of functions in sequence to convert FAO data for live animals, usually downloaded with the function down_fao_live_animals, into a tidy data frame.

Usage

calc_amw_pfu(
  .df,
  concordance_path = MWTools::fao_concordance_path(),
  amw_analysis_data_path = MWTools::amw_analysis_data_path()
)

Arguments

.df

A data frame containing the raw FAO live animals data, corresponding to the "QCL" FAO bulk download query.

concordance_path

The path to the muscle work concordance information.

amw_analysis_data_path

The path to the animal muscle work analysis data.

Examples

tidy_amw_pfu_data <- read.csv(file = MWTools::amw_test_data_path()) %>%
  calc_amw_pfu()


EnergyEconomyDecoupling/MWTools documentation built on April 14, 2025, 9:27 a.m.