Learn R Programming

BCE (version 2.2.0)

rescaleRows: 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.