View source: R/prices_scores.R
bread_avail | R Documentation |
This function takes in the number of varieties of whole grain bread and returns the NEMS-S points associated with availability.
bread_avail(varieties_of_whole_grain_bread)
varieties_of_whole_grain_bread |
The number of types of whole grain bread available. |
This function implements the scoring method described in Measure 9 of the NEMS-S Protocol. "Whole grain bread" is 100 percent whole wheat and whole grain bread, and it is the healthier option.
The NEMS-S points associated with whole grain bread availability.
varieties_of_whole_grain_bread <- sample(1:10, 10) bread_avail(varieties_of_whole_grain_bread)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.