zscore: Calculate Z-score

zscoreR Documentation

Calculate Z-score

Description

Calculate Z-score

Usage

zscore(object, ...)

## S4 method for signature 'matrix'
zscore(object, MARGIN = 1L)

## S4 method for signature 'numeric'
zscore(object)

Arguments

object

Object.

MARGIN

integer(1-2). Dimension where the function will be applied. For a two-dimensional matrix: 1 indicates rows; 2 indicates columns; c(1, 2) indicates rows and columns.

...

Additional arguments.

Value

Numeric vector or matrix.

Note

Updated 2023-01-30.

See Also

  • scale().

  • limma::zscore().

Examples

data(matrix, package = "AcidTest")

## numeric ====
object <- matrix[1L, ]
zscore(object)

## matrix ====
object <- matrix
zscore(matrix, MARGIN = 1L)

acidgenomics/AcidBase documentation built on Jan. 28, 2024, 2:59 a.m.