matsindf0.4.11 package

Matrices in Data Frames

add_UKEnergy2000_matnames

Add a column of matrix names to tidy data frame

add_UKEnergy2000_row_col_meta

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

build_keep_args

Build a list of arguments to keep

build_matsindf_apply_data_frame

Create a data frame consisting of the input data for matsindf_apply()

check_worksheet_name_violations

Develop a warning message for malformed Excel worksheet names

collapse_to_matrices

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

data

Data pronoun

df_to_msg

Create a message from a data frame

everything_except

Get symbols for all columns except ...

expand_to_tidy

Expand a matsindf data frame

get_useable_default_args

Create a usable list of default arguments to a function

group_by_everything_except

Group by all variables except some

handle_empty_data

Gracefully handle empty data

handle_null_args

Gracefully handle NULL arguments

index_column

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

mat_to_rowcolval

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

matrix_cols

Find columns that contain matrices

matsindf_apply_types

Determine types of .dat and ... arguments for matsindf_apply()

matsindf_apply

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

pipe

Pipe operator

quasi-quote-assign

Pipe operator

rowcolval_to_mat

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

should_unlist

Tell whether a column can be unlisted

verify_cols_missing

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

where_to_get_args

Decide where to get each argument to FUN

write_mats_to_excel

Write matrices to an Excel file

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.

  • Maintainer: Matthew Heun
  • License: MIT + file LICENSE
  • Last published: 2025-11-17