matsindf v0.3.0

0

Monthly downloads

0th

Percentile

Matrices in data frames

Provides functions to collapse a tidy data frame into matrices in a data frame and expand a data frame of matrices into a tidy data frame.

Readme

lifecycle Travis-CI Build
Status Coverage
status

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.

Functions in matsindf

Name Description
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
No Results!

Vignettes of matsindf

Name
References.bib
matsindf.Rmd
midf_apply_primer.Rmd
No Results!

Last month downloads

Details

Type Package
Date 2019-01-26
License MIT + file LICENSE
Language en-US
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
VignetteBuilder knitr
URL https://github.com/MatthewHeun/matsindf
BugReports https://github.com/MatthewHeun/matsindf/issues
NeedsCompilation no
Packaged 2019-02-05 14:59:35 UTC; mkh2
Repository CRAN
Date/Publication 2019-02-11 16:00:11 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/matsindf)](http://www.rdocumentation.org/packages/matsindf)