Learn R Programming

arrowheadr (version 1.0.2)

rescaler: Rescale each column of a matrix

Description

Rescale each column of a matrix

Usage

rescaler(x, magnitude)

Value

a matrix

Arguments

x

a matrix

magnitude

a single value or a vector with length equal to the number of columns in x

Examples

Run this code
rescaler(matrix(1, nrow = 2, ncol = 2), magnitude = c(2,3))

Run the code above in your browser using DataLab