Map data variables to corresponding indicators
Usage
map_variables(...)
fcs_fg_map_variables(
...,
foodgroups = c("staples", "pulses", "vegetables", "fruits", "meatfish", "milk",
"sugar", "oil", "condiment")
)
hdds_fg_map_variables(
...,
foodgroups = c("cereals", "roots_tubers", "vegetables", "fruits", "meat", "eggs",
"fish", "pulses", "milk", "oil", "sugar", "condiments")
)
mddw_fg_map_variables(
...,
foodgroups = c("staples", "pulses", "nuts", "milk", "meat_fish", "eggs", "green_leafy",
"other_vita", "other_vegetables", "other_fruits")
)
Examples
## Variable names in fcs01 mapped to corresponding food group labels
map_variables(
staples = "FCSStap",
pulses = "FCSPulse",
vegetables = "FCSVeg",
fruits = "FCSFruit",
meatfish = "FCSPr",
milk = "FCSDairy",
sugar = "FCSSugar",
oil = "FCSFat",
condiment = "FCSCond"
)
#> $staples
#> [1] "FCSStap"
#>
#> $pulses
#> [1] "FCSPulse"
#>
#> $vegetables
#> [1] "FCSVeg"
#>
#> $fruits
#> [1] "FCSFruit"
#>
#> $meatfish
#> [1] "FCSPr"
#>
#> $milk
#> [1] "FCSDairy"
#>
#> $sugar
#> [1] "FCSSugar"
#>
#> $oil
#> [1] "FCSFat"
#>
#> $condiment
#> [1] "FCSCond"
#>