scale2

0th

Percentile

Scaling Vectors and Matrices

The function scales numeric objects to specific ranges.

Keywords
manip
Usage
scale2(x, lower = -1.5, upper = 1.5)
Arguments
x

Numeric, vector or matrix.

lower

The upper range.

upper

The lower range.

Value

A scaled numeric vector or matrix, scaled to the range provided in lower and upper.

Aliases
  • scale2
Examples
# NOT RUN {
set.seed(123)
x <- runif(5)
scale2(x, -1, 1)
scale2(x, 0, 10)
# }
Documentation reproduced from package bamlss, version 1.1-2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.