View source: R/calc_amw_functions.R
calc_amw_pfu | R Documentation |
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.
calc_amw_pfu(
.df,
concordance_path = MWTools::fao_concordance_path(),
amw_analysis_data_path = MWTools::amw_analysis_data_path()
)
.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. |
tidy_amw_pfu_data <- read.csv(file = MWTools::amw_test_data_path()) %>%
calc_amw_pfu()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.