View source: R/prices_scores.R
cereal_avail | R Documentation |
This function takes in the number of varieties of healthier cereal options and returns the NEMS-S points associated with availability.
cereal_avail(healthier_cereal_varieties)
healthier_cereal_varieties |
The number of varieties of cereal with less than 7g of sugar per serving. |
This function implements the scoring method described in Measure 11 of the NEMS-S Protocol. "Healthier cereal" has less than 7g of sugar per serving.
The NEMS-S points associated with healthier cereal availability.
healthier_cereal_varieties <- sample(1:10, 10) cereal_avail(healthier_cereal_varieties)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.