Package: matsbyname 0.6.10

matsbyname: An Implementation of Matrix Mathematics that Respects Row and Column Names

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

Authors:Matthew Heun [aut, cre]

matsbyname_0.6.10.tar.gz
matsbyname_0.6.10.zip(r-4.5)matsbyname_0.6.10.zip(r-4.4)matsbyname_0.6.10.zip(r-4.3)
matsbyname_0.6.10.tgz(r-4.4-any)matsbyname_0.6.10.tgz(r-4.3-any)
matsbyname_0.6.10.tar.gz(r-4.5-noble)matsbyname_0.6.10.tar.gz(r-4.4-noble)
matsbyname_0.6.10.tgz(r-4.4-emscripten)matsbyname_0.6.10.tgz(r-4.3-emscripten)
matsbyname.pdf |matsbyname.html
matsbyname/json (API)
NEWS

# Install 'matsbyname' in R:
install.packages('matsbyname', repos = c('https://matthewheun.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/matthewheun/matsbyname/issues

On CRAN:

6.59 score 1 stars 1 packages 129 scripts 495 downloads 93 exports 72 dependencies

Last updated 10 months agofrom:20197d59f2. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 09 2024
R-4.5-winOKNov 09 2024
R-4.5-linuxOKNov 09 2024
R-4.4-winOKNov 09 2024
R-4.4-macOKNov 09 2024
R-4.3-winOKNov 09 2024
R-4.3-macOKNov 09 2024

Exports::=.data%>%abs_bynameagg_map_to_agg_tableagg_table_to_agg_mapaggregate_bynameaggregate_pieces_bynameaggregate_to_pref_suff_bynameall_bynameand_bynameany_bynamebinaryapply_bynameclean_bynamecolprods_bynamecolsums_bynamecoltypecompare_bynamecomplete_and_sortcomplete_rows_colscount_vals_bynamecount_vals_incols_bynamecount_vals_inrows_bynamecreate_colvec_bynamecreate_matrix_bynamecreate_rowvec_bynamecumapply_bynamecumprod_bynamecumsum_bynamedifference_bynameeigenvalues_bynameeigenvectors_bynameelementapply_bynameequal_bynameexp_bynamefractionize_bynamegeometricmean_bynamegetcolnames_bynamegetrownames_bynamegetzerorowcolnames_bynamehadamardproduct_bynamehatinv_bynamehatize_bynameidentical_bynameidentize_bynameIminus_bynameinvert_bynameis_matrix_or_Matrixis.Matrixiszero_bynamekvec_from_template_bynamelist_of_rows_or_colslog_bynamelogarithmicmean_bynamelogmeanmargin_from_types_bynamematricize_bynameMatrixmatrixproduct_bynamemean_bynamenaryapply_bynamencol_bynamenrow_bynamepow_bynameprep_vector_argprodall_bynamequotient_bynamerename_to_piece_bynamerename_to_pref_suff_bynamereplaceNaN_bynamerowprods_bynamerowsums_bynamerowtypesamestructure_bynameselect_cols_bynameselect_rowcol_piece_bynameselect_rows_bynameselectzerocols_bynameselectzerorows_bynamesetcolnames_bynamesetcoltypesetrownames_bynamesetrowtypesort_rows_colssum_bynamesumall_bynamesvd_bynameswitch_notation_bynametranspose_bynametrim_rows_colsunaryapply_bynamevec_from_store_bynamevectorize_byname

Dependencies:assertthatbackportsbase64encbslibcachemcheckmatecliclustercolorspacedata.tabledigestdplyrevaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMASSMatrixmatrixcalcmemoisemgcvmimemunsellnlmennetpillarpkgconfigpurrrR6rappdirsRCLabelsRColorBrewerrlangrmarkdownrpartrstudioapisassscalesstringistringrtibbletidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyaml

About Vector Arguments

Rendered fromabout-vector-arguments.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2020-05-29
Started: 2020-05-29

Aggregation in matsbyname

Rendered fromaggregation-vignette.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2023-03-04
Started: 2022-04-01

Use Cases and Examples for matsbyname

Rendered frommatsbyname.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2023-03-04
Started: 2018-12-21

Using summarise in matsbyname

Rendered fromusing-summarise-in-matsbyname.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2022-04-01
Started: 2022-04-01

Writing Custom Functions for matsbyname

Rendered fromapplybyname-vignette.Rmdusingknitr::rmarkdownon Nov 09 2024.

Last update: 2020-11-29
Started: 2018-02-15

Readme and manuals

Help Manual

Help pageTopics
Absolute value of matrix elementsabs_byname
Aggregate rows and columns in a matrixaggregate_byname
Aggregate a matrix by pieces of row and/or column namesaggregate_pieces_byname
Aggregate a matrix to prefixes or suffixes of row and/or column namesaggregate_to_pref_suff_byname
Aggregation map conversionsaggregation_map_helpers agg_map_to_agg_table agg_table_to_agg_map
Are all matrix elements 'TRUE'?all_byname
And "by name"and_byname
Are any matrix elements 'TRUE'?any_byname
Apply a binary function "by name"binaryapply_byname
Clean (delete) rows or columns of matrices that contain exclusively 'clean_value'clean_byname
Column products, sorted by namecolprods_byname
Column sums, sorted by namecolsums_byname
Column typecoltype
Compare matrix entries to a valuecompare_byname
Complete matrices relative to one another and sort into same row, column ordercomplete_and_sort
Complete rows and columns in one matrix relative to anothercomplete_rows_cols
Count the number of matrix entries that meet a criterioncount_vals_byname
Count the number of matrix entries in columns that meet a criterioncount_vals_incols_byname
Count the number of matrix entries in rows that meet a criterioncount_vals_inrows_byname
Create column vectors from datacreate_colvec_byname
Create a "byname" matrix from a vectorcreate_matrix_byname
Create row vectors from datacreate_rowvec_byname
Apply a function cumulatively to a list of matrices or numberscumapply_byname
Cumulative element-product that respects row and column namescumprod_byname
Cumulative sum that respects row and column namescumsum_byname
Name-wise subtraction of matricesdifference_byname
Calculate eigenvalues of a matrixeigenvalues_byname
Calculate eigenvectors of a matrixeigenvectors_byname
Apply a function to an element of a matrix specified by rows and columnselementapply_byname
Compare two matrices "by name" for equalityequal_byname
Exponential of matrix elementsexp_byname
Compute fractions of matrix entriesfractionize_byname
Name- and element-wise geometric mean of two matrices.geometricmean_byname
Gets column namesgetcolnames_byname
Gets row namesgetrownames_byname
Names of zero rows and columnsgetzerorowcolnames_byname
Name-wise matrix Hadamard multiplicationhadamardproduct_byname
Hatize and invert a vectorhatinv_byname
Creates a diagonal "hat" matrix from a vectorhatize_byname
Compare two matrices "by name" for exact equalityidentical_byname
Named identity matrix or vectoridentize_byname
Subtract a matrix with named rows and columns from a suitably named and sized identity matrix ('I')Iminus_byname
Invert a matrixinvert_byname
Tells whether an object is one of a matrix or a Matrixis_matrix_or_Matrix
Is an object a Matrix?is.Matrix
Test whether this is the zero matrixiszero_byname
Create a constant vector from matrix 'a'kvec_from_template_byname
Named list of rows or columns of matriceslist_of_rows_or_cols
Logarithm of matrix elementslog_byname
Name- and element-wise logarithmic mean of matriceslogarithmicmean_byname
Logarithmic mean of two numberslogmean
Translate row and column types to integer marginsmargin_from_types_byname
Matricize a vectormatricize_byname
Create a Matrix amenable to use in the 'matsbyname' packageMatrix
Name-wise matrix multiplicationmatrixproduct_byname
Name- and element-wise arithmetic mean of matricesmean_byname
Apply a function "by name" to any number of operandsnaryapply_byname
Apply a function logically to numbers, matrices, or lists of numbers or matricesnaryapplylogical_byname
Get the number of columns in a "byname" matrix.ncol_byname
Get the number of rows in a "byname" matrix.nrow_byname
Organize binary argumentsorganize_args
Powers of matrix elementspow_byname
Prepare a vector argumentprep_vector_arg
Prepare the '.FUNdots' argument for *apply_byname functions.prepare_.FUNdots
Product of all elements in a matrixprodall_byname
Name-wise matrix element divisionquotient_byname
Rename matrix rows and columns by piece of row or column namesrename_to_piece_byname
Rename matrix rows and columns by prefix and suffixrename_to_pref_suff_byname
Replace 'NaN' values with a valuereplaceNaN_byname
Row products, sorted by namerowprods_byname
Row sums, sorted by namerowsums_byname
Row typerowtype
Test whether matrices or lists of matrices have same structuresamestructure_byname
Select columns of a matrix (or list of matrices) by nameselect_cols_byname
Select or remove rows or columns based on pieces of the names.select_rowcol_piece_byname
Select (or de-select) rows of a matrix (or list of matrices) by nameselect_rows_byname
Select zero columnsselectzerocols_byname
Select zero rowsselectzerorows_byname
Sets column namessetcolnames_byname
Sets column type for a matrix or a list of matricessetcoltype
Sets row namessetrownames_byname
Sets row type for a matrix or a list of matricessetrowtype
Sorts rows and columns of a matrixsort_rows_cols
Name-wise addition of matricessum_byname
Sum of all elements in a matrixsumall_byname
Calculate the singular value decomposition of a matrixsvd_byname
Change row and column name notationswitch_notation_byname
Transpose a matrix by nametranspose_byname
Trim rows and/or columns from a matrixtrim_rows_cols
Apply a unary function by nameunaryapply_byname
Create a vector with labels from a matrix and values from a vector storevec_from_store_byname
Vectorize a matrixvectorize_byname