average_difference: Compute Difference in "Healthy" and "Less Healthy" food...

View source: R/nems_s.R

average_differenceR Documentation

Compute Difference in "Healthy" and "Less Healthy" food options

Description

This function finds the average difference in price between the healthier and less healthy food options for a store

Usage

average_difference(clean_data)

Arguments

clean_data

The data retrieved from a cleaned version of the Qualtrics Survey.

Details

This function is used to determine adequate replacements for the market basket prices.

Value

Average_Difference for the average price difference.

Examples

clean_data <- read_nemss(file)
find_difference(clean_data)


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