Friendly & Fast Input-Output Analysis
{fio} (Friendly Input-Output) is a R packagedesigned for input-output analysis, emphasizing usability for Excelusers and performance. It includes anRStudio Addin and asuite of functions for straightforward import of input-output tablesfrom Excel, either programmatically or directly from the clipboard.
The package is optimized for speed and efficiency. It leverages theR6 class for clean, memory-efficientobject-oriented programming. Furthermore, all linear algebracomputations are implemented inRust to achieve highly optimizedperformance.
You can install the latest stable release of {fio} from CRANwith:
install.packages("fio")install the latest tested but unreleased version from themain branch,use the precompiled binaries available onR-universe:
install.packages("fio",repos =c("https://albersonmiranda.r-universe.dev","https://cloud.r-project.org"))For the cutting-edge development branches from Github, you’ll need tocompile it from source. This requiresRust to be installed on yoursystem. You can install Rust using the following commands:
sudo apt install cargosudo dnf install cargobrew install rustIf you are just getting started with{fio}, we recommendyou to read thevignettesfor a comprehensive overview of the package.
Calculate Leontief’s inverse from brazilian 2020 input-outputmatrix:
# load included datasetiom_br<- fio::br_2020# calculate technical coefficients matrixiom_br$compute_tech_coeff()# calculate Leontief's inverseiom_br$compute_leontief_inverse()And pronto! 🎉, you’re all good to carry on with your analysis. Youcan evoke the Data Viewer to inspect the results withiom_br$technical_coefficients_matrix |> View() andiom_br$leontief_inverse_matrix |> View().
Leontief’s inverse from brazilian 2020 input-outputmatrix
Other great tools for input-output analysis in R include: