Retrieve data

Functions to retrieve data from online Tool

ci_get_data()

Retrieves data from the tool and stores it a dataframe.

Water Footprint

Functions for preparing and visualising water footprint data.

ci_wf_prep_animals()

Reads and cleans animals' water footprint dataset.

ci_wf_prep_crops()

Reads and cleans crops' water footprint dataset.

Food

Functions for preparing and visualising food data.

ci_dishratings()

Returns average ratings per dish.

ci_dishratings_prep()

Prepares dishrating dataset.

Reactable

Functions to customise reactable outputs.

rt_bar_cell()

Renders a bar chart with a label on the left.

rt_rating_icons()

Displays ratings using icons.

rt_with_tooltip()

Changes header style when tooltips are enabled.