predict.splat: Make predictions from a splatted object

Description Usage Arguments Value Examples

View source: R/pirouette.R

Description

Splat a new matrix into the same rotation as an old one.

Usage

1
2
## S3 method for class 'splat'
predict(object, newx, ...)

Arguments

object

a splat object

newx

A sparse matrix.

...

ignored

Value

a sparse Matrix

Examples

1
2
x <- splat(matrix(runif(100), ncol=10), 2)
predict(x, matrix(runif(10), ncol=10))

zachmayer/pirouette documentation built on May 4, 2019, 9:04 p.m.