Convenience wrapper that returns a named list with values and se
tibbles, both filtered identically.
Usage
get_nutrition_with_se(
food = NULL,
table = NULL,
nutrients = NULL,
match = c("fixed", "regex")
)Arguments
- food
Character string matched against food name (case-insensitive substring) or food code (exact).
NULLreturns all foods.- table
One of
"proximate","vitamins_water","vitamins_fat","carotenoids","minerals","sugars","fatty_acids","amino_acids","organic_acids","polyphenols","oligosaccharides","edible_oils".NULLjoins all tables on food code and returns a wide result.- nutrients
Optional character vector of column name substrings to select (applied after table filter).
NULLreturns all columns.- match
One of
"fixed"(default) or"regex".