Skip to contents

This function routes to Recca::finaldemand_aggregates().

Usage

calculate_finaldemand_aggregates(
  .psut_data,
  countries,
  years,
  fd_sectors,
  piece = "noun",
  notation = list(RCLabels::bracket_notation, RCLabels::arrow_notation),
  pattern_type = "exact",
  prepositions = RCLabels::prepositions_list
)

Arguments

.psut_data

The data for which final demand aggregates are to be calculated.

countries

The countries for which final demand aggregates are to be calculated.

years

The years for which final demand aggregates are to be calculated.

fd_sectors

A string vector of sectors that count as "final demand".

piece

The piece to be aggregated. Default is "noun".

notation

The assumed notation for the labels. Default is list(RCLabels::bracket_notation, RCLabels::arrow_notation).

pattern_type

The type of matching to be used for final demand sectors names. Default is "leading".

prepositions

The expected propositions in row and column labels. Default is RCLabels::prepositions_list.

Value

A version of .psut_data with additional column for final demand aggregate data.