baked_goods_avail: Compute the availability points associated with low-fat baked...

View source: R/prices_scores.R

baked_goods_availR Documentation

Compute the availability points associated with low-fat baked goods

Description

This function takes in the number of varieties of low-fat baked goods and returns the NEMS-S points associated with availability.

Usage

baked_goods_avail(lowfat_baked_goods)

Arguments

lowfat_baked_goods

The number of low-fat baked goods.

Details

This function implements the scoring method described in Measure 7 of the NEMS-S Protocol. "Low-fat baked goods" are baked goods with less than or equal to 3 grams of fat per serving.

Value

The NEMS-S points associated with availability of low-fat baked goods.

Examples

lowfat_baked_goods <- sample(0:3, 10)
baked_goods_avail(lowfat_baked_goods)

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