Learn R Programming

⚠️There's a newer version (0.4.8) of this package.Take me there.

matsindf

The R package matsindf provides ways to interact with matrices in data frames.

Installation

You can install matsindf from github with:

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

History

The functions in this package were used in the paper Heun et al. (2018).

More Information

Find more information, including vignettes and function documentation at https://MatthewHeun.github.io/matsindf/.

References

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

Copy Link

Version

Install

install.packages('matsindf')

Monthly Downloads

541

Version

0.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Heun

Last Published

February 11th, 2019

Functions in matsindf (0.3.0)

rowcolval_to_mat

Collapse a tidy data frame into a matrix with named rows and columns
verify_cols_missing

Verify that column names in a data frame are not already present
add_UKEnergy2000_matnames

Add a column of matrix names to tidy data frame
:=

Pipe operator
UKEnergy2000

Energy consumption in the UK in 2000
index_column

Index a column in a data frame by groups relative to an initial year
matsindf_apply

Apply a function to a matsindf data frame (and more)
expand_to_tidy

Expand a "tidy" data frame with matsindf-style matrices to a "tidy" data frame with each matrix entry as an observation
mat_to_rowcolval

Convert a matrix to a data frame with rows, columns, and values.
.data

Data pronoun
add_UKEnergy2000_row_col_meta

Add row, column, row type, and column type metadata
matsindf_apply_types

Determine types of ... argument for matsindf_apply
collapse_to_matrices

Collapse a "tidy" data frame to matrices in a data frame (matsindf)
%>%

Pipe operator