bread_cost: Compute bread cost points

View source: R/prices_scores.R

bread_costR Documentation

Compute bread cost points

Description

This function takes in the cost of whole wheat bread and white bread and compares them to return a NEMS-S score for the cost.

Usage

bread_cost(whole_wheat_bread_price, white_bread_price)

Arguments

whole_wheat_bread_price

The cost of whole wheat bread.

white_bread_price

The cost of white bread.

Details

This function implements the scoring method described in Table 4.1 of Lundsford (2016). "Whole grain bread" is 100 percent whole wheat and whole grain bread, and it is the healthier option. "White bread" is the regular option, bread made with refined flour.

Value

The NEMS-S points associated with bread cost.

Examples

whole_wheat_bread_price <- rnorm(10,1.5,.5)
white_bread_price <- rnorm(10,1.5,.3)

byu-transpolab/nemsr documentation built on Feb. 10, 2023, 11:24 p.m.