Skip to contents

The diet quality half of both composite metrics: a Global Diet Quality Score of 23 or more. Exported on its own so it can be reported separately from the composites.

Usage

eiod_healthy_diet(gdqs, cutoff = 23)

Arguments

gdqs

Numeric vector of Global Diet Quality Score values.

cutoff

The score at or above which a diet counts as healthy. Default 23, as published. Change only with a documented reason.

Value

An integer vector: `1` healthy, `0` not, `NA` where `gdqs` is missing.

Examples

eiod_healthy_diet(c(10, 22.9, 23, 30, NA))
#> [1]  0  0  1  1 NA