Risk and Gap Analysis for the CGIAR Research Investment Opportunities Report


[Up] [Top]

Documentation for package ‘CRIO’ version 1.1.0

Help Pages

add_scenario_cols Add scenario descriptor columns
aquatic_nutrient_per_kg Placeholder nutrient values per kg for aquatic foods
b4t_levels Factor levels for the B4T scenario column
b4t_regions CGIAR regions where Breeding For Tomorrow (B4T) is implemented
build_b4t_comparison Compare B4T scenarios with their climate counterfactual
build_b4t_comparisons B4T comparisons for a list of indicator specs
build_pathway_analysis Pathway analysis: which scenarios hit a target
cg_lookup Country to CG region lookup
climate_counterpart Climate run matching a scenario
crio_baseline_id Default baseline scenario
crio_plot_all Make all RIO figures
default_pathways Default pathway names by SSP and RCP
exclude_cmdty Commodities excluded from nutrient availability
extract_rules Extract rules from a classification tree
fat_kcal_share Share of calories from fat by commodity
filter_climate Keep the climate ensemble only
food_groups Food groups used for calorie and water totals
get_ader Total calories against the average dietary energy requirement (ADER)
get_calories Per capita calories by commodity, with totals and shares
get_fat_share Approximate share of calories from fat
get_foodavail Food availability (all commodities and food groups)
get_frtveg Fruit and vegetable availability (g/person/day)
get_hunger Population at risk of hunger
get_mder Total calories against the minimum dietary energy requirement (MDER)
get_minkcal Minimum calorie requirement by country
get_nutrient_adequacy Nutrient availability and adequacy ratios
get_sugar_share Share of calories from sugar
get_water Blue water use, with totals, shares and ratio to 2025
indicator_specs Indicator specifications
list_scenarios List scenario GDX files
load_crio_data Build all RIO indicator datasets
load_region_map Load the IMPACT region shapefile
nutrient_labels Display names for nutrient codes
nutrient_quantity_specs Nutrient quantity specifications
own_cg_region CG region a region code belongs to
plot_b4t_gap_closed Share of the baseline gap closed by each B4T run
plot_b4t_gap_maps Maps of the target gap: baseline vs one B4T run
plot_b4t_heatmap Heatmap of B4T effects: region x where B4T is implemented
plot_gap_overview Distance-to-target overview across indicators
plot_indicator_maps Four-panel indicator maps
plot_pct_hits Bar chart of the share of scenarios hitting a target
plot_region_tree Plot the classification tree for one region
plot_rules_heatmap Heatmap of tree rules across regions
plot_spec_trajectories Trajectories for one indicator spec
plot_target_trajectories Indicator trajectories against a target
read_scenarios Read one GFSir indicator for many scenarios
relabel_scenarios Relabel scenarios in all datasets
rni_lookup Recommended nutrient intakes (RNI)
row_countries Rest-of-world countries greyed out on maps
save_crio_data Save indicator datasets as RDS and/or CSV
scenario_id Scenario id from a GDX file path
select_scenarios Select scenarios in all datasets
summarise_rules Summarise tree rules by region and outcome
world_outline World country outline for map borders