Learn R Programming

iotables (version 0.3.4)

direct_effects_create: Create direct effects

Description

The function creates the direct effects on total supply (or other supply category). See Eurostat Manual p498.

Usage

direct_effects_create(labelled_io_table, type = "final_demand",
  digits = NULL)

Arguments

labelled_io_table

A named (primary) input(s) vector or matrix created by primary_input_get

type

Defaults to final_demand. Alternatives are domestic_demand or or 'intermediate_demand'.

digits

Rounding digits, defaults to NULL, in which case no rounding takes place.

Examples

Run this code
# NOT RUN {
 

io_table <- iotable_get () 
#Total column should not be missing
io_table <- io_table [, 1:7] 
io_table$total <- rowSums(io_table[, 2:7])

labelled_io_table <- io_table
direct_effects_create ( io_table ) 
# }

Run the code above in your browser using DataLab