combo: Data set combination and manipulation for use in HEI scoring.

Description Usage Arguments Value

View source: R/combo.R

Description

combo returns a single data set combining the FPED and NHANES dietary and demographic data sets. Additionally, it allows for specification of an age threshold such that records with age values below this number will be excluded from the output. Furthermore, any rows for which dietary recall was deemed unreliable (DRSTZ != 1) are automatically dropped. Finally, additional necessary HEI inputs are generated from the existing columns, see "Value" section below.

Usage

1
combo(fped, diet, demograph, agethresh = 2)

Arguments

fped

food pattern equivalent database data

diet

dietary data from NHANES database

demograph

demographic data from NHANES database

agethresh

numeric threshold for age of survey participants to be included

Value

Object of class data.frame representing a data set fully prepped for HEI score calculation. All columns from the three input data sets are preserved while a handful of additional derivative columns are included, specifically:


timfolsom/hei documentation built on May 27, 2019, 7:46 a.m.