rescaleRows: rescale rows

rescaleRowsR Documentation

rescale rows

Description

returns a row-rescaled matrix (rowSums(.)==1).

Usage

rescaleRows(A, columns=1:ncol(A))

Arguments

A

matrix or dataframe to be row-rescaled: rowSums(rescaleRows(A))==1.

columns

vector containing indices of the columns that should be included in the normalisation.

Value

A

row-rescaled matrix or partially row-rescaled matrix.

Author(s)

Karel Van den Meersche


BCE documentation built on May 13, 2022, 1:05 a.m.