Package: matlib 1.0.1

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. Many of these functions are designed 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 and for rendering matrix expressions and equations in LaTeX.

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

matlib_1.0.1.tar.gz
matlib_1.0.1.zip(r-4.5)matlib_1.0.1.zip(r-4.4)matlib_1.0.1.zip(r-4.3)
matlib_1.0.1.tgz(r-4.4-any)matlib_1.0.1.tgz(r-4.3-any)
matlib_1.0.1.tar.gz(r-4.5-noble)matlib_1.0.1.tar.gz(r-4.4-noble)
matlib_1.0.1.tgz(r-4.4-emscripten)matlib_1.0.1.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

12.95 score 65 stars 11 packages 904 scripts 6.4k downloads 1 mentions 84 exports 85 dependencies

Last updated 1 hours agofrom:7a4d7c5247. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-winOKNov 21 2024
R-4.5-linuxOKNov 21 2024
R-4.4-winNOTENov 21 2024
R-4.4-macNOTENov 21 2024
R-4.3-winNOTENov 21 2024
R-4.3-macNOTENov 21 2024

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

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDataclicolorspacecowplotcpp11DerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomeFormulafsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rappdirsRColorBrewerRcppRcppEigenrglrlangrmarkdownrstudioapisassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunxtableyaml

Properties of determinants

Rendered froma1-det-ex1.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Gram-Schmidt Orthogonalization and Regression

Rendered fromaA-gramreg.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Vector Spaces of Least Squares and Linear Equations

Rendered fromaB-data-beta.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Evaluation of determinants

Rendered froma2-det-ex2.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Inverse of a matrix

Rendered froma3-inv-ex1.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Matrix inversion by elementary row operations

Rendered froma4-inv-ex2.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Generalized inverse

Rendered froma5-ginv.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Linear transformations and matrix inverse in 3D

Rendered froma6-inv-3d.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Eigenvalues and Eigenvectors: Properties

Rendered froma7-eigen-ex1.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Eigenvalues: Spectral Decomposition

Rendered froma8-eigen-ex2.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

Solving Linear Equations

Rendered froma9-linear-equations.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-05
Started: 2024-10-05

LaTeX Equations with latexMatrix, Eqn and matrix2latex

Rendered fromlatex-equations.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-10-22
Started: 2024-08-07

Readme and manuals

Help Manual

Help pageTopics
matlib: Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics.matlib-package matlib _PACKAGE
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
Data on Coffee, Stress and Heart Damagecoffee
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