View source: R/calc_amw_functions.R
add_concordance_codes | R Documentation |
Adds 3 letter ISO country codes and muscle work region codes for countries
present in the FAO's Live animals data, downloaded through the FAOSTAT
package,
usually using the MWTools::down_fao_live_animals
function.
add_concordance_codes(
.df,
concordance_path = MWTools::fao_concordance_path(),
amw_region_code_col = MWTools::conc_cols$amw_region_code_col,
hmw_region_code_col = MWTools::conc_cols$hmw_region_code_col,
country_incl_col = MWTools::conc_cols$country_incl_col,
country_code_col = MWTools::conc_cols$country_code_col,
country_name = MWTools::mw_constants$country_name
)
.df |
The data frame containing tidied live animals data, Usually
produced by calling the |
concordance_path |
The file path to concordance information mapping the
FAO country names supplied in FAOSTAT to 3-letter ISO
codes, and MWTools specific region codes. Set to
|
amw_region_code_col , hmw_region_code_col , country_incl_col , country_code_col |
See |
country_name |
See |
live_animals_data <- read.csv(file = MWTools::amw_test_data_path()) %>%
tidy_fao_live_animals() %>%
add_concordance_codes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.