energy_total: Total energy value of the product

Description Usage Arguments Examples

View source: R/energy.R

Description

Function for calculating the total energy value of a product

Usage

1
energy_total(weight_of_product, protein, fat, carbohydrates, fiber = 0)

Arguments

weight_of_product

numeric, weight of used product

protein

numeric, protein content in the product for which we calculate the energy value expressed in grams

fat

numeric, fat content in the product for which we calculate the energy value expressed in grams

carbohydrates

numeric, carbohydrates content in the product for which we calculate the energy value expressed in grams

fiber

numeric, fiber content in the product for which we calculate the energy value expressed in grams, 0 by default

Examples

1
2
energy_total(50, 1.2, 0.9, 11.8, 3)
energy_total(35, 8, 32, 52)

FUTUR-TEAM/Future documentation built on Dec. 17, 2021, 8:22 p.m.