Movatterモバイル変換


[0]ホーム

URL:


CRAN statuslifecycleProject Status: Active – The project has reached a stable, usable state and is being actively developed.R-CMD-checkCodecov test coverageDOI

matsindf

Statement of need

Matrices are important mathematical objects, and they often describenetworks of flows among nodes. The power of matrices lies in theirability to organize network-wide calculations, thereby simplifying thework of analysts who study entire systems.

Butwouldn’t itbe nice if there were an easy way to createR dataframes whose entries were not numbers but entire matrices? If that werepossible, matrix algebra could be performed on columns of similarmatrices.

That’s the reason formatsindf. It provides functions toconvert a suitably-formattedtidy dataframe into a data frame containing a column of matrices.

Furthermore,matsbyname is a sister package that

When used together,matsindf andmatsbynameallow analysts to wield simultaneously the power of bothmatrixmathematics andtidyversefunctional programming.

Installation

You can installmatsindf from CRAN with:

install.packages("matsindf")

You can install a recent development version ofmatsindffrom github with:

# install devtools if not already installed# install.packages("devtools")devtools::install_github("MatthewHeun/matsindf")# To build vignettes locally, usedevtools::install_github("MatthewHeun/matsindf",build_vignettes =TRUE)

History

The functions in this package were used inHeun et al.(2018).

More Information

Find more information, including vignettes and functiondocumentation, athttps://MatthewHeun.github.io/matsindf/.

References

Heun, Matthew Kuperus, Anne Owen, and Paul E. Brockway. 2018. “APhysical Supply-Use Table Framework for Energy Analysis on the EnergyConversion Chain.”Applied Energy 226 (September): 1134–62.https://doi.org/10.1016/j.apenergy.2018.05.109.

[8]ページ先頭

©2009-2025 Movatter.jp