CountTransform: CountTransform Constructor

View source: R/classes.R

CountTransformR Documentation

CountTransform Constructor

Description

CountTransform Constructor

Usage

CountTransform(func, center = FALSE, scale = FALSE)

Arguments

func

Transformation to be applied to sparse count matrix. Should be a function with a single parameter.

center

Whether transformed data should be shifted to have mean zero. Can be specified either as a vector of two logical values, specifying whether the rows/columns should be centered, respectively, or a single logical value specifying whether the columns should be centered (for consistency with prcomp()).

scale

Whether transformed rows should be scaled to have unit variance

Value

CountTransform object

Examples

triple <- CountTransform(function(x) 3 * x, center = FALSE, scale = FALSE)

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