rowScale: Row scaling with matrixStats

Description Usage Arguments Author(s) References

View source: R/src_rowScale.R

Description

An efficient function for row scaling using matrixStats, see reference for origin.

Usage

1
2
3
4
5
6
7
8
rowScale(
  x,
  center = TRUE,
  scale = TRUE,
  add_attr = FALSE,
  rows = NULL,
  cols = NULL
)

Arguments

x

input matrix

center

logical, whether to center

scale

logical, whether to scale

add_attr

logical, whether to add scale/center the attributes

rows

rows to subset for

cols

cols to subset for

Author(s)

Alexander Toenges

References

A Faster Scale Function (2016) https://www.r-bloggers.com/a-faster-scale-function/


ATpoint/diffanalyseR documentation built on Oct. 8, 2021, 10:11 p.m.