Calculate the total caloric content of an item given the weight of its macronutrients
totalKcal(fat, carbs, protein, fiber = 0)
grams of fat per unit of measurement (e.g. 100 g)
grams of carbohydrates per unit of measurement (e.g. 100 g)
grams of protein per unit of measurement (e.g. 100 g)
grams of fiber per unit of measurement (e.g. 100 g)
Total energy content per unit of measurement
totalKcal(48, 1.7, 29)
#> [1] 554.8