TransformedMatrix: TransformedMatrix Constructor.

View source: R/classes.R

TransformedMatrixR Documentation

TransformedMatrix Constructor.

Description

TransformedMatrix Constructor.

Usage

TransformedMatrix(y, transform)

Arguments

y

SparseMatrix object

transform

Transformation to apply to y

Value

TransformedMatrix object

Examples

mat <- as(matrix(c(1:9), nrow = 3, ncol = 3), "SVT_SparseMatrix")
triple <- CountTransform(function(x) 3 * x, center = FALSE, scale = FALSE)
tripled_mat <- TransformedMatrix(mat, triple)

rafalab/smallcount documentation built on June 1, 2025, 2:10 p.m.