R: Processing Agro-Environmental Data

# Processing Agro-Environmental Data

## Documentation for package ‘whep’ version 0.3.0

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

add_area_code | Get area codes from area names
add_area_name | Get area names from area codes
add_item_cbs_code | Get commodity balance sheet item codes from item names
add_item_cbs_name | Get commodity balance sheet item names from item codes
add_item_prod_code | Get production item codes from item names
add_item_prod_name | Get production item names from item codes
build_supply_use | Supply and use tables
calculate_lmdi | Calculate LMDI decomposition.
calculate_nue_crops | N soil inputs and Nitrogen Use Efficiency (NUE) for crop
calculate_nue_livestock | NUE for Livestock
calculate_system_nue | System NUE
create_n_nat_destiny | GRAFS Nitrogen (N) flows at Spain national level
create_n_production | N production for Spain
create_n_prov_destiny | GRAFS Nitrogen (N) flows
create_n_soil_inputs | Nitrogen (N) soil inputs for Spain
expand_trade_sources | Trade data sources
fill_linear | Fill gaps by linear interpolation, or carrying forward or backward.
fill_proxy_growth | Fill gaps using growth rates from proxy variables
fill_sum | Fill gaps summing the previous value of a variable to the value of another variable.
get_bilateral_trade | Bilateral trade data
get_faostat_data | Scrapes activity_data from FAOSTAT and slightly post-processes it
get_feed_intake | Livestock feed intake
get_primary_production | Primary items production
get_primary_residues | Crop residue items
get_processing_coefs | Processed products share factors
get_wide_cbs | Commodity balance sheet data
harmonize_interpolate | Harmonize advanced cases with interpolation for 1:N groups
harmonize_simple | Harmonize rows labeled "simple" by summing values
items_cbs | Commodity balance sheet items
items_prod | Primary production items
polities | Polities
whep_inputs | External inputs
whep_list_file_versions | Input file versions
whep_read_file | Download, cache and read files