matsbyname0.6.14 package

An Implementation of Matrix Mathematics that Respects Row and Column Names

binaryapply_byname

Apply a binary function "by name"

create_rowvec_byname

Create row vectors from data

create_triplet

Create a triplet from a matrix

eigenvalues_byname

Calculate eigenvalues of a matrix

eigenvectors_byname

Calculate eigenvectors of a matrix

elementapply_byname

Apply a function to an element of a matrix specified by rows and colum...

getzerorowcolnames_byname

Names of zero rows and columns

hadamardproduct_byname

Name-wise matrix Hadamard multiplication

hatinv_byname

Hatize and invert a vector

hatize_byname

Creates a diagonal "hat" matrix from a vector

identical_byname

Compare two matrices "by name" for exact equality

identize_byname

Named identity matrix or vector

Iminus_byname

Subtract a matrix with named rows and columns from a suitably named an...

invert_byname

Invert a matrix

is_matrix_or_Matrix

Tells whether an object is one of a matrix or a Matrix

is.Matrix

Is an object a Matrix?

logmean

Logarithmic mean of two numbers

margin_from_types_byname

Translate row and column types to integer margins

rename_to_pref_suff_byname

Rename matrix rows and columns by prefix and suffix

transpose_byname

Transpose a matrix by name

trim_rows_cols

Trim rows and/or columns from a matrix

unaryapply_byname

Apply a unary function by name

vec_from_store_byname

Create a vector with labels from a matrix and values from a vector sto...

vectorize_byname

Vectorize a matrix

abs_byname

Absolute value of matrix elements

aggregate_byname

Aggregate rows and columns in a matrix

aggregate_pieces_byname

Aggregate a matrix by pieces of row and/or column names

aggregate_to_pref_suff_byname

Aggregate a matrix to prefixes or suffixes of row and/or column names

aggregation_map_helpers

Aggregation map conversions

all_byname

Are all matrix elements TRUE?

and_byname

And "by name"

any_byname

Are any matrix elements TRUE?

clean_byname

Clean (delete) rows or columns of matrices that contain exclusively `c...

colprods_byname

Column products, sorted by name

colsums_byname

Column sums, sorted by name

coltype

Column type

compare_byname

Compare matrix entries to a value

create_matrix_byname

Create a "byname" matrix from a vector

complete_and_sort

Complete matrices relative to one another and sort into same row, colu...

complete_rows_cols

Complete rows and columns in one matrix relative to another

count_vals_byname

Count the number of matrix entries that meet a criterion

count_vals_incols_byname

Count the number of matrix entries in columns that meet a criterion

count_vals_inrows_byname

Count the number of matrix entries in rows that meet a criterion

create_colvec_byname

Create column vectors from data

cumapply_byname

Apply a function cumulatively to a list of matrices or numbers

cumprod_byname

Cumulative element-product that respects row and column names

cumsum_byname

Cumulative sum that respects row and column names

data

Data pronoun

difference_byname

Name-wise subtraction of matrices

getrownames_byname

Gets row names

equal_byname

Compare two matrices "by name" for equality

exp_byname

Exponential of matrix elements

fractionize_byname

Compute fractions of matrix entries

geometricmean_byname

Name- and element-wise geometric mean of two matrices.

get_row_col_index_maps

Figure out row and column index maps

getcolnames_byname

Gets column names

iszero_byname

Test whether this is the zero matrix

kvec_from_template_byname

Create a constant vector from matrix a

list_of_rows_or_cols

Named list of rows or columns of matrices

log_byname

Logarithm of matrix elements

logarithmicmean_byname

Name- and element-wise logarithmic mean of matrices

matricize_byname

Matricize a vector

Matrix

Create a Matrix amenable to use in the matsbyname package

matrixproduct_byname

Name-wise matrix multiplication

matsbyname-package

matsbyname: An Implementation of Matrix Mathematics that Respects Row ...

mean_byname

Name- and element-wise arithmetic mean of matrices

quotient_byname

Name-wise matrix element division

naryapply_byname

Apply a function "by name" to any number of operands

naryapplylogical_byname

Apply a function logically to numbers, matrices, or lists of numbers o...

ncol_byname

Get the number of columns in a "byname" matrix.

nrow_byname

Get the number of rows in a "byname" matrix.

reallocate_byname

Reallocate values from one row or column to others

rename_to_piece_byname

Rename matrix rows and columns by piece of row or column names

organize_args

Organize binary arguments

pipe

Pipe operator

pow_byname

Powers of matrix elements

prep_vector_arg

Prepare a vector argument

prepare_.FUNdots

Prepare the .FUNdots argument for *apply_byname functions.

prodall_byname

Product of all elements in a matrix

quasi-quote-assign

Assignment

structure_index_map

Set the structure of an index map

rename_via_pattern_byname

Rename row or column names via regexp pattern

replaceNaN_byname

Replace NaN values with a value

rowprods_byname

Row products, sorted by name

rowsums_byname

Row sums, sorted by name

rowtype

Row type

samestructure_byname

Test whether matrices or lists of matrices have same structure

select_cols_byname

Select columns of a matrix (or list of matrices) by name

select_rowcol_piece_byname

Select or remove rows or columns based on pieces of the names.

select_rows_byname

Select (or de-select) rows of a matrix (or list of matrices) by name

select_rows_cols_byname

Select (or deselect) rows or columns

selectzerocols_byname

Select zero columns

selectzerorows_byname

Select zero rows

setcolnames_byname

Sets column names

setcoltype

Sets column type for a matrix or a list of matrices

setrownames_byname

Sets row names

setrowtype

Sets row type for a matrix or a list of matrices

sort_rows_cols

Sorts rows and columns of a matrix

sum_byname

Name-wise addition of matrices

sumall_byname

Sum of all elements in a matrix

svd_byname

Calculate the singular value decomposition of a matrix

switch_notation_byname

Change row and column name notation

to_named_triplet

Convert a matrix or list of matrices between named form and indexed fo...

An implementation of matrix mathematics wherein operations are performed "by name."

  • Maintainer: Matthew Heun
  • License: MIT + file LICENSE
  • Last published: 2026-01-30