frozen_dinners_avail: Compute the availability points associated with frozen...

View source: R/prices_scores.R

frozen_dinners_availR Documentation

Compute the availability points associated with frozen dinners

Description

This function takes in the number of varieties of frozen dinners and returns the NEMS-S points associated with availability.

Usage

frozen_dinners_avail(frozen_dinner_varieties)

Arguments

frozen_dinner_varieties

The number of frozen dinner varieties offered.

Details

This function implements the scoring method described in Measure 6 of the NEMS-S Protocol.

Value

The NEMS-S points associated with availability of frozen dinners.

Examples

frozen_dinner_varieties <- sample(0:3, 10, replace = TRUE)
frozen_dinners_avail(frozen_dinner_varieties)

byu-transpolab/nemsr documentation built on Feb. 10, 2023, 11:24 p.m.