calculateFoodAggregates: calculateFoodAggregates

Description Usage Arguments Value

View source: R/calculateFoodAggregates.R

Description

The function creates all the Food aggregates to be displayed in the FBS. This function calls the popoulation dataset in the SWS and displays population in the resulting datatable

Usage

1
2
calculateFoodAggregates(standData = standData, params = c(),
  yearVals = yearVals)

Arguments

standData

The data.frame resulting from the standardization process containing all the elements needed for the calculation of DES

params

The parameters for standardization. These parameters provide information about the columns of data and tree, specifying (for example) which columns should be standardized, which columns represent parents/children, etc.

Value

A data.table containing all the food aggregates, by country-commodity-year and also containing the population by year


SWS-Methodology/faoswsStandardization documentation built on Feb. 7, 2022, 5:05 a.m.