View source: R/indicators_foodsec.R
fcs | R Documentation |
FCS - Food Consumption Score
fcs(
.tbl,
fcs_cereal,
fcs_legumes,
fcs_dairy,
fcs_meat,
fcs_veg,
fcs_fruit,
fcs_oil,
fcs_sugar,
cat = "normal"
)
.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) |
All component columns must of type 'double'.
Ten new columns: each component weight (fcs_w_), the score (fcs_score) and category (fcs_cat).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.