algstat (version 0.0.2)

projectOnto: Vector Projection onto col(A)

Description

Project a vector onto the column space of a matrix.

Usage

projectOnto(A, x)

Arguments

A
a matrix
x
a vector

Value

...

See Also

qr.fitted

Examples

Run this code
A <- diag(5)[,1:2]
x <- 1:5
projectOnto(A, x)

Run the code above in your browser using DataCamp Workspace