Learn R Programming

mfp2 (version 1.0.1)

backscale_matrix: Backscale Columns of a Matrix (Internal)

Description

Multiplies each column of a numeric matrix by a corresponding scalar value from a named vector. Typically used to reverse prior scaling (i.e., backscaling). This is an internal helper function and not intended for direct use by package users.

Usage

backscale_matrix(x, scalex)

Value

A matrix with backscaled columns, or NULL if x is NULL.

Arguments

x

A numeric matrix with column names, or NULL.

scalex

A named numeric vector. Each name must match a column name of x.