Skip to content

Code for a shinyapp that calculates nutrition values for food and recipes

Notifications You must be signed in to change notification settings

yihanwu/Nutrient_Calculator

Repository files navigation

Nutrient Calculator

Purpose of app: calculate nutrition data for food and recipes, and visualizing % daily nutrient values. Data Source: Canadian Nutrient File 2015 (as R package)

Nutrition calculators are frequently used to estimate nutritional content of food and recipes. Online free nutrition calculators based on Canadian nutrient data are rare beyond Dietitians of Canada, a basic nutrient calculator reporting values only. The alternatives for calculating nutrition are pricy proprietary nutrient calculator software and food analysis labs.

Nutrient Calculator is built as a shiny dashboard where users can easily search and add multiple ingredients from the CNF database, calculate overall nutrient data such as calories and sodium, and see nutrient amounts as percentage recommended daily values. Total calorie count, nutrients amounts which surpass 100% and 50% daily value are highlighted in valueboxes at the top. Macronutrients, minerals and vitamins are visualized on separated bar graphs.

Shinyapps

RCloud Instance

Github Repository

Search for a variety of ingredients and foods, see in-depth nutrient data.

Search and select ingredients

Add and remove ingredients to calculate overall nutrition values.

Add and remove an ingredient

Use serving amounts in recipe

Change serving amount

About

Code for a shinyapp that calculates nutrition values for food and recipes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages