An Implementation of Matrix Mathematics that Respects Row and Column Names


[Up] [Top]

Documentation for package ‘matsbyname’ version 0.6.13

Help Pages

A B C D E F G H I K L M N O P Q R S T U V

-- A --

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
agg_map_to_agg_table Aggregation map conversions
agg_table_to_agg_map Aggregation map conversions
all_byname Are all matrix elements 'TRUE'?
and_byname And "by name"
any_byname Are any matrix elements 'TRUE'?

-- B --

binaryapply_byname Apply a binary function "by name"

-- C --

clean_byname Clean (delete) rows or columns of matrices that contain exclusively 'clean_value'
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
complete_and_sort Complete matrices relative to one another and sort into same row, column order
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
create_matrix_byname Create a "byname" matrix from a vector
create_rowvec_byname Create row vectors from data
create_triplet Create a triplet from a matrix
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

-- D --

difference_byname Name-wise subtraction of matrices

-- E --

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 columns
equal_byname Compare two matrices "by name" for equality
exp_byname Exponential of matrix elements

-- F --

fractionize_byname Compute fractions of matrix entries

-- G --

geometricmean_byname Name- and element-wise geometric mean of two matrices.
getcolnames_byname Gets column names
getrownames_byname Gets row names
getzerorowcolnames_byname Names of zero rows and columns
get_row_col_index_maps Figure out row and column index maps

-- H --

hadamardproduct_byname Name-wise matrix Hadamard multiplication
hatinv_byname Hatize and invert a vector
hatize_byname Creates a diagonal "hat" matrix from a vector

-- I --

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 and sized identity matrix ('I')
invert_byname Invert a matrix
is.Matrix Is an object a Matrix?
iszero_byname Test whether this is the zero matrix
is_matrix_or_Matrix Tells whether an object is one of a matrix or a Matrix

-- K --

kvec_from_template_byname Create a constant vector from matrix 'a'

-- L --

list_of_rows_or_cols Named list of rows or columns of matrices
logarithmicmean_byname Name- and element-wise logarithmic mean of matrices
logmean Logarithmic mean of two numbers
log_byname Logarithm of matrix elements

-- M --

margin_from_types_byname Translate row and column types to integer margins
matricize_byname Matricize a vector
Matrix Create a Matrix amenable to use in the 'matsbyname' package
matrixproduct_byname Name-wise matrix multiplication
mean_byname Name- and element-wise arithmetic mean of matrices

-- N --

naryapplylogical_byname Apply a function logically to numbers, matrices, or lists of numbers or matrices
naryapply_byname Apply a function "by name" to any number of operands
ncol_byname Get the number of columns in a "byname" matrix.
nrow_byname Get the number of rows in a "byname" matrix.

-- O --

organize_args Organize binary arguments

-- P --

pow_byname Powers of matrix elements
prepare_.FUNdots Prepare the '.FUNdots' argument for *apply_byname functions.
prep_vector_arg Prepare a vector argument
prodall_byname Product of all elements in a matrix

-- Q --

quotient_byname Name-wise matrix element division

-- R --

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
rename_to_pref_suff_byname Rename matrix rows and columns by prefix and suffix
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

-- S --

samestructure_byname Test whether matrices or lists of matrices have same structure
selectzerocols_byname Select zero columns
selectzerorows_byname Select zero rows
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
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
structure_index_map Set the structure of an index map
sumall_byname Sum of all elements in a matrix
sum_byname Name-wise addition of matrices
svd_byname Calculate the singular value decomposition of a matrix
switch_notation_byname Change row and column name notation

-- T --

to_named_matrix Convert a matrix or list of matrices between named form and indexed form
to_named_triplet Convert a matrix or list of matrices between named form and indexed form
to_triplet Convert a matrix or list of matrices between named form and indexed form
transpose_byname Transpose a matrix by name
trim_rows_cols Trim rows and/or columns from a matrix

-- U --

unaryapply_byname Apply a unary function by name

-- V --

vectorize_byname Vectorize a matrix
vec_from_store_byname Create a vector with labels from a matrix and values from a vector store