Round all numeric values in an input–output style table to a specified number of digits. The key column (first column) is preserved unchanged.
Value
A data.frame (or tibble) with the key column intact and all other
numeric columns rounded to the given precision.
Details
This is useful for comparing results across software or publications that present rounded tables.
See also
Other iotables processing functions:
conforming_vector_create(),
empty_remove(),
household_column_find(),
household_column_get(),
iotable_year_get(),
key_column_create(),
output_get(),
primary_input_get(),
rows_add(),
supplementary_add(),
total_tax_add(),
vector_transpose_longer(),
vector_transpose_wider()
Examples
de_coeff <- input_coefficient_matrix_create(iotable_get())
head(matrix_round(de_coeff, digits = 2))
#> iotables_row agriculture_group industry_group construction
#> 1 agriculture_group 0.03 0.02 0.00
#> 2 industry_group 0.18 0.28 0.26
#> 3 construction 0.01 0.01 0.02
#> 4 trade_group 0.08 0.07 0.06
#> 5 business_services_group 0.08 0.09 0.13
#> 6 other_services_group 0.04 0.01 0.01
#> trade_group business_services_group other_services_group
#> 1 0.00 0.00 0.00
#> 2 0.08 0.02 0.06
#> 3 0.01 0.03 0.02
#> 4 0.14 0.02 0.04
#> 5 0.12 0.28 0.07
#> 6 0.02 0.02 0.04
