Learn R Programming

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

matlib (version 0.8.1)

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. In addition, a collection of functions are provided for drawing vector diagrams in 2D and 3D.

Copy Link

Version

Install

install.packages('matlib')

Monthly Downloads

2,869

Version

0.8.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Friendly

Last Published

September 17th, 2016

Functions in matlib (0.8.1)

circle3d

Draw a horizontal circle
corner

Draw a corner showing the angle between two vectors
buildTmat

Build/Get tranformation matricies
arc

Draw an arc showing the angle between vectors
cholesky

Cholesky Square Root of a Matrix
echelon

Echelon Form of a Matrix
arrows3d

Draw 3D arrows
cone3d

Draw a 3D cone
cofactor

Cofactor of A[i,j]
class

Class Data Set
gaussianElimination

Gaussian Elimination
J

Create a vector, matrix or array of constants
is_square_matrix

Test for square matrix
Inverse

Inverse of a Matrix
Ginv

Generalized Inverse of a Matrix
eig

Eigen Decomposition of a Square Symmetric Matrix
len

Length of a Vector or Column Lengths of a Matrix
gsorth

Gram-Schmidt Orthogonalization of a Matrix
LU

LU Decomposition
matlib

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

Convert matrix to LaTeX equation
plotEqn

Plot Linear Equations
point_on_line

Position of a point along a line
power_method

Power Method for Eigenvectors
Proj

Projection of Vector y on columns of X
plotEqn3d

Plot Linear Equations in 3D
minor

Minor of A[i,j]
QR

QR Decomposition by Graham-Schmidt Orthonormalization
mpower

Matrix Power
plot.regvec3d

Plot method for regvec3d objects
rowadd

Add multiples of rows to other rows
showEqn

Show Matrices (A, b) as Linear Equations
row_cofactors

Row Cofactors of A[i,]
rowmult

Multiply Rows by Constants
R

Rank of a Matrix
row_minors

Row Minors of A[i,]
showEig

Show the eigenvectors associated with a covariance matrix
rowswap

Interchange two rows of a matrix
regvec3d

Vector space representation of a two-variable regression model
Solve

Solve and Display Solutions for Systems of Linear Simultaneous Equations
workers

Workers Data
vectors3d

Draw 3D vectors
vec

Vectorize a Matrix
vectors

Draw geometric vectors in 2D
tr

Trace of a Matrix
SVD

Singular Value Decomposition of a Matrix
therapy

Therapy Data
vandermode

Vandermode Matrix
swp

The Matrix Sweep Operator