View source: R/prices_scores.R
ground_beef_avail | R Documentation |
This function takes in the number of varieties of lean and regular fat beef and returns the NEMS-S points associated with availability.
ground_beef_avail(lean_beef_varieties)
lean_beef_varieties |
The number of lean beef varieties (<10 percent fat). |
This function implements the scoring method described in Measure 4 of the NEMS-S Protocol. "Standard ground beef" is 80 percent lean and 20 percent fat by weight. "Lean ground beef" is 90 percent lean and 10 percent fat (or less fat percentage) by weight.
The NEMS-S points associated with ground beef availability.
lean_beef_varieties <- sample(1:4, 10) ground_beef_avail(lean_beef_varieties)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.