Skip to contents

Food security sectoral composite - add score and dummy for in need

Usage

add_comp_foodsec(
  df,
  fc_phase = "fsl_fc_phase",
  fc_phase_levels = c("Phase 1 FC", "Phase 2 FC", "Phase 3 FC", "Phase 4 FC",
    "Phase 5 FC")
)

Arguments

df

A data frame.

fc_phase

Column name for the food security phase.

fc_phase_levels

Levels of the food security phase.