Package: matlib 0.9.95

matlib: Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics

A collection of matrix functions for teaching and learning matrix linear algebra as used in multivariate statistical methods. These functions are mainly for tutorial purposes in learning matrix algebra ideas using R. In some cases, functions are provided for concepts available elsewhere in R, but where the function call or name is not obvious. In other cases, functions are provided to show or demonstrate an algorithm. In addition, a collection of functions are provided for drawing vector diagrams in 2D and 3D.

Authors:Michael Friendly [aut, cre], John Fox [aut], Phil Chalmers [aut], Georges Monette [ctb], Gaston Sanchez [ctb]

matlib_0.9.95.tar.gz
matlib_0.9.95.zip(r-4.5)matlib_0.9.95.zip(r-4.4)matlib_0.9.95.zip(r-4.3)
matlib_0.9.95.tgz(r-4.4-any)matlib_0.9.95.tgz(r-4.3-any)
matlib_0.9.95.tar.gz(r-4.5-noble)matlib_0.9.95.tar.gz(r-4.4-noble)
matlib_0.9.95.tgz(r-4.4-emscripten)matlib_0.9.95.tgz(r-4.3-emscripten)
matlib.pdf |matlib.html
matlib/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/friendly/matlib/issues

Datasets:

On CRAN:

diagramslinear-equationsmatrixmatrix-functionsmatrix-visualizervectorvignette

84 exports 65 stars 4.42 score 84 dependencies 10 dependents 1 mentions 848 scripts 4.6k downloads

Last updated 2 days agofrom:b1eb6d273d. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-winNOTESep 15 2024
R-4.5-linuxNOTESep 15 2024
R-4.4-winNOTESep 15 2024
R-4.4-macNOTESep 15 2024
R-4.3-winNOTESep 15 2024
R-4.3-macNOTESep 15 2024

Exports:%X%adjointanglearcarrows3dbuildTmatcholeskycirclecircle3dcofactorColnames<-cone3dcornerDetDimDimnames<-DotechelonEigenEqnEqn_hspaceEqn_newlineEqn_sizeEqn_textEqn_vspacegaussianEliminationgetBodygetLatexgetWrappergetYmultGinvGramSchmidtgsorthinvinverseInverseis_orthogonal_matrixis_square_matrixis_symmetric_matrixJlatexMatrixlenLUmatdiffmatmultmatpowermatrix2latexmatsumminorMoorePenrosempowerNcolNrowpartitionplotEqnplotEqn3dpointOnLinepowerMethodprintMatEqnprintMatrixProjQRRrefregvec3drowaddrowCofactorsrowMinorsrowmultRownames<-rowswapshowEigshowEqnSolveSVDsvdDemoswpsymMattrvandermodevecvectorsvectors3dxprod

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDataclicolorspacecowplotcpp11DerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rappdirsRColorBrewerRcppRcppEigenrglrlangrmarkdownrstudioapisassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunxtableyaml

Eigenvalues and Eigenvectors: Properties

Rendered fromeigen-ex1.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-09-04
Started: 2015-11-02

Eigenvalues: Spectral Decomposition

Rendered fromeigen-ex2.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2017-05-30
Started: 2015-11-04

Evaluation of determinants

Rendered fromdet-ex2.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2016-10-04
Started: 2016-09-08

Generalized inverse

Rendered fromginv.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-08-07
Started: 2016-09-11

Gram-Schmidt Orthogonalization and Regression

Rendered fromgramreg.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2017-05-30
Started: 2015-11-17

Inverse of a matrix

Rendered frominv-ex1.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2016-09-13
Started: 2016-09-09

LaTeX Equations with latexMatrix, Eqn and matrix2latex

Rendered fromlatex-equations.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-09-15
Started: 2024-08-07

Linear transformations and matrix inverse in 3D

Rendered frominv-3d.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-09-08
Started: 2024-08-07

Matrix inversion by elementary row operations

Rendered frominv-ex2.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-08-04
Started: 2016-09-10

Properties of determinants

Rendered fromdet-ex1.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-08-04
Started: 2016-09-08

Solving Linear Equations

Rendered fromlinear-equations.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-09-08
Started: 2015-11-06

Vector Spaces of Least Squares and Linear Equations

Rendered fromdata-beta.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2024-09-08
Started: 2020-04-04

