Skip to contents

Calculate the HEI2015 for the DHQ3 data within 1 step

Usage

HEI2015_DHQ3(DATA_PATH)

Arguments

DATA_PATH

The file path for the data. The data is Total Daily Results file, ending with results.csv

Value

The HEI2015 and its component scores

Examples

data("DHQ3_exp")
HEI2015_DHQ3(DHQ3_exp)
#> # A tibble: 23 × 16
#>    `Respondent ID` TOTALKCAL HEI2015_ALL HEI2015_TOTALFRT HEI2015_FRT
#>              <dbl>     <dbl>       <dbl>            <dbl>       <dbl>
#>  1               1     1849.        74.7            3.14        5    
#>  2               2     1109.        77.9            4.96        5    
#>  3               3     2134.        69.5            5           5    
#>  4               4     1170.        77.1            5           5    
#>  5               5     1238.        63.3            5           5    
#>  6               6      759.        59.5            1.32        1.48 
#>  7               7      727.        67.9            5           5    
#>  8               8     1462.        66.7            3.59        5    
#>  9               9     1080.        72.4            5           5    
#> 10              10     1552.        55.5            0.684       0.644
#> # ℹ 13 more rows
#> # ℹ 11 more variables: HEI2015_VEG <dbl>, HEI2015_GREENNBEAN <dbl>,
#> #   HEI2015_TOTALPRO <dbl>, HEI2015_SEAPLANTPRO <dbl>,
#> #   HEI2015_WHOLEGRAIN <dbl>, HEI2015_DAIRY <dbl>, HEI2015_FATTYACID <dbl>,
#> #   HEI2015_REFINEDGRAIN <dbl>, HEI2015_SODIUM <dbl>, HEI2015_ADDEDSUGAR <dbl>,
#> #   HEI2015_SATFAT <dbl>