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