Readme and manuals

Help Manual

Help pageTopics
matlib: Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics.matlib-package matlib
Calculate the Adjoint of a matrixadjoint
Angle between two vectorsangle
Draw an arc showing the angle between vectorsarc
Draw 3D arrowsarrows3d
Build/Get transformation matricesas.matrix.trace buildTmat print.trace
Cholesky Square Root of a Matrixcholesky
Draw circles on an existing plot.circle
Draw a horizontal circlecircle3d
Class Data Setclass
Cofactor of A[i,j]cofactor
Draw a 3D conecone3d
Draw a corner showing the angle between two vectorscorner
Determinant of a Square MatrixDet
Echelon Form of a Matrixechelon
Eigen Decomposition of a Square Symmetric MatrixEigen
Create a LaTeX Equation WrapperEqn Eqn_hspace Eqn_newline Eqn_size Eqn_text Eqn_vspace ref
Gaussian EliminationgaussianElimination print.enhancedMatrix
Correct for aspect and coordinate ratiogetYmult
Generalized Inverse of a MatrixGinv
Gram-Schmidt Orthogonalization of a MatrixGramSchmidt
Gram-Schmidt Orthogonalization of a Matrixgsorth
Inverse of a Matrixinv Inverse
Create a vector, matrix or array of constantsJ
Create and Manipulate LaTeX Representations of Matricesas.double.latexMatrix cbind.latexMatrix Colnames<- Colnames<-.latexMatrix Dim Dim.latexMatrix dimnames.latexMatrix Dimnames<- Dimnames<-.latexMatrix getBody getBody.latexMatrix getLatex getLatex.latexMatrix getWrapper getWrapper.latexMatrix is.numeric.latexMatrix latexMatrix Ncol Ncol.latexMatrix Nrow Nrow.latexMatrix partition partition.latexMatrix print.latexMatrix rbind.latexMatrix Rownames<- Rownames<-.latexMatrix [.latexMatrix
Various Functions and Operators for '"latexMatrix"' Objects%*%.latexMatrix %X% *.latexMatrix +.latexMatrix -.latexMatrix determinant.latexMatrix Dot inverse inverse.latexMatrix kronecker,latexMatrix,latexMatrix-method latexMatrixOperations matdiff matdiff.latexMatrix matmult matmult.latexMatrix matpower matpower.latexMatrix matsum matsum.latexMatrix solve.latexMatrix t.latexMatrix ^.latexMatrix
Length of a Vector or Column Lengths of a Matrixlen
LU DecompositionLU
(Deprecated) Convert matrix to LaTeX equationmatrix2latex
Minor of A[i,j]minor
Moore-Penrose inverse of a matrixMoorePenrose
Matrix Powermpower
Plot method for regvec3d objectsplot.regvec3d print.regvec3d summary.regvec3d
Plot Linear EquationsplotEqn
Plot Linear Equations in 3DplotEqn3d
Position of a point along a linepointOnLine
Power Method for EigenvectorspowerMethod
Print Matrices or Matrix Operations Side by SideprintMatEqn
(Deprecated) Print a matrix, allowing fractions or LaTeX outputprintMatrix
Projection of Vector y on columns of XProj
QR Decomposition by Graham-Schmidt OrthonormalizationQR
Rank of a MatrixR
Vector space representation of a two-variable regression modelregvec3d regvec3d.default regvec3d.formula
Elementary Row Operationsrowadd
Row Cofactors of A[i,]rowCofactors
Row Minors of A[i,]rowMinors
Multiply Rows by Constantsrowmult
Interchange two rows of a matrixrowswap
Show the eigenvectors associated with a covariance matrixshowEig
Show Matrices (A, b) as Linear EquationsshowEqn
Solve and Display Solutions for Systems of Linear Simultaneous EquationsSolve
Singular Value Decomposition of a MatrixSVD
Demonstrate the SVD for a 3 x 3 matrixsvdDemo
The Matrix Sweep Operatorswp
Create a Symmetric Matrix from a VectorsymMat
Therapy Datatherapy
Trace of a Matrixtr
Vandermode Matrixvandermode
Vectorize a Matrixvec
Draw geometric vectors in 2Dvectors
Draw 3D vectorsvectors3d
Workers Dataworkers
Generalized Vector Cross Productxprod