View source: R/prices_scores.R
vegetable_avail | R Documentation |
This function takes in the number of varieties of vegetables at a given store and returns the NEMS-S points associated with the availability.
vegetable_avail(varieties_of_vegetables)
varieties_of_vegetables |
Number of types of vegetables available. |
This function implements the scoring method described in Measure 3 of the NEMS-S Protocol.
The NEMS-S points associated with vegetables availability.
varieties_of_vegetables <- sample(1:10, 10) vegetable_avail(varieties_of_vegetables)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.