fcs: FCS - Food Consumption Score

View source: R/indicators_foodsec.R

fcsR Documentation

FCS - Food Consumption Score

Description

FCS - Food Consumption Score

Usage

fcs(
  .tbl,
  fcs_cereal,
  fcs_legumes,
  fcs_dairy,
  fcs_meat,
  fcs_veg,
  fcs_fruit,
  fcs_oil,
  fcs_sugar,
  cat = "normal"
)

Arguments

.tbl

Data

fcs_cereal

Cereals component column

fcs_legumes

Legumes component column

fcs_dairy

Dairy component column

fcs_meat

Meat component column

fcs_veg

Vegetables component column

fcs_fruit

Fruit component column

fcs_oil

Oil component column

fcs_sugar

Sugar component column

cat

Cut-offs categories, either "normal" (21.5/35) or "alternate" (28/42)

Details

All component columns must of type 'double'.

Value

Ten new columns: each component weight (fcs_w_), the score (fcs_score) and category (fcs_cat).


gnoblet/impactR documentation built on March 20, 2023, 2:24 a.m.