rescale_columns_01_to_neg1_pos1 | R Documentation |
Rescale columns of a design matrix to (-1,1).
rescale_columns_01_to_neg1_pos1(
DM,
handle_constant = c("to_zero", "error", "skip")
)
DM |
A numeric matrix or data frame (e.g. from |
handle_constant |
Whether to force constant (zero-range) columns to zero, or raise an error, or skip them. Default "to_zero" sets them all to 0. |
A matrix the same size as DM
with each column scaled to (-1,1).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.