total_tax_add: Summarize and add tax data

total_tax_addR Documentation

Summarize and add tax data

Description

Create and add a total tax row, if there are multiple tax rows present in the data_table.

Usage

total_tax_add(
  data_table,
  tax_names = c("d21x31", "d29x39"),
  total_tax_name = "TOTAL_TAX"
)

Arguments

data_table

A SIOT, a use table, a supply table, or a margins table that has product and production tax rows in among the primary inputs.

tax_names

Defaults to ("d21x31", "d29x39"), which are the Eurostat names for taxes. The parameter is not case sensitive.

total_tax_name

Defaults to 'TOTAL_TAX'. The name of the summarized row. It is case sensitive.

Value

A data frame with the vector of multipliers and the an auxiliary metadata column (for joining with other matrixes.)

See Also

Other iotables processing functions: conforming_vector_create(), household_column_get(), iotable_year_get(), key_column_create(), matrix_round(), output_get(), primary_input_get(), rows_add(), supplementary_add(), vector_transpose_longer(), vector_transpose_wider()

Examples

de_io <- iotable_get()

total_tax_add (de_io, 
               tax_names = c("net_tax_products",  "net_tax_production"),
               total_tax_name = "total_tax")

rOpenGov/iotables documentation built on Jan. 26, 2024, 3:06 a.m.