knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

NOTE: This is a toy package created for the medium test of the project Network Analysis for Input-Output Tables.

IOcoef

R-CMD-check

The goal of IOcoef is to calculate the consumption coefficient in the input-output table.

Installation

You can install the development version of IOcoef from GitHub with:

# install.packages("devtools")
devtools::install_github("Carol-seven/IOcoef")

Example

A fairly common task when dealing with input-output table is the need to compute the direct and complete consumption coefficient. This is what IOcoef::iocoef() do.

library(IOcoef)
adj <- matrix(sample(25), 5, 5)
X <- as.vector(101:105)
iocoef(adj, X, type = "direct")
iocoef(adj, X, type = "complete")


Carol-seven/IOcoef documentation built on April 4, 2022, 12:38 a.m.