View source: R/calc_amw_functions.R
trim_fao_data | R Documentation |
This function filters out countries which have more than one instance
and aggregate regions from FAO live animals data. Data is usually downloaded
through the FAOSTAT
package, using the MWTools::down_fao_live_animals
function, and after applying the MWTools::add_concordance_codes
function.
trim_fao_data(
.df,
yes_const = MWTools::amw_analysis_constants$yes_const,
country_incl_col = MWTools::conc_cols$country_incl_col,
country_name = MWTools::mw_constants$country_name
)
.df |
The data frame containing live animals data, with added country
codes. Usually produced by calling the
|
yes_const |
See |
country_incl_col |
See |
country_name |
See |
live_animals_data <- read.csv(file = MWTools::amw_test_data_path()) %>%
tidy_fao_live_animals() %>%
add_concordance_codes() %>%
trim_fao_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.