rel: Relativize a matrix of values.

Description Usage Arguments Value Author(s) Examples

View source: R/rel.R

Description

Takes a matrix and relativizes by the maxiumum or total of each column.

Usage

1
rel(x, rel.type = "max")

Arguments

x

A matrix.

rel.type

Determines whether the matrix will be relativized by "max" (maximum) or "sum" (total) of each column.

Value

Returns the relativzed matrix.

Author(s)

Matthew K. Lau

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

ECGen/ComGenR documentation built on July 23, 2021, 11:44 p.m.