View source: R/calculate_nut_health_indicators.R
calculate_nut_health_indicators | R Documentation |
Function to create new columns for calculated nutrition and health indicators. This function is intended to be a helper function and to be called from within the format_nut_health_indicators function after column names and values have been standardized. This function will calculate anthropometric indicis, Washington Group Short Set indicators, infant and young child feeding indicators, food security outcome indicators, and a few other MSNA relevant health indicators.
calculate_nut_health_indicators(
df,
monthly_expenditures = NULL,
period_expenditures = NULL,
num_period_months = NULL
)
df |
Inputs a data frame that has already been processed and checked by the format_nut_health_indicators and reformat_nut_health_indicators functions. |
monthly_expenditures |
Inputs a character vector of column names for columns of various household expenses in the previous 30 days. |
period_expenditures |
Inputs a character vector of column names for columns of various household expenses in a previous, recall period, specified in the num_period_months paramater. |
num_period_months |
Inputs a whole integer for the number of months of the period expenditures reported. |
Returns a data frame with additional columns for new nutrition and health indicators.
## Not run: calculate_nut_health_indicators(df)
#' @importFrom rlang .data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.