Learn R Programming

⚠️There's a newer version (1.0.0) of this package.Take me there.

matlib (version 0.6.0)

Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics

Description

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.

Copy Link

Version

Install

install.packages('matlib')

Monthly Downloads

2,135

Version

0.6.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Friendly

Last Published

December 15th, 2015

Functions in matlib (0.6.0)

cone3d

Draw a 3D cone
cholesky

Cholesky Square Root of a Matrix
rowswap

Interchange two rows of a matrix
plotEqn

Plot Linear Equations
corner

Draw a corner showing the angle between two vectors
gsorth

Gram-Schmidt Orthogonalization of a Matrix
is_symmetric_matrix

Test for square, symmetrix matrix
vec

Vectorize a Matrix
Ginv

Generalized Inverse of a Matrix
eig

Eigen Decomposition of a Square Symmetrix Matrix
SVD

Singular Value Decomposition of a Matrix
Proj

Projection of Vector y on columns of X
swp

The Matrix Sweep Operator
rowadd

Add multiples of rows to other rows
cofactor

Cofactor of A[i,j]
workers

Workers Data
matlib

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

Plot Linear Equations in 3D
point_on_line

Position of a point along a line
echelon

Echelon Form of a Matrix
arrows3d

Draw 3D arrows
len

Length of a Vector or Column Lengths of a Matrix
gaussianElimination

Gaussian Elimination
mpower

Matrix Power
QR

QR Decomposition by Graham-Schmidt Orthonormalization
vectors3d

Draw 3D vectors
therapy

Therapy Data
Inverse

Inverse of a Matrix
is_square_matrix

Test for square matrix
vectors

Draw geometric vectors in 2D
tr

Trace of a Matrix
row_cofactors

Row Cofactors of A[i,]
rowmult

Multiply Rows by Constants
R

Rank of a Matrix
showEqn

Show Matrices (A, b) as Linear Equations
minor

Minor of A[i,j]
class

Class Data Set
vandermode

Vandermode Matrix
power_method

Power Method for Eigenvectors
row_minors

Row Minors of A[i,]