FastRowScale: Scale and/or center matrix rowwise

Description Usage Arguments Value

View source: R/utilities.R

Description

Performs row scaling and/or centering. Equivalent to using t(scale(t(mat))) in R except in the case of NA values.

Usage

1
FastRowScale(mat, center = TRUE, scale = TRUE, scale_max = 10)

Arguments

mat

A matrix

center

a logical value indicating whether to center the rows

scale

a logical value indicating whether to scale the rows

scale_max

clip all values greater than scale_max to scale_max. Don't clip if Inf.

Value

Returns the center/scaled matrix


ibseq/scs-analysis documentation built on Feb. 27, 2021, 12:35 a.m.