View source: R/prices_scores.R
frozen_dinners_avail | R Documentation |
This function takes in the number of varieties of frozen dinners and returns the NEMS-S points associated with availability.
frozen_dinners_avail(frozen_dinner_varieties)
frozen_dinner_varieties |
The number of frozen dinner varieties offered. |
This function implements the scoring method described in Measure 6 of the NEMS-S Protocol.
The NEMS-S points associated with availability of frozen dinners.
frozen_dinner_varieties <- sample(0:3, 10, replace = TRUE) frozen_dinners_avail(frozen_dinner_varieties)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.