DATA PRODUCTS

Chilly Amador
10-25-2015

The Skinny Pizza Project

Do you know how many calories are you putting in your food?

Unlike products we buy in stores, homemade food is not labeled with the amount of calories and nutrients.

We usually cook liberaly and more often than not indulge ourselves. Homemade food may not be as healthy as we believe.

The Skinny Pizza Project helps you to create the Pizza you really want to eat.

How to use Kinny Pizza App to calculate calories in homemade pizza

Since the basic ingredients (dough, tomato sauce and cheese) add generally more calories that the toppings, measuring them is the most important caloric contribution.

Skinny Pizza wil prompt you to enter the pizza size by using a slider to set the desire pizza diameter in inches. Very easy! Next, Skinny Pizza will prompt you to enter the number of tomato sace cups and cheese slices you are going to use. It is important to use measurement units that anybody can understand such as cups and slices. So let's try it…

What happens next?

Skinny Pizza will calculate the amount of calories in your pizza. How many calories are in 14" pizza that has 2 cups of tomato sauce, 8 cheese slices and 20 pepperoni slice (no extra topings)?

size <- readline(prompt="Enter your pizza size: ")
Enter your pizza size: 
size <- as.numeric(size)
#size <- 14

# Create an ingredients vector with all the ingredients. Default value is 0.

How skinny is your pizza?

# Create an ingredients vector and calculate total calories
# Number of calories was calculated using public information

ingredients <- c(14,2,8,20,0) 
totalCalories <- ingredients[1]*15 + ingredients[2]*70 + ingredients[3]*75 + ingredients[4]*10 + ingredients[5]*10
totalCalories
[1] 1150

This homemade pizza wasn't very skinny after all!