macroDistro | R Documentation |
Calculates the percentage of energy from each macronutrient.
macroDistro(fat, carbs, protein, fiber = 0)
fat |
grams of fat per unit of measurement (e.g. 100 g) |
carbs |
grams of carbohydrates per unit of measurement (e.g. 100 g) |
protein |
grams of protein per unit of measurement (e.g. 100 g) |
fiber |
grams of fiber per unit of measurement (e.g. 100 g) |
vector with the energy ratio from each macronutrient
Waldir Leoncio
macroDistro(12, 40, 32, 1)
macroDistro(12, 40, 32)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